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

global name json not defined #890

Closed
yadavshubhanshu opened this issue Jun 29, 2017 · 1 comment
Closed

global name json not defined #890

yadavshubhanshu opened this issue Jun 29, 2017 · 1 comment

Comments

@yadavshubhanshu
Copy link

I am getting the following error with s3cmd, pulling from the master branch. It was working fine as of 2 days ago.

If instead of pulling from master, I use version 1.6, it works fine.

DEBUG: s3cmd version 2.0.0+
DEBUG: ConfigParser: Reading file '/home/ubuntu/.s3cfg'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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:
[email protected]

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

DEBUG: Unicodising './s3cmd' using UTF-8
DEBUG: Unicodising '--debug' using UTF-8
DEBUG: Unicodising 'get' using UTF-8
DEBUG: Unicodising '--recursive' using UTF-8
DEBUG: Unicodising 's3://a/b/' using UTF-8
DEBUG: Unicodising '/c/d/' using UTF-8
Invoked as: ./s3cmd --debug get --recursive s3://a/b/ /c/d/
Problem: NameError: global name 'json' is not defined
S3cmd: 2.0.0+
python: 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4]
environment LANG=en_US.UTF-8

Traceback (most recent call last):
File "./s3cmd", line 3003, in
rc = main()
File "./s3cmd", line 2726, in main
cfg = Config(options.config, options.access_key, options.secret_key, options.access_token)
File "/root/s3cmd/S3/Config.py", line 179, in init
self.role_config()
File "/root/s3cmd/S3/Config.py", line 200, in role_config
creds=json.load(resp)
NameError: global name 'json' is not defined

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
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:
[email protected]
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

@fviard fviard closed this as completed in 75845ab Jun 29, 2017
@fviard
Copy link
Contributor

fviard commented Jun 29, 2017

Fixed in MASTER, thank you for the report!

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

2 participants