Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2017 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/fe005788abaeade4d4da2a37be2d9965 to your computer and use it in GitHub Desktop.
Save anonymous/fe005788abaeade4d4da2a37be2d9965 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "C:\Python27\ArcGIS10.3\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript
exec codeObject in __main__.__dict__
File "C:\Users\nrose\Desktop\TestScript\toolbox_stormscript.py", line 86, in <module>
decompress('location', workSpace, oldCSV, newCSV)
File "C:\Users\nrose\Desktop\TestScript\toolbox_stormscript.py", line 31, in decompress
with gzip.open(oldFilePath, 'rb') as file_in, open(newFilePath, 'wb') as file_out:
File "C:\Python27\ArcGIS10.3\lib\gzip.py", line 34, in open
return GzipFile(filename, mode, compresslevel)
File "C:\Python27\ArcGIS10.3\lib\gzip.py", line 94, in __init__
fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 22] invalid mode ('rb') or filename: u'C:\\Users\\nrose\\Desktop\\TestScript\\?C=N;O=D'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment