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

John Regan johnanthonyregan at gmail.com
Mon Sep 15 05:18:56 PDT 2014


Yeah I think this is getting closer to the solution now. I reckon I was
constantly pulling from yt-3.0 - not sure why that happened of course.
 I've been doing hg log | head and I see the last entry was December last
year - not good :)

I've now started over and cloned from
hg clone ssh://hg@bitbucket.org/yt_analysis/yt

hopefully that solve all my troubles (well my YT ones at least....)


On Mon, Sep 15, 2014 at 3:02 PM, Britton Smith <brittonsmith at gmail.com>
wrote:

> Ah, yes, the repo is actually bitbucket.org/yt_analysis/yt
> The one you have there was the original development repo from a while
> back.  Since, then development was merged into the main repo (yt, not
> yt-3.0).
>
> You can always do "hg log -l 1" after "hg pull" to see the log of the very
> latest change in that repo.  yt development happens fast enough that if
> that the date on that changeset is from more than a month ago, it's likely
> you're not getting the latest changes.
>
> On Mon, Sep 15, 2014 at 12:48 PM, John Regan <johnanthonyregan at gmail.com>
> wrote:
>
>> Running "hg pull" seems to indicate that I am up2date but like you said
>> there does seem to be a problem with my repos
>>
>> (yt-x86_64)[regan at taito-login3 yt-3.0]$ hg pull
>> pulling from ssh://hg@bitbucket.org/yt_analysis/yt-3.0
>> searching for changes
>> no changes found
>> (yt-x86_64)[regan at taito-login3 yt-3.0]$ hg up yt
>> 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
>>
>> Is there an easy to check if I am on the tip to see if my repos is
>> actually OK or not?
>>
>>
>> On Mon, Sep 15, 2014 at 2:37 PM, Britton Smith <brittonsmith at gmail.com>
>> wrote:
>>
>>> 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
>>>>
>>>>
>>>
>>> _______________________________________________
>>> 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/51480897/attachment.htm>


More information about the yt-users mailing list