Re: Problem coercing to Unicode

From: Eric Parent <ericp.75_at_nyahnyahspammersnyahnyah>
Date: Fri, 20 Mar 2009 14:27:54 -0400

Thanks! This is now fixed.
Really helpfull.

--
- Eric
2009/3/20 Mary Haley <haley_at_ucar.edu>:
> Hi Eric,
>
> I believe this is due to a bug in Nio.py that we fixed after this
> release. David Broderick was kind enough to post a fix, which you can
> find here:
>
>  http://www.pyngl.ucar.edu/User_forum/Archives/2008/0127.html
>
> --Mary
>
>
> On Fri, 20 Mar 2009, Eric Parent wrote:
>
>> Hi all,
>>
>> I installed the following packages:
>> - "PyNIO-1.3.0b1.linux-i686.-gcc412-2.5"
>> - "PyNGL-1.3.0b1.linux-i686-gcc412-2.5"
>>
>> I am running under Kubuntu 8.08, with Python 2.5.2.
>>
>> I try to launch the "nio_demo.py" script in order to see everything is
>> going on properly but get this:
>> -----------------------------------------------------------
>> Traceback (most recent call last):
>>  File "nio_demo.py", line 2, in <module>
>>   import Nio
>>  File "/usr/lib/python2.5/site-packages/PyNIO/Nio.py", line 117, in
>> <module>
>>   os.environ["NCARG_NCARG"] = pyniopath_ncarg()
>>  File "/usr/lib/python2.5/site-packages/PyNIO/Nio.py", line 99, in
>> pyniopath_ncarg
>>   if os.path.exists(ncarg_dir):
>>  File "/usr/lib/python2.5/posixpath.py", line 171, in exists
>>   st = os.stat(path)
>> TypeError: coercing to Unicode: need string or buffer, NoneType found
>> -----------------------------------------------------------
>>
>> Anyone ever got that? Anybody knows how to fix it? I know a little
>> about Python programming but since these scripts are distributed, I
>> guess this shouldn't happen.
>>
>>
>> Regards,
>>
>> - Eric
>>
>> email: ericp <dot/> 75 <at/> gmail <dot/> com
>> _______________________________________________
>> pyngl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>>
>
Received on Fri Mar 20 2009 - 12:27:54 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 07 2009 - 10:04:30 MDT