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

Problem: TypeError: 'module' object is not callable when using --cf-invalidate #887

Closed
morrislaptop opened this issue Jun 28, 2017 · 5 comments
Assignees

Comments

@morrislaptop
Copy link

morrislaptop commented Jun 28, 2017

s3cmd sync build/ s3://xxxxx --cf-invalidate --cf-invalidate-default-index
WARNING: Module python-magic is not available. Guessing MIME types based on file extensions.
upload: 'build/touch' -> 's3://xxxxx/touch' [1 of 1]
3 of 3 100% in 0s 109.12 B/s done
Done. Uploaded 3 bytes in 1.0 seconds, 3.00 B/s.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please try reproducing the error using
the latest s3cmd code from the git master
branch found at:
https://github.com/s3tools/s3cmd
and have a look at the known issues list:
https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
If the error persists, please report the
following lines (removing any private
info as necessary) to:
s3tools-bugs@lists.sourceforge.net

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /usr/local/Cellar/s3cmd/2.0.0/libexec/bin/s3cmd sync build/ s3://xxxxxx --cf-invalidate --cf-invalidate-default-index
Problem: TypeError: 'module' object is not callable
S3cmd: 2.0.0
python: 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
environment LANG=en_GB.UTF-8

Traceback (most recent call last):
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/bin/s3cmd", line 2996, in
rc = main()
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/bin/s3cmd", line 2915, in main
rc = cmd_func(args)
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/bin/s3cmd", line 1837, in cmd_sync
return cmd_sync_local2remote(args)
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/bin/s3cmd", line 1817, in cmd_sync_local2remote
_invalidate_on_cf(destination_base_uri)
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/bin/s3cmd", line 1786, in _invalidate_on_cf
results = cf.InvalidateObjects(destination_base_uri, uploaded_objects_list, default_index_file, cfg.invalidate_default_index_on_cf, cfg.invalidate_default_index_root_on_cf)
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/lib/python2.7/site-packages/S3/CloudFront.py", line 468, in InvalidateObjects
debug("InvalidateObjects(): request_body: %s" % invalbatch)
File "/usr/local/Cellar/s3cmd/2.0.0/libexec/lib/python2.7/site-packages/S3/CloudFront.py", line 289, in str
s3 = S3(Config())
TypeError: 'module' object is not callable

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
An unexpected error has occurred.
Please try reproducing the error using
the latest s3cmd code from the git master
branch found at:
https://github.com/s3tools/s3cmd
and have a look at the known issues list:
https://github.com/s3tools/s3cmd/wiki/Common-known-issues-and-their-solutions
If the error persists, please report the
above lines (removing any private
info as necessary) to:
s3tools-bugs@lists.sourceforge.net
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@fviard fviard self-assigned this Jun 28, 2017
@fviard fviard closed this as completed in ceabf56 Jun 28, 2017
@fviard
Copy link
Contributor

fviard commented Jun 28, 2017

Thank you for the report, Fixed in master!

@morrislaptop
Copy link
Author

@fviard when are you publishing a new release? :)

@fviard
Copy link
Contributor

fviard commented Jun 29, 2017

In a few days, just the time for any other regression to show up.

@morrislaptop
Copy link
Author

@fviard bump?

@cdown
Copy link

cdown commented Aug 23, 2017

Any updates here? This makes --cf-invalidate practically unusable.

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

No branches or pull requests

3 participants