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

NameError: name 'requests' is not defined #35

Open
brady2037 opened this issue Nov 14, 2017 · 0 comments
Open

NameError: name 'requests' is not defined #35

brady2037 opened this issue Nov 14, 2017 · 0 comments

Comments

@brady2037
Copy link

brady2037 commented Nov 14, 2017

ubuntu 16.04 x64
[13:25:49] [INFO] executing: python3 -m pip install -U distro
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3/dist-packages/pip/main.py", line 19, in
sys.exit(pip.main())
File "/usr/lib/python3/dist-packages/pip/init.py", line 215, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python3.5/locale.py", line 594, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
[13:25:50] [ERROR] Could not import python package distro, abort installation
Traceback (most recent call last):
File "deploy.py", line 302, in
import distro
ImportError: No module named 'distro'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "deploy.py", line 154, in onekey_report
r = requests.post(REPORT_URLS[report_type], data=data)
NameError: name 'requests' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "deploy.py", line 305, in
onekey_report(report_type=REPORT_ERROR, traceback_str=traceback.format_exc())
File "deploy.py", line 159, in onekey_report
r = requests.post(
NameError: name 'requests' is not defined

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