[yt-users] installing yt on mac osx 10.6

Matteo Tomassetti m.tomassetti at gmail.com
Mon Apr 25 02:41:18 PDT 2011


Thanks Matthew,
you are very kind! Now the yt command works but I still have problems with
the test script .... I checked at my file but it was already corrected ....

2011/4/25 Matthew Turk <matthewturk at gmail.com>

> Hi Matteo,
>
> yt is installed into a fully local directory, without touching
> anything outside of it.  So -- worst case scenario is that you delete
> that directory, undo your changes to your environment variables, and
> it goes back to normal.
>
> There are three variables it tells you to change in the
> install_script.sh.  PATH, LD_LIBRARY_PATH, and PYTHONPATH.  It also
> tells you to set YT_DEST.  Here's how it looks in my .bashrc -- if you
> are using csh, yours would look differently.
>
> export YT_DEST=/home/mturk/yt-x86_64
> export PATH=$YT_DEST/bin:$PATH
> export LD_LIBRARY_PATH=$YT_DEST/lib:$LD_LIBRARY_PATH
> export PYTHONPATH=$YT_DEST/lib/python2.7/site-packages:$PYTHONPATH
>
> (These usually go at the bottom.)  Note that in the definition of PATH
> I also include the old value of PATH -- this is how programs like
> gnuplot and so on can be found.  But I include the YT_DEST path first,
> so that it gets searched before the other.
>
> If you use csh, this will look differently, but I don't know csh so I
> can't speak to how.
>
> Now, another important note is that if you try to re-set these in an
> existing shell, it won't bring back the original value of PATH -- if
> you mistakenly do something like "export PATH=/something" then the old
> version is gone, and you'll have to log out / log back in to get it
> back from the systemwide profile.
>
> Anyway, if you continue to have issues, it might be most productive if
> you show us what PATH and LD_LIBRARY_PATH are set to in the shell
> "echo $LD_LIBRARY_PATH" and "echo $PATH") and how you set them in your
> ~/.bashrc or ~/.cshrc.
>
> -Matt
>
> On Mon, Apr 25, 2011 at 5:07 AM, Matteo Tomassetti
> <m.tomassetti at gmail.com> wrote:
> > Hi Matt,
> > I'm sorry but nothing works here! I changes the file as you said and run
> "yt
> > instinfo -u"....
> > I am still not able to launch yt on a shell and also to run the test
> > scripts!
> > Moreover, there has been conflicts with some other applications. Now when
> I
> > type "gnuplot" for example I receive the message command not found! I
> > checked the .profile and it seems ok. I'm a bit desperate now because yt
> > does not work and I also have lots of bugs in all other programs.
> > Please, help!
> >
> > 2011/4/24 Matthew Turk <matthewturk at gmail.com>
> >>
> >> Hi Matteo and Cameron,
> >>
> >> The second issue should be fixed in these revisions:
> >>
> >> http://hg.enzotools.org/yt/changeset/2ac5c7fd4421
> >> http://hg.enzotools.org/yt/changeset/6ba145c8686b
> >>
> >> So running "yt instinfo -u" should update the current yt installation
> >> to get it working.
> >>
> >> And, Matteo, thank you very much for the kind words.  We hope yt can
> >> be useful for you, too, and appreciate the feedback!  If you run into
> >> anything else, please feel free to email back and let us know.  I will
> >> also look into replacing "wget" with "curl" as needed in the
> >> installation script -- thanks for the tip.  :)
> >>
> >> Best,
> >>
> >> Matt
> >>
> >> On Sun, Apr 24, 2011 at 8:52 AM, Cameron Hummels
> >> <chummels at astro.columbia.edu> wrote:
> >> > Hi Matteo,
> >> >
> >> > When you run the installer, there should be a few messages that it
> sends
> >> > to
> >> > you when it finishes.  One of those messages describes how to add yt
> to
> >> > your
> >> > new path and pythonpath environment variables.  If you follow these
> >> > instructions, it ought to set you straight.  So go ahead and rerun the
> >> > installer (don't worry, it won't break anything, or even take very
> long
> >> > to
> >> > run now that it is already installed), and make sure to follow the
> >> > instructions it presents you with at the end.
> >> >
> >> > That may fix your second error as well, but I'm not sure.  Give it a
> >> > shot.
> >> >
> >> > Cameron
> >> >
> >> > On 04/24/2011 04:16 AM, Matteo Tomassetti wrote:
> >> >
> >> > Hi there,
> >> > I'm trying to install yt on the new Mac OSX 10.6, Snow Leopard and I
> >> > have
> >> > some problems. I run the install script modifying "wget" with "curl
> -o"
> >> > and
> >> > the installation went ok. But then, when I type "yt" in my terminal I
> >> > receive the "command not found error". Moreover, if I go the the bin
> >> > directory of yt and type ./yt I enter the program but, trying to run
> the
> >> > first example I get this error message:
> >> > this is what I type in the bin directory:
> >> > ./yt halos src/yt-hg/tests/DD0010/moving7_0010/
> >> >
> >> > this is the error:
> >> > Traceback (most recent call last):
> >> >  File "./yt", line 9, in <module>
> >> >    load_entry_point('yt==2.1stable', 'console_scripts', 'yt')()
> >> >  File
> >> >
> >> >
> "/Users/matteotomassetti/yt-i386/src/yt-hg/yt/utilities/command_line.py",
> >> > line 961, in run_main
> >> >    sys.exit(YT.main())
> >> >  File
> "/Users/matteotomassetti/yt-i386/src/yt-hg/yt/utilities/cmdln.py",
> >> > line 257, in main
> >> >    return self.cmd(args)
> >> >  File
> "/Users/matteotomassetti/yt-i386/src/yt-hg/yt/utilities/cmdln.py",
> >> > line 280, in cmd
> >> >    retval = self.onecmd(argv)
> >> >  File
> "/Users/matteotomassetti/yt-i386/src/yt-hg/yt/utilities/cmdln.py",
> >> > line 412, in onecmd
> >> >    return self._dispatch_cmd(handler, argv)
> >> >  File
> "/Users/matteotomassetti/yt-i386/src/yt-hg/yt/utilities/cmdln.py",
> >> > line 1100, in _dispatch_cmd
> >> >    return handler(argv[0], opts, *args)
> >> >  File
> >> >
> >> >
> "/Users/matteotomassetti/yt-i386/src/yt-hg/yt/utilities/command_line.py",
> >> > line 387, in do_halos
> >> >    hp = HP.HaloProfiler(arg,opts.halo_parameter_file,**kwargs)
> >> > TypeError: __init__() got an unexpected keyword argument 'radius'
> >> >
> >> > so my questions are:
> >> > 1) how can I call yt in any shell without going to the bin directory
> of
> >> > the
> >> > program every time?
> >> > 2) how can I fix the above bug?
> >> >
> >> > Please help me, yt looks really nice for what I have to do and I
> really
> >> > don't want to miss the chance to use it!
> >> > Cheers,
> >> > M.
> >> >
> >> > _______________________________________________
> >> > yt-users mailing list
> >> > yt-users at lists.spacepope.org
> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >> >
> >> > --
> >> > Cameron Hummels
> >> > PhD Candidate, Astronomy Department of Columbia University
> >> > Public Outreach Director, Astronomy Department of Columbia University
> >> > NASA IYA New York State Student Ambassador
> >> > http://outreach.astro.columbia.edu
> >> > PGP: 0x06F886E3
> >> >
> >> > _______________________________________________
> >> > 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
> >
> >
> >
> > --
> > Matteo Tomassetti
> >
> > _______________________________________________
> > 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
>



-- 
Matteo Tomassetti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110425/2e84fb4f/attachment.htm>


More information about the yt-users mailing list