[yt-users] Two different setup.py installs

Junhwan Choi (최준환) choi.junhwan at gmail.com
Tue Apr 21 14:54:57 PDT 2015


Thank you Nathan,

After I do bash clean.sh,  installation by python setup.py.develop
does not cause the crash.
Junhwan

On Tue, Apr 21, 2015 at 3:13 PM, Nathan Goldbaum <nathan12343 at gmail.com> wrote:
>
> On Tue, Apr 21, 2015 at 1:08 PM, Junhwan Choi (최준환) <choi.junhwan at gmail.com>
> wrote:
>>
>> Thank you Nathan,
>> The following is the error message I got.
>> =================================
>> ......
>>     import yt
>>   File "/work/00916/tg459470/common/src/yt/yt/__init__.py", line 121,
>> in <module>
>>     from yt.data_objects.api import \
>>   File "/work/00916/tg459470/common/src/yt/yt/data_objects/api.py",
>> line 16, in <module>
>>     from .grid_patch import \
>>   File "/work/00916/tg459470/common/src/yt/yt/data_objects/grid_patch.py",
>> line 23, in <module>
>>     from yt.data_objects.data_containers import \
>>   File
>> "/work/00916/tg459470/common/src/yt/yt/data_objects/data_containers.py",
>> line 43, in <module>
>>     import yt.geometry.selection_routines
>> ImportError:
>> /work/00916/tg459470/common/src/yt/yt/geometry/selection_routines.so:
>> invalid ELF header
>> =================================
>>
>
> Interesting, never seen this error before.  Let's try forcing all the C
> extensions to be recompiled.  First, make sure all yt installations have
> been removed:
>
> $ pip uninstall yt
>
> Repeat that until it complains about not finding an active installation.
>
> Then, in the root of the yt repository, run
>
> $ bash clean.sh
>
> clean.sh is a shell script that cleans up compiled artifacts.
>
> Next, recompile
>
> $ python setup.py develop
>
> And let us know if that fixes the issue.
>
>>
>>
>> -J
>>
>> On Tue, Apr 21, 2015 at 12:47 PM, Nathan Goldbaum <nathan12343 at gmail.com>
>> wrote:
>> >
>> >
>> > On Tue, Apr 21, 2015 at 7:42 AM, Junhwan Choi (최준환)
>> > <choi.junhwan at gmail.com>
>> > wrote:
>> >>
>> >> Hi yt user,
>> >>
>> >> I have one naive question.
>> >> I install yt from the yt source with setup.py.
>> >> There are two different way you can install.
>> >> 1) python setup.py develop
>> >> 2) python setup.py build and python setup.py install
>> >>
>> >> What is the different between two approach?
>> >> Strangely, when I install with 1), the yt is installed but it crash
>> >> when it runs.
>> >> However, when I install with 2), the yt is installed and the same
>> >> script run at this time.
>> >> Is there anyone had a similar experience?
>> >
>> >
>> > The main difference is the location of the installation.  The former
>> > uses
>> > the clone of the mercurial repository as the "active" installation, the
>> > latter copies all relavent files to a folder in your python's
>> > site_packages
>> > directory.
>> >
>> > Can you share the error message you see under "setup.py develop"?  It's
>> > very
>> > hard to diagnose what's going wrong without a specific error message to
>> > look
>> > at.
>> >
>> >>
>> >>
>> >> Thank you,
>> >> Junhwan Choi
>> >> _______________________________________________
>> >> yt-users mailing list
>> >> yt-users at lists.spacepope.org
>> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>> >
>> >
>> > _______________________________________________
>> > yt-users mailing list
>> > yt-users at lists.spacepope.org
>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>> >
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org




More information about the yt-users mailing list