<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 21, 2015 at 1:08 PM, Junhwan Choi (최준환) <span dir="ltr"><<a href="mailto:choi.junhwan@gmail.com" target="_blank">choi.junhwan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you Nathan,<br>
The following is the error message I got.<br>
=================================<br>
......<br>
    import yt<br>
  File "/work/00916/tg459470/common/src/yt/yt/__init__.py", line 121,<br>
in <module><br>
    from yt.data_objects.api import \<br>
  File "/work/00916/tg459470/common/src/yt/yt/data_objects/api.py",<br>
line 16, in <module><br>
    from .grid_patch import \<br>
  File "/work/00916/tg459470/common/src/yt/yt/data_objects/grid_patch.py",<br>
line 23, in <module><br>
    from yt.data_objects.data_containers import \<br>
  File "/work/00916/tg459470/common/src/yt/yt/data_objects/data_containers.py",<br>
line 43, in <module><br>
    import yt.geometry.selection_routines<br>
ImportError: /work/00916/tg459470/common/src/yt/yt/geometry/selection_routines.so:<br>
invalid ELF header<br>
=================================<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>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:</div><div><br></div><div>$ pip uninstall yt</div><div><br></div><div>Repeat that until it complains about not finding an active installation.</div><div><br></div><div>Then, in the root of the yt repository, run</div><div><br></div><div>$ bash clean.sh</div><div><br></div><div>clean.sh is a shell script that cleans up compiled artifacts.</div><div><br></div><div>Next, recompile</div><div><br></div><div>$ python setup.py develop</div><div><br></div><div>And let us know if that fixes the issue.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
<br>
-J<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Tue, Apr 21, 2015 at 12:47 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:<br>
><br>
><br>
> On Tue, Apr 21, 2015 at 7:42 AM, Junhwan Choi (최준환) <<a href="mailto:choi.junhwan@gmail.com">choi.junhwan@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi yt user,<br>
>><br>
>> I have one naive question.<br>
>> I install yt from the yt source with setup.py.<br>
>> There are two different way you can install.<br>
>> 1) python setup.py develop<br>
>> 2) python setup.py build and python setup.py install<br>
>><br>
>> What is the different between two approach?<br>
>> Strangely, when I install with 1), the yt is installed but it crash<br>
>> when it runs.<br>
>> However, when I install with 2), the yt is installed and the same<br>
>> script run at this time.<br>
>> Is there anyone had a similar experience?<br>
><br>
><br>
> The main difference is the location of the installation.  The former uses<br>
> the clone of the mercurial repository as the "active" installation, the<br>
> latter copies all relavent files to a folder in your python's site_packages<br>
> directory.<br>
><br>
> Can you share the error message you see under "setup.py develop"?  It's very<br>
> hard to diagnose what's going wrong without a specific error message to look<br>
> at.<br>
><br>
>><br>
>><br>
>> Thank you,<br>
>> Junhwan Choi<br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div></div>