Skip to content

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

@morrislaptop

Description

@morrislaptop

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
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions