Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

'basestring' is not defined #12

Open
uvchik opened this issue Mar 16, 2016 · 1 comment
Open

'basestring' is not defined #12

uvchik opened this issue Mar 16, 2016 · 1 comment
Assignees

Comments

@uvchik
Copy link

uvchik commented Mar 16, 2016

Whatever I do I get the following error. I replaced basestring with str locally and get it work.

File "/usr/local/lib/python3.4/dist-packages/ogrtools/pyogr/ogr2ogr.py", line 644, in ogr2ogr
    if isinstance(pszDataSource, basestring):
NameError: name 'basestring' is not defined

What is the meaning of basestring. Will I have a problem replacing it with str?

@uvchik
Copy link
Author

uvchik commented Mar 16, 2016

Found out that it is a known python3 issue:
http://stackoverflow.com/questions/4232111/stringtype-and-nonetype-in-python3-x

Is it possible to fix it?

@pka pka self-assigned this Mar 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants