Skip to content

TypeError: Storage.download() missing 1 required positional argument: 'filename' #4

@jeremyredhead

Description

@jeremyredhead

When I run play.py without --local flag I get this mysterious error:

Stack trace
Exception in thread Thread-1 (download):
Traceback (most recent call last):
Exception in thread Thread-2 (download):
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
Play? (Y/n) Traceback (most recent call last):
Exception in thread Thread-3 (download):
Traceback (most recent call last):
    self.run()
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1009, in _bootstrap_inner
    self.run()
    self._target(*self._args, **self._kwargs)
    self.run()
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
  File "C:\Users\<user>\Documents\GitRepos\tinyworld-textmode\play.py", line 76, in download
  File "C:\Users\<user>\AppData\Local\Programs\Python\Python310\lib\threading.py", line 946, in run
    storage.child(file[6:]).download(file)
TypeError: Storage.download() missing 1 required positional argument: 'filename'
    self._target(*self._args, **self._kwargs)
    self._target(*self._args, **self._kwargs)
  File "C:\Users\<user>\Documents\GitRepos\tinyworld-textmode\play.py", line 76, in download
  File "C:\Users\<user>\Documents\GitRepos\tinyworld-textmode\play.py", line 76, in download
    storage.child(file[6:]).download(file)
    storage.child(file[6:]).download(file)
TypeError: Storage.download() missing 1 required positional argument: 'filename'
TypeError: Storage.download() missing 1 required positional argument: 'filename'

I mean, it sure looks like you properly passed in the filename argument to me, so IDK what's going on here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions