[yt-users] Csh environment setting bug

Casey W. Stark caseywstark at gmail.com
Tue Mar 27 11:21:43 PDT 2012


Hi Alice.

Any luck with the new activate.csh?


On Sun, Mar 25, 2012 at 10:44 AM, Casey W. Stark <caseywstark at gmail.com>wrote:

> Hi Alice.
>
> I think I fixed the csh issue. I made sure that none of the environment
> variables that the activate.csh script touches will end with a colon. PATH
> and LD_LIBRARY_PATH are the only ones that need the old value appended, and
> I removed the others. That is, YT_DEST will always be the current yt path,
> with nothing else at the end.
>
> I attached the new activate.csh script, with an empty VIRTUAL_ENV value on
> line 10. Please set this value to your yt install directory, which looks
> like "/Users/acoucke/yt-i386" and try it again with a fresh terminal. If
> this works for you, please report back and I can commit it.
>
> Best,
> Casey
>
>
> On Sun, Mar 25, 2012 at 10:00 AM, Britton Smith <brittonsmith at gmail.com>wrote:
>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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/20120327/b4c4e191/attachment.htm>


More information about the yt-users mailing list