[yt-users] Problem generating python executable in yt 3.0
Stuart Levy
salevy at illinois.edu
Fri Jul 17 10:12:24 PDT 2015
Re the "mock" vs. setuptools error when installing yt dev version using
install_script.sh -
It looks as though there's been a change in mock - I found some
commentary about this on other packages that use it.
An ugly workaround involved catching the matplotlib install, moments
after install_script.sh prints
Installing matplotlib-1.4.3
using Ctrl-Z to suspend it, and then editing
.../src/matplotlib-1.4.3/lib/matplotlib.egg-info/requires.txt
to change (in two places) "mock" to "mock==1.0.1", so the file looks
like this:
numpy>=1.6
six>=1.4
python-dateutil
pytz
pyparsing>=1.5.6,!=2.0.0
nose>=0.11.1
mock==1.0.1
nose>=0.11.1
mock==1.0.1
Then resume ("fg") the suspended install_script.sh and let it complete,
hoping you caught it after it untarred the package but before it began
installing dependencies.
This worked -- once -- but it's guaranteed to be unreliable. What's a
safer fix? Hacking the matplotlib distribution tarball (ugh)? Tweak
install_script to install a compatible version of mock before installing
matplotlib, so pip doesn't bother installing an incompatible one?
On 7/17/15 11:10 AM, Juan Camilo Ibanez Mejia wrote:
> Hi all,
>
> well I found an previous install script for yt 3.0, about 4-5 months
> old, installed yt 3.0 with it and apparently it's working and scripts
> seem to be working as well. Not sure what is happening with the new
> install script in my machine.
>
> Best,
> Juan
>
>
>
> On Jul 17, 2015, at 9:50 AM, Juan Camilo Ibanez Mejia wrote:
>
>> Hi Nathan,
>>
>> the OS is Ubuntu 14.04.2.
>>
>> I tried reinstalling yt3.0 but got the following error:
>>
>> ********************************************
>> FAILURE REPORT:
>> ********************************************
>>
>> Processing dependencies for matplotlib==1.4.0
>> Searching for mock
>> Reading http://pypi.python.org/simple/mock/
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__pypi.python.org_simple_mock_&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=GXoEFWPjbZXN9Wk-0BIJB-pqAWgWELpaQzeBrESQrHY&e=>
>> Best match: mock 1.1.4
>> Downloading
>> https://pypi.python.org/packages/source/m/mock/mock-1.1.4.tar.gz#md5=84afbeb2415bf3d6608dac4423a56325
>> <https://urldefense.proofpoint.com/v2/url?u=https-3A__pypi.python.org_packages_source_m_mock_mock-2D1.1.4.tar.gz-23md5-3D84afbeb2415bf3d6608dac4423a56325&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=MLkEVRrct8hnzYV2xtEBjI_J8hlNh4LP-6xa5UOfvOg&e=>
>> Processing mock-1.1.4.tar.gz
>> Writing /tmp/easy_install-GMOnmI/mock-1.1.4/setup.cfg
>> Running mock-1.1.4/setup.py -q bdist_egg --dist-dir
>> /tmp/easy_install-GMOnmI/mock-1.1.4/egg-dist-tmp-uR9lqT
>> mock requires setuptools>=17.1. Aborting installation
>> error: Setup script exited with 1
>>
>> ********************************************
>> ********************************************
>>
>> I tried installing setuptools in my home dir, as I don't have root
>> access in this machine, but was unable to it kept complaining that
>> the folder where I wanted to install this package did not support
>> .pth files.
>>
>> Any ideas ?
>>
>> Thanks for your help.
>> Best,
>> Juan
>>
>>
>>
>> On Jul 15, 2015, at 8:44 PM, Nathan Goldbaum wrote:
>>
>>>
>>>
>>> On Wed, Jul 15, 2015 at 12:19 PM, Juan Camilo Ibanez Mejia
>>> <jibanezmejia at amnh.org <mailto:jibanezmejia at amnh.org>> wrote:
>>>
>>> Hi all,
>>>
>>> I'm running into some problems while trying to generate a python
>>> executable in yt3.0
>>> I was able to do it in yt2.6 but not in this newer version, this
>>> is an example of what I'm doing:
>>>
>>> >#!/home/jcibanezm/codes/yt30/yt-x86_64/bin/python
>>> >
>>> >import yt
>>> >print "Hello World"
>>>
>>>
>>> And when I run this, I get the following error:
>>>
>>> Traceback (most recent call last):
>>> File "./Test.py", line 3, in <module>
>>> from yt.config import ytcfg;ytcfg["yt","__withinreason"]="True"
>>> File
>>> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/__init__.py",
>>> line 121, in <module>
>>> from yt.data_objects.api import \
>>> File
>>> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/api.py",
>>> line 53, in <module>
>>> from .image_array import \
>>> File
>>> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/image_array.py",
>>> line 15, in <module>
>>> from yt.visualization.image_writer import write_bitmap,
>>> write_image
>>> File
>>> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/visualization/image_writer.py",
>>> line 24, in <module>
>>> import yt.utilities.png_writer as pw
>>> File
>>> "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/utilities/png_writer.py",
>>> line 13, in <module>
>>> import matplotlib._png as _png
>>> ImportError: libpng16.so.16: cannot open shared object file: No
>>> such file or directory
>>>
>>>
>>> It looks like your python installation is broken - matplotlib can't
>>> find libpng. Since it was able to find it when matplotlib was
>>> installed initally, this indicates to me that libpng was deleted out
>>> from under it.
>>>
>>> What OS is this?
>>>
>>> Have you tried completely deleting the yt-x86_64 folder and
>>> rerunning the install script?
>>>
>>>
>>>
>>> Any idea ?
>>> thanks for your help.
>>> Best,
>>> Juan
>>>
>>>
>>> --------------------------------------------------
>>> Juan Camilo Ibáñez-Mejia
>>> PhD student in Physics.
>>> Institut für Theoretische Astrophysik,
>>> Zentrum für Astronomie Heidelberg
>>> jibanez at zah.uni-heidelberg.de <mailto:jibanez at zah.uni-heidelberg.de>
>>>
>>> American Museum of Natural History
>>> +1-212-313-7435 <tel:%2B1-212-313-7435>
>>> jibanezmejia at amnh.org <mailto:jibanezmejia at amnh.org>
>>> ----------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org <mailto:yt-users at lists.spacepope.org>
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.spacepope.org_listinfo.cgi_yt-2Dusers-2Dspacepope.org&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=1yMlSCqbeE-DTAYa6FSUWWk58JuKNs0F7mYSJk-mlbI&e=>
>>>
>>>
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org <mailto:yt-users at lists.spacepope.org>
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.spacepope.org_listinfo.cgi_yt-2Dusers-2Dspacepope.org&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=1yMlSCqbeE-DTAYa6FSUWWk58JuKNs0F7mYSJk-mlbI&e=>
>>
>> --------------------------------------------------
>> Juan Camilo Ibáñez-Mejia
>> PhD student in Physics.
>> Institut für Theoretische Astrophysik,
>> Zentrum für Astronomie Heidelberg
>> jibanez at zah.uni-heidelberg.de <mailto:jibanez at zah.uni-heidelberg.de>
>>
>> American Museum of Natural History
>> +1-212-313-7435
>> jibanezmejia at amnh.org <mailto:jibanezmejia at amnh.org>
>> ----------------------------------------------------
>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org <mailto:yt-users at lists.spacepope.org>
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> --------------------------------------------------
> Juan Camilo Ibáñez-Mejia
> PhD student in Physics.
> Institut für Theoretische Astrophysik,
> Zentrum für Astronomie Heidelberg
> jibanez at zah.uni-heidelberg.de <mailto:jibanez at zah.uni-heidelberg.de>
>
> American Museum of Natural History
> +1-212-313-7435
> jibanezmejia at amnh.org <mailto:jibanezmejia at amnh.org>
> ----------------------------------------------------
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150717/fdc15d88/attachment.html>
More information about the yt-users
mailing list