Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Collectfast==0.6.0 + boto3==1.5.8 + Heroku = :( #121

Closed
webyneter opened this issue Jan 5, 2018 · 4 comments · Fixed by #125
Closed

Collectfast==0.6.0 + boto3==1.5.8 + Heroku = :( #121

webyneter opened this issue Jan 5, 2018 · 4 comments · Fixed by #125
Labels

Comments

@webyneter
Copy link

webyneter commented Jan 5, 2018

What:
Collectfast==0.6.0 and boto3==1.5.8 don't play well when deploying to Heroku, resulting in

Traceback (most recent call last):
remote:          File "manage.py", line 30, in <module>
remote:            execute_from_command_line(sys.argv)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
remote:            utility.execute()
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
remote:            self.fetch_command(subcommand).run_from_argv(self.argv)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 206, in fetch_command
remote:            klass = load_command_class(app_name, subcommand)
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/django/core/management/__init__.py", line 40, in load_command_class
remote:            module = import_module('%s.management.commands.%s' % (app_name, name))
remote:          File "/app/.heroku/python/lib/python3.6/importlib/__init__.py", line 126, in import_module
remote:            return _bootstrap._gcd_import(name[level:], package, level)
remote:          File "<frozen importlib._bootstrap>", line 994, in _gcd_import
remote:          File "<frozen importlib._bootstrap>", line 971, in _find_and_load
remote:          File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
remote:          File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
remote:          File "<frozen importlib._bootstrap_external>", line 678, in exec_module
remote:          File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/collectfast/management/commands/collectstatic.py", line 8, in <module>
remote:            from collectfast.etag import should_copy_file
remote:          File "/app/.heroku/python/lib/python3.6/site-packages/collectfast/etag.py", line 10, in <module>
remote:            from storages.utils import safe_join
remote:        ImportError: cannot import name 'safe_join'
remote: 
remote:  !     Error while running '$ python manage.py collectstatic --noinput'.
remote:        See traceback above for details.

I'm also using:

django-storages==1.5.0  # pyup: ==1.5.0

Solution:
Downgrade

Collectfast==0.5.2 # pyup: ==0.5.2
@antonagestam
Copy link
Owner

That looks like it's related to django-storages and not to boto3. Does upgrading django-storages help?

@webyneter
Copy link
Author

@antonagestam sorry for the late response, I will try upgrading django-storages to 1.6; thank you for the tip :)

@antonagestam
Copy link
Owner

@webyneter No worries. Thanks for reporting the bug!

@rahul6612
Copy link

i am getting the same error please help me my django version is 1.8.4 and django-storages==1.6.5

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

Successfully merging a pull request may close this issue.

3 participants