Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Tuple or struct_time argument required #95

Open
ssaranathan opened this issue Jun 12, 2020 · 0 comments
Open

TypeError: Tuple or struct_time argument required #95

ssaranathan opened this issue Jun 12, 2020 · 0 comments

Comments

@ssaranathan
Copy link

ssaranathan commented Jun 12, 2020

Hi,
I am getting the following error when Django Pod comes up in my kubernetes cluster. Any idea what could be wrong ?
I am using django-minio-storage==0.3.7

Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 364, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.6/site-packages/django/core/management/init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 199, in handle
collected = self.collect()
File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 124, in collect
handler(path, prefixed_path, storage)
File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 354, in copy_file
if not self.delete_file(path, prefixed_path, source_storage):
File "/usr/local/lib/python3.6/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 263, in delete_file
target_last_modified = self.storage.get_modified_time(prefixed_path)
File "/usr/local/lib/python3.6/site-packages/django/core/files/storage.py", line 230, in get_modified_time
dt = self.modified_time(name)
File "/usr/local/lib/python3.6/site-packages/minio_storage/storage.py", line 297, in modified_time
return datetime.datetime.fromtimestamp(mktime(info.last_modified))
TypeError: Tuple or struct_time argument required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant