[GRASS-dev] using libpath + ":" + in grass70 unsupported operand type
Glynn Clements
glynn at gclements.plus.com
Tue Nov 26 11:30:04 PST 2013
Yann Chemin wrote:
> ~/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?
The problem is that one of the variables (libpath, isislibpath,
isis3rdparty) is None, and "None + str" isn't defined:
> None + "hello"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
--
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list