Closed trzytematyczna closed 7 years ago
This is due to incompatibility with Python 3. The basestring
type was a common base type for str
and unicode
that was removed in Python 3, when the default str
type was changed to be unicode
. The easiest fix for this is to run it with Python 2.
If you'd like, you can replace that line with if isinstance(self.base_paths, str):
. There may be other incompatibilities with Python 3 after this though. If you're up to it, I'm glad to merge in a PR that gives full compatibility. You can try using the 2to3 tool to help.
Closing due to inactivity.
Hi, I am trying to use your parser, and while running the command
pipeline admin$ python pipeline.py BuildDataset --start 2000 --end 2001 --local-scheduler
I am getting the error, which is connected to " NameError: name 'basestring' is not defined" in the utils.py. I looked at the code, but tbh I struggle to get what the variable basestring suppose to be. Any indications what can I check or how can I solve this much appreciated!Error: