[GRASS-dev] using libpath + ":" + in grass70 unsupported operand type

Yann Chemin ychemin at gmail.com
Mon Nov 25 19:28:56 PST 2013


Hi Vaclav,

on my 64 bit machine, none of this happens.
Will check back home tonight...

Cheers,
Yann


On 25 November 2013 21:39, Vaclav Petras <wenzeslaus at gmail.com> wrote:

>
>
>
> On Mon, Nov 25, 2013 at 10:55 AM, Yann Chemin <ychemin at gmail.com> wrote:
>
>> Hi,
>>
>> ~/grass_dev$ grass70
>> Traceback (most recent call last):
>>   File "/usr/local/bin/grass70", line 1267, in <module>
>>     load_env()
>>   File "/usr/local/bin/grass70", line 753, in load_env
>>     os.environ['LD_LIBRARY_PATH'] = libpath + ":" + isislibpath + ":" +
>> isis3rdparty
>> TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
>>
>> : is certainly not considered a string, but I cannot force it to be
>> string either... Any idea?
>>
>>
> Hi Yann,
>
> I'm not sure if I understand your situation, anyway:
>
> My line 753 in lib/init/grass.py says:
>
>   ... libpath + os.pathsep + isislibpath + os.pathsep + isis3rdparty
>
> os.pathsep is for sure type str as well as ":" literal is type str.
>
> I would say that one of libpath, isislibpath and isis3rdparty is None
> although lines above seems that they sets everything.
>
> Can you debug your code? Simple print before line 753 should be enough:
>
>   print libpath, isislibpath, isis3rdparty
>
> As far as I know, the print will not break the start up, so it should work.
>
> Vaclav
>
> Thanks
>>
>> --
>> ----
>>
>> _______________________________________________
>> grass-dev mailing list
>> grass-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>>
>
>


-- 
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131126/f75cd0cc/attachment.html>


More information about the grass-dev mailing list