On 2014-06-30 19:07, Rich wrote:
On Mon, Jun 30, 2014 at 5:22 AM, Elias Persson <[email protected]> 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.