[yt-users] YT-3.0 - quick question - teething problems....

Britton Smith brittonsmith at gmail.com
Mon Sep 15 04:37:19 PDT 2014


I think your repo is probably missing most of the latest changes.  Make
sure you "hg pull" before you do "hg up yt" and python setup.py develop.

On Mon, Sep 15, 2014 at 12:30 PM, John Regan <johnanthonyregan at gmail.com>
wrote:

> I ran "python setup.py develop" which I think I missed before when trying
> to switch to the new branch. At the end of the output there are some weird
> lines:
>
> Creating
> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/lib/python2.7/site-packages/yt.egg-link
> (link to .)
> yt 2.6dev is already the active version in easy-install.pth
> Installing yt script to
> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin
> Installing pyro_queue.py script to
> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin
> Installing yt_lodgeit.py script to
> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin
> Installing iyt script to
> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin
>
> Installed /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0
> Processing dependencies for yt==2.6dev
> Finished processing dependencies for yt==2.6dev
>
> It looks like it is updating to the 2.6dev for some reason.
> The changeset is c53475f4d73a now.
>
> The script also still fails in the same way as before - it seems I'm still
> not on the 3.0 dev branch?
>
>
> On Mon, Sep 15, 2014 at 2:09 PM, Britton Smith <brittonsmith at gmail.com>
> wrote:
>
>> Ah, ok, that changeset is in the yt-3.0 branch, which has been all but
>> closed.  Development for yt-3.0 has moved to the yt branch.  You'll need to
>> "hg pull ; hg up yt" and do another "python setup.py develop" and I think
>> you'll be ok then.
>>
>> On Mon, Sep 15, 2014 at 12:05 PM, John Regan <johnanthonyregan at gmail.com>
>> wrote:
>>
>>> The latest I hope :)
>>>
>>> (yt-x86_64)[regan at taito-login3 RT]$ yt instinfo
>>>
>>> yt module located at:
>>>     /homeappl/home/regan/appl_
>>> taito/YT/Dev-3.0/yt-3.0
>>>
>>> The current version of the code is:
>>>
>>> ---
>>> 38fff02747ca
>>> ---
>>>
>>> This installation CAN be automatically updated.
>>> yt dependencies were last updated on
>>> Mon Sep 15 12:40:51 EEST 2014
>>>
>>>
>>> (yt-x86_64)[regan at taito-login3 RT]$ which pyyt
>>> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin/pyyt
>>>
>>>
>>> On Mon, Sep 15, 2014 at 2:03 PM, Britton Smith <brittonsmith at gmail.com>
>>> wrote:
>>>
>>>> What changeset of yt are you on?  What do you get with "yt instinfo"?
>>>>
>>>> On Mon, Sep 15, 2014 at 11:57 AM, John Regan <
>>>> johnanthonyregan at gmail.com> wrote:
>>>>
>>>>> It 50% works in that case.
>>>>>
>>>>> load works but ProfilePlot fails!
>>>>>
>>>>>  File "test.py", line 9, in <module>
>>>>>     prof1d = ProfilePlot(sphere, "radius", "H2I_Fraction")
>>>>> NameError: name 'ProfilePlot' is not defined
>>>>>
>>>>> Totally confused :)
>>>>>
>>>>> On Mon, Sep 15, 2014 at 1:54 PM, Britton Smith <brittonsmith at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Hi John,
>>>>>>
>>>>>> D'oh, sorry, that's what I get for trying to answer emails before
>>>>>> enough coffee.
>>>>>>
>>>>>> Question, if you do "from yt.mods import *" and remove the yt from
>>>>>> yt.load and yt.ProfilePlot, do things work?
>>>>>>
>>>>>> Britton
>>>>>>
>>>>>> On Mon, Sep 15, 2014 at 10:56 AM, John Regan <
>>>>>> johnanthonyregan at gmail.com> wrote:
>>>>>>
>>>>>>> Hi All,
>>>>>>>
>>>>>>> I'm having some teething problems with 3.0.
>>>>>>> It seems that I have a conflict somewhere but I can't see where. For
>>>>>>> example I have a very simple script which is doing weird things
>>>>>>>
>>>>>>> #Simple simple script
>>>>>>> import yt
>>>>>>> filename = "....../RD0000/RD0000"
>>>>>>> ds = yt.load(filename)
>>>>>>>
>>>>>>>
>>>>>>> This fails with:
>>>>>>>
>>>>>>> File "test.py", line 6, in <module>
>>>>>>>     ds = yt.load(filename)
>>>>>>> AttributeError: 'module' object has no attribute 'load'
>>>>>>>
>>>>>>> If instead I change the script to be:
>>>>>>>
>>>>>>> #Simple simple script
>>>>>>> from yt.mods import *
>>>>>>> filename = "......../RD0000/RD0000"
>>>>>>> ds = load(filename)
>>>>>>> sp = ds.h.sphere('max', (10, 'kpc'))
>>>>>>> prof1d = ProfilePlot(sphere, "radius", "H2I_Fraction")
>>>>>>>
>>>>>>> This now loads the file but fails on:
>>>>>>>  File "test.py", line 9, in <module>
>>>>>>>     prof1d = ProfilePlot(sphere, "radius", "H2I_Fraction")
>>>>>>> NameError: name 'ProfilePlot' is not defined
>>>>>>>
>>>>>>>
>>>>>>> Any ideas what's happening here?
>>>>>>>
>>>>>>> Cheers,
>>>>>>> John
>>>>>>>
>>>>>>>
>>>>>>> (yt-x86_64)[regan at taito-login3 RT]$ yt instinfo
>>>>>>>
>>>>>>> yt module located at:
>>>>>>>     /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0
>>>>>>>
>>>>>>> The current version of the code is:
>>>>>>>
>>>>>>> ---
>>>>>>> 38fff02747ca
>>>>>>> ---
>>>>>>>
>>>>>>> This installation CAN be automatically updated.
>>>>>>> yt dependencies were last updated on
>>>>>>> Mon Sep 15 12:40:51 EEST 2014
>>>>>>>
>>>>>>>
>>>>>>> (yt-x86_64)[regan at taito-login3 RT]$ which pyyt
>>>>>>>
>>>>>>> /homeappl/home/regan/appl_taito/YT/Dev-3.0/yt-3.0/doc/yt-x86_64/bin/pyyt
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140915/650e35fa/attachment.html>


More information about the yt-users mailing list