Skip to content

Instantly share code, notes, and snippets.

@guyjacks
Created July 24, 2018 04:34
Show Gist options
  • Save guyjacks/f8e8c7daa20bd3c4555fbaca19097d77 to your computer and use it in GitHub Desktop.
Save guyjacks/f8e8c7daa20bd3c4555fbaca19097d77 to your computer and use it in GitHub Desktop.
(api-8uRqWAds) bash-3.2$ ./manage.py importdatasets /Users/guyjacks/Desktop/newexports.zip
Generating import commands:
Traceback (most recent call last):
File "./manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/Users/guyjacks/projects/venv/api-8uRqWAds/lib/python3.6/site-packages/django/core/management/__init__.py", line 371, in execute_from_command_line
utility.execute()
File "/Users/guyjacks/projects/venv/api-8uRqWAds/lib/python3.6/site-packages/django/core/management/__init__.py", line 365, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/guyjacks/projects/venv/api-8uRqWAds/lib/python3.6/site-packages/django/core/management/base.py", line 288, in run_from_argv
self.execute(*args, **cmd_options)
File "/Users/guyjacks/projects/venv/api-8uRqWAds/lib/python3.6/site-packages/django/core/management/base.py", line 335, in execute
output = self.handle(*args, **options)
File "/Users/guyjacks/projects/mtx/api/api/datasets/management/commands/importdatasets.py", line 87, in handle
zip = zipfile.ZipFile(zip_path)
File "/Users/guyjacks/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 1100, in __init__
self._RealGetContents()
File "/Users/guyjacks/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 1164, in _RealGetContents
endrec = _EndRecData(fp)
File "/Users/guyjacks/.pyenv/versions/3.6.1/lib/python3.6/zipfile.py", line 241, in _EndRecData
fpin.seek(0, 2)
AttributeError: 'PosixPath' object has no attribute 'seek'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment