Conversation
thanosbnt
left a comment
There was a problem hiding this comment.
I'm getting an error in Utils.py
Path(data_url).is_file()
OSError Traceback (most recent call last)
in ()
----> 1 Path(data_url).is_file()
~\Anaconda3\lib\pathlib.py in is_file(self)
1338 """
1339 try:
-> 1340 return S_ISREG(self.stat().st_mode)
1341 except OSError as e:
1342 if e.errno not in (ENOENT, ENOTDIR):
~\Anaconda3\lib\pathlib.py in stat(self)
1134 os.stat() does.
1135 """
-> 1136 return self._accessor.stat(self)
1137
1138 def owner(self):
~\Anaconda3\lib\pathlib.py in wrapped(pathobj, *args)
385 @functools.wraps(strfunc)
386 def wrapped(pathobj, *args):
--> 387 return strfunc(str(pathobj), *args)
388 return staticmethod(wrapped)
389
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'http:\api.erg.kcl.ac.uk\AirQuality\Annual\MonitoringObjective\GroupName=London\Year=2012\json'
made importers compatible with windows