Hi, While trying to install yt on mac, it quits after a while: Installing BZLIB Installing ZLIB Installing PNG Installing FreeType2 Installing HDF5 Installing SQLite3 Installing Python. This may take a while, but don't worry. YT loves you. Installing Mercurial. Installing mercurial-2.0 (arguments: 'mercurial-2.0') Setting YT_DIR=/Users/hitu/Documents/yt/yt-i386/src/yt-hg/ Installing distribute Installing pip Failure. Check /Users/hitu/Documents/yt/yt-i386/yt_install.log. I checked yt_install.log : from pyexpat import * ImportError: No module named pyexpat Something went wrong during the installation. See the error message above. install_script.sh: line 499: /Users/hitu/Documents/yt/yt-i386/bin/easy_install-2.7: No such file or directory Please let me know how to proceed. Thanks Shankar
Hi Agarwal, Can you give us a little bit more detail on your setup - i.e. OS X version, intel or powerPC, and any other information that may be important. The error you're seeing can happen when python is built on a 64 bit platform but tries to link against 32 bit libraries. Can you try opening the python that install script built (it should be in $YT_DEST/bin/python2.7) typing 'import pyexpat'?. I've never seen this error before so apologies for not having a quick solution. Cheers, Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC goldbaum@ucolick.org http://www.ucolick.org/~goldbaum On Jul 5, 2012, at 10:46 AM, Agarwal, Shankar wrote:
Hi,
While trying to install yt on mac, it quits after a while:
Installing BZLIB Installing ZLIB Installing PNG Installing FreeType2 Installing HDF5 Installing SQLite3 Installing Python. This may take a while, but don't worry. YT loves you. Installing Mercurial. Installing mercurial-2.0 (arguments: 'mercurial-2.0') Setting YT_DIR=/Users/hitu/Documents/yt/yt-i386/src/yt-hg/ Installing distribute Installing pip Failure. Check /Users/hitu/Documents/yt/yt-i386/yt_install.log.
I checked yt_install.log :
from pyexpat import * ImportError: No module named pyexpat Something went wrong during the installation. See the error message above. install_script.sh: line 499: /Users/hitu/Documents/yt/yt-i386/bin/easy_install-2.7: No such file or directory
Please let me know how to proceed. Thanks Shankar !DSPAM:10175,4ff5d2ea26207861929410! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4ff5d2ea26207861929410!
Hi Nathan, Yes, I can open python : shankar-MacBook-Pro:yt hitu$ yt-i386/bin/python Python 2.7.2 (default, Jul 5 2012, 12:32:35) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or "license" for more information.
This is a Mac OS X - 10.6.8 (intel core 2 Duo) Let me know if this helps. Shankar ________________________________ From: yt-users-bounces@lists.spacepope.org [yt-users-bounces@lists.spacepope.org] on behalf of Nathan Goldbaum [goldbaum@ucolick.org] Sent: Thursday, July 05, 2012 1:34 PM To: Discussion of the yt analysis package Subject: Re: [yt-users] yt installaton failing Hi Agarwal, Can you give us a little bit more detail on your setup - i.e. OS X version, intel or powerPC, and any other information that may be important. The error you're seeing can happen when python is built on a 64 bit platform but tries to link against 32 bit libraries. Can you try opening the python that install script built (it should be in $YT_DEST/bin/python2.7) typing 'import pyexpat'?. I've never seen this error before so apologies for not having a quick solution. Cheers, Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC goldbaum@ucolick.orgmailto:goldbaum@ucolick.org http://www.ucolick.org/~goldbaum On Jul 5, 2012, at 10:46 AM, Agarwal, Shankar wrote: Hi, While trying to install yt on mac, it quits after a while: Installing BZLIB Installing ZLIB Installing PNG Installing FreeType2 Installing HDF5 Installing SQLite3 Installing Python. This may take a while, but don't worry. YT loves you. Installing Mercurial. Installing mercurial-2.0 (arguments: 'mercurial-2.0') Setting YT_DIR=/Users/hitu/Documents/yt/yt-i386/src/yt-hg/ Installing distribute Installing pip Failure. Check /Users/hitu/Documents/yt/yt-i386/yt_install.log. I checked yt_install.log : from pyexpat import * ImportError: No module named pyexpat Something went wrong during the installation. See the error message above. install_script.sh: line 499: /Users/hitu/Documents/yt/yt-i386/bin/easy_install-2.7: No such file or directory Please let me know how to proceed. Thanks Shankar !DSPAM:10175,4ff5d2ea26207861929410! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.orgmailto:yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org !DSPAM:10175,4ff5d2ea26207861929410!
Hi Agarwal, I still think this is a 32/64 bit problem. in the $YT_DEST directory, can you do the following commands: (yt-i386)humperdinck:yt-i386 goldbaum$ file ./lib/python2.7/lib-dynload/pyexpat.so (yt-i386)humperdinck:yt-i386 goldbaum$ file bin/python2.7 The output for both of my files is: Mach-O 64-bit bundle x86_64 I have a feeling that one of your files is built with i386 (32 bit). Also, in the previous e-mail I wanted you to try importing pyexpat. In the python build by the yt script, please enter 'import pyexpat'. pyexpat is the built-in python xml parser. If python can't import it then your python installation is corrupted somehow. Cheers, Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC goldbaum@ucolick.org http://www.ucolick.org/~goldbaum On Jul 5, 2012, at 10:46 AM, Agarwal, Shankar wrote:
Hi,
While trying to install yt on mac, it quits after a while:
Installing BZLIB Installing ZLIB Installing PNG Installing FreeType2 Installing HDF5 Installing SQLite3 Installing Python. This may take a while, but don't worry. YT loves you. Installing Mercurial. Installing mercurial-2.0 (arguments: 'mercurial-2.0') Setting YT_DIR=/Users/hitu/Documents/yt/yt-i386/src/yt-hg/ Installing distribute Installing pip Failure. Check /Users/hitu/Documents/yt/yt-i386/yt_install.log.
I checked yt_install.log :
from pyexpat import * ImportError: No module named pyexpat Something went wrong during the installation. See the error message above. install_script.sh: line 499: /Users/hitu/Documents/yt/yt-i386/bin/easy_install-2.7: No such file or directory
Please let me know how to proceed. Thanks Shankar !DSPAM:10175,4ff5d2ea26207861929410! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4ff5d2ea26207861929410!
Hi Nathan, I guess you are right. Both the files are built with i386 : ./lib/python2.7/lib-dynload/pyexpat_failed.so: Mach-O bundle i386 ./bin/python2.7: Mach-O executable i386 I am using the install_script.sh. Can I make it build 64bit ? I am able to import pyexpat. Shankar ________________________________ From: yt-users-bounces@lists.spacepope.org [yt-users-bounces@lists.spacepope.org] on behalf of Nathan Goldbaum [goldbaum@ucolick.org] Sent: Thursday, July 05, 2012 2:09 PM To: Discussion of the yt analysis package Subject: Re: [yt-users] yt installaton failing Hi Agarwal, I still think this is a 32/64 bit problem. in the $YT_DEST directory, can you do the following commands: (yt-i386)humperdinck:yt-i386 goldbaum$ file ./lib/python2.7/lib-dynload/pyexpat.so (yt-i386)humperdinck:yt-i386 goldbaum$ file bin/python2.7 The output for both of my files is: Mach-O 64-bit bundle x86_64 I have a feeling that one of your files is built with i386 (32 bit). Also, in the previous e-mail I wanted you to try importing pyexpat. In the python build by the yt script, please enter 'import pyexpat'. pyexpat is the built-in python xml parser. If python can't import it then your python installation is corrupted somehow. Cheers, Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC goldbaum@ucolick.orgmailto:goldbaum@ucolick.org http://www.ucolick.org/~goldbaum On Jul 5, 2012, at 10:46 AM, Agarwal, Shankar wrote: Hi, While trying to install yt on mac, it quits after a while: Installing BZLIB Installing ZLIB Installing PNG Installing FreeType2 Installing HDF5 Installing SQLite3 Installing Python. This may take a while, but don't worry. YT loves you. Installing Mercurial. Installing mercurial-2.0 (arguments: 'mercurial-2.0') Setting YT_DIR=/Users/hitu/Documents/yt/yt-i386/src/yt-hg/ Installing distribute Installing pip Failure. Check /Users/hitu/Documents/yt/yt-i386/yt_install.log. I checked yt_install.log : from pyexpat import * ImportError: No module named pyexpat Something went wrong during the installation. See the error message above. install_script.sh: line 499: /Users/hitu/Documents/yt/yt-i386/bin/easy_install-2.7: No such file or directory Please let me know how to proceed. Thanks Shankar !DSPAM:10175,4ff5d2ea26207861929410! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.orgmailto:yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org !DSPAM:10175,4ff5d2ea26207861929410!
Hi Shankar, Sorry about the name confusion. I'm mystified about what's happening. For some reason, the pip setup is unable to find the version of python isntalled by yt and fails when it tries to import a built-on python library. This is doubly weird because other python packages like distribute and mercurial were able to find the yt python with no problem. Maybe someone else on the list has more insight. We may also be able to give you somewhat lower latency help if you drop by the irc channel: http://yt-project.org/irc.html Cheers, Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC goldbaum@ucolick.org http://www.ucolick.org/~goldbaum On Jul 5, 2012, at 12:27 PM, Agarwal, Shankar wrote:
Hi Nathan,
I guess you are right. Both the files are built with i386 :
./lib/python2.7/lib-dynload/pyexpat_failed.so: Mach-O bundle i386 ./bin/python2.7: Mach-O executable i386
I am using the install_script.sh. Can I make it build 64bit ?
I am able to import pyexpat.
Shankar
From: yt-users-bounces@lists.spacepope.org [yt-users-bounces@lists.spacepope.org] on behalf of Nathan Goldbaum [goldbaum@ucolick.org] Sent: Thursday, July 05, 2012 2:09 PM To: Discussion of the yt analysis package Subject: Re: [yt-users] yt installaton failing
Hi Agarwal,
I still think this is a 32/64 bit problem. in the $YT_DEST directory, can you do the following commands:
(yt-i386)humperdinck:yt-i386 goldbaum$ file ./lib/python2.7/lib-dynload/pyexpat.so
(yt-i386)humperdinck:yt-i386 goldbaum$ file bin/python2.7
The output for both of my files is: Mach-O 64-bit bundle x86_64
I have a feeling that one of your files is built with i386 (32 bit).
Also, in the previous e-mail I wanted you to try importing pyexpat. In the python build by the yt script, please enter 'import pyexpat'.
pyexpat is the built-in python xml parser. If python can't import it then your python installation is corrupted somehow.
Cheers,
Nathan Goldbaum Graduate Student Astronomy & Astrophysics, UCSC goldbaum@ucolick.org http://www.ucolick.org/~goldbaum
On Jul 5, 2012, at 10:46 AM, Agarwal, Shankar wrote:
Hi,
While trying to install yt on mac, it quits after a while:
Installing BZLIB Installing ZLIB Installing PNG Installing FreeType2 Installing HDF5 Installing SQLite3 Installing Python. This may take a while, but don't worry. YT loves you. Installing Mercurial. Installing mercurial-2.0 (arguments: 'mercurial-2.0') Setting YT_DIR=/Users/hitu/Documents/yt/yt-i386/src/yt-hg/ Installing distribute Installing pip Failure. Check /Users/hitu/Documents/yt/yt-i386/yt_install.log.
I checked yt_install.log :
from pyexpat import * ImportError: No module named pyexpat Something went wrong during the installation. See the error message above. install_script.sh: line 499: /Users/hitu/Documents/yt/yt-i386/bin/easy_install-2.7: No such file or directory
Please let me know how to proceed. Thanks Shankar _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4ff5d2ea26207861929410!
!DSPAM:10175,4ff5ea981503474419097! _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
!DSPAM:10175,4ff5ea981503474419097!
participants (2)
-
Agarwal, Shankar
-
Nathan Goldbaum