[yt-users] Csh environment setting bug

Britton Smith brittonsmith at gmail.com
Sun Mar 25 10:00:38 PDT 2012


Hi Alice,

First of all, welcome to yt!

Someone is looking into your csh issues and will reply to the list with an
update soon.

I recently installed yt on a machine running OSX Lion and did not have the
issues you reported with zlib and compilers.  My experience was with a
brand new machine that did not have previously installed compilers or
libraries.  In your case, was this a clean install like mine, or did you
upgrade to Lion from an older OS?  If it is the latter, my suspicion is
that your issues were related to having some outdated libraries in your
path.  I think, in general, setting the environment variable "export
CC=gcc" on Lion will minimally do no harm, so we will add a note on that to
the install script.

Britton

On Fri, Mar 23, 2012 at 5:41 PM, Alice Coucke <acoucke at amnh.org> wrote:

>  Hello everyone,
>
>  It looks like there is a bug with the csh environment setting. I am a
> Unix beginner so I might have done an error.
> I had to make these modifications to the install script to set up yt in a
> csh shell OSX Lion machine :
>
>  * Disable the install of zlib. The HDF5 build failed because of some
> sort of version confusion.
>
>  * Force the use of gcc over the newer clang compiler by setting :
> export CC=gcc
> at the top of the install script. Matplotlib-1.1.0 fails to compile with
> the default Lion cc which is clang based.
>
>  Once installed, I had difficulties to run it. I tried to follow
> the Extremely Simple Data Inspection.
>
>
> $ yt stats $YT_DEST/src/yt-hg/tests/DD0010/moving7_0010
>
>
> BUT that is what happens :
>
>
>  yt : [ERROR    ] 2012-03-23 11:17:08,651 Couldn't figure out output type for /Users/acoucke/yt-i386:/src/yt-hg/tests/DD0010/moving7_0010
> Traceback (most recent call last):
>   File "/Users/acoucke/yt-i386/bin/yt", line 9, in <module>
>     load_entry_point('yt==2.3', 'console_scripts', 'yt')()
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/command_line.py", line 1610, in run_main
>     sys.exit(YT.main())
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/cmdln.py", line 257, in main
>     return self.cmd(args)
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/cmdln.py", line 280, in cmd
>     retval = self.onecmd(argv)
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/cmdln.py", line 412, in onecmd
>     return self._dispatch_cmd(handler, argv)
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/cmdln.py", line 1100, in _dispatch_cmd
>     return handler(argv[0], opts, *args)
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/command_line.py", line 256, in arg_iterate
>     func(self, subcmd, opts, arg)
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/command_line.py", line 627, in do_stats
>     pf = _fix_pf(arg)
>   File "/Users/acoucke/yt-i386/src/yt-hg/yt/utilities/command_line.py", line 44, in _fix_pf
>     raise IOError
> IOError
>
>
> Then if I type :
>
>
> $ echo $YT_DEST
>
> /Users/acoucke/yt-i386:
>
>
> It seems that there is an unexpected colon here because :
>
>
> $ ls /Users/acoucke/yt-i386:
> ls: /Users/acoucke/yt-i386:: No such file or directory
>
>
> I have to use :
>
>
> setenv YT_DEST /Users/acoucke/yt-i386
>
>
> to make that works.
>
>
>
> Best,
>
>
>
> Alice Coucke
>
>
>
>
> _______________________________________________
> 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/20120325/c86d04cc/attachment.html>


More information about the yt-users mailing list