SCIENTIFIC-LINUX-USERS Archives

July 2014

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Elias Persson <[log in to unmask]>
Reply To:
Elias Persson <[log in to unmask]>
Date:
Tue, 1 Jul 2014 11:08:43 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (35 lines)
On 2014-06-30 19:07, Rich wrote:
> On Mon, Jun 30, 2014 at 5:22 AM, Elias Persson <[log in to unmask]> wrote:
>> On 2014-06-30 11:09, Semi wrote:
>>>
>>> easy_install matplotlib
>>> __requires__: Command not found.
>>> import: unable to open X server `' @ import.c/ImportImageCommand/359.
>>> from: Command not found.
>>> if: Empty if.
>>>
>>> setuptools-0.7.2-7
[...]
>
> I believe that's actually because matplotlib does some things that
> require an X server in its installation script, and not a bug in
> easy_install itself...
>
> You could e.g. spawn Xvfb locally for the duration of the installation
> to work around this, but ideally you'd figure out why it thought it
> needed X.
>
> - Rich

No, the problem is a missing shebang, causing the python script to be
interpreted as a shell script. A proper `easy_install` begins with:

     #!/usr/bin/python
     # EASY-INSTALL-ENTRY-SCRIPT: [...]
     __requires__ = 'distribute==0.6.10'
     import sys
     from pkg_resources import load_entry_point

The bit about an X server comes from `import`, which is a screen
capture tool from ImageMagick.

ATOM RSS1 RSS2