[yt-users] parallelHOP problem, did I break python?

Matthew Turk matthewturk at gmail.com
Fri Oct 29 16:05:03 PDT 2010


Stephen's changes added an import error that broke "from yt.mods
import *".  I've pushed a fix.  I think you should be able to do "yt
instinfo -u" but otherwise, pull and update.

-Matt

On Fri, Oct 29, 2010 at 3:10 PM,  <gso at physics.ucsd.edu> wrote:
> I guess when you break things twice you fix them!  The new yt2.0 I
> installed has problems, but when I went back and did sudo python setup.py
> install in my old yt that was having parallel hop problem, the script that
> was complaining is working again!
>
> I checked the version with SVN info
> gso:yt-trunk-svn gso$ svn info
> Path: .
> URL: http://svn.enzotools.org/yt/trunk
> Repository Root: http://svn.enzotools.org/yt
> Repository UUID: a79caf2f-f534-0410-a086-a967bc00d294
> Revision: 1811
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mturk
> Last Changed Rev: 1811
> Last Changed Date: 2010-08-24 18:56:59 -0700 (Tue, 24 Aug 2010)
>
> From the URL:...was I suppose to do
>>hg branch trunk
> instead of just
>>hg branch
> in the yt2.0?
>
> So since it was last updated by Matt on 24 Aug 2010, I assume I'm using
> the latest instead of the 1.7 right?  Sorry for all the hassle...
>
> From
> G.S.
>
>> Did the
>>>hg clone
>>>hg branch
>>>cd yt2.0
>>>python setup.py install
>> copied Forthon insize yt2.0
>>>python setup.py install inside the new Forthon directory
>>>cd yt2.0
>>>python setup.py install
>>
>> but now inside python when I try to import yt.mods I get
>>>>> from yt.mods import *
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/mods.py",
>> line 74, in <module>
>>     from yt.analysis_modules.halo_finding.api import \
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/api.py",
>> line 31, in <module>
>>     from halo_objects import \
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/halo_objects.py",
>> line 45, in <module>
>>     from parallel_hop.parallel_hop_interface import \
>>   File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/yt-2.0dev-py2.6-macosx-10.6-intel.egg/yt/analysis_modules/halo_finding/parallel_hop/parallel_hop_interface.py",
>> line 36
>>     free_tree, find_chunk_nearest_neighbors
>>     ^
>> IndentationError: unexpected indent
>>>>>
>>
>> From
>> G.S.
>>
>>
>>> Geoffrey,
>>>
>>>> 4.  So can someone point me to a 2.0 installation script?
>>>> Thanks a bunch.
>>>
>>>
>>> I think the simplest way to get this is to make a new copy of yt in your
>>> src/ directory. Do something like this:
>>>
>>> $ hg clone http://hg.enzotools.org/yt/ yt-2
>>>
>>>
>>> and then go into yt-2, and copy the 'hdf5.cfg' file from the yt source
>>> you
>>> have been using in here. Make sure you're using the correct branch "yt":
>>>
>>> $ hg branch
>>> yt
>>>
>>> And then do:
>>>
>>> $ python setup.py install
>>>
>>> You'll have to "make" the fKDpy.so file again, and then do the command
>>> above again.
>>>
>>> Remember, this is the branch that is under active development and has
>>> many
>>> changes compared to older versions of yt. Some of your scripts may not
>>> work without modification.
>>>
>>>
>>> Good luck!
>>>
>>>
>>> Stephen Skory
>>> s at skory.us
>>> http://stephenskory.com/
>>> 510.621.3687 (google voice)
>>> _______________________________________________
>>> 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