pytrace
pytrace copied to clipboard
Error
$ pytrace main.py
Traceback (most recent call last):
File "/usr/lib/python3.5/site-packages/requests/packages/__init__.py", line 27, in <module>
from . import urllib3
ImportError: cannot import name 'urllib3'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen importlib._bootstrap>", line 890, in _find_spec
AttributeError: '_SixMetaPathImporter' object has no attribute 'find_spec'
During handling of the above exception, another exception occurred:
AttributeError: 'HTTPStatus' object has no attribute '_name_'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/pytrace", line 11, in <module>
load_entry_point('pytrace==0.2.4', 'console_scripts', 'pytrace')()
File "/usr/lib/python3.5/site-packages/pytrace/__main__.py", line 17, in main
runpy.run_path(sys.argv[0], run_name='__main__')
File "/usr/lib/python3.5/runpy.py", line 254, in run_path
pkg_name=pkg_name, script_name=fname)
File "/usr/lib/python3.5/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "main.py", line 1, in <module>
from repo_freqs import *
File "/home/xged/repos/repo-freqs/repo_freqs.py", line 11, in <module>
import requests
File "/usr/lib/python3.5/site-packages/requests/__init__.py", line 52, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/usr/lib/python3.5/site-packages/requests/packages/__init__.py", line 29, in <module>
import urllib3
File "/usr/lib/python3.5/site-packages/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/usr/lib/python3.5/site-packages/urllib3/connectionpool.py", line 11, in <module>
from .exceptions import (
File "/usr/lib/python3.5/site-packages/urllib3/exceptions.py", line 2, in <module>
from .packages.six.moves.http_client import (
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 954, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 892, in _find_spec
File "<frozen importlib._bootstrap>", line 876, in _find_spec_legacy
File "<frozen importlib._bootstrap>", line 452, in spec_from_loader
File "/usr/lib/python3.5/site-packages/urllib3/packages/six.py", line 216, in is_package
return hasattr(self.__get_module(fullname), "__path__")
File "/usr/lib/python3.5/site-packages/urllib3/packages/six.py", line 118, in __getattr__
_module = self._resolve()
File "/usr/lib/python3.5/site-packages/urllib3/packages/six.py", line 115, in _resolve
return _import_module(self.mod)
File "/usr/lib/python3.5/site-packages/urllib3/packages/six.py", line 82, in _import_module
__import__(name)
File "/usr/lib/python3.5/http/__init__.py", line 5, in <module>
class HTTPStatus(IntEnum):
File "/usr/lib/python3.5/enum.py", line 160, in __new__
enum_member = __new__(enum_class, *args)
SystemError: PyEval_EvalFrameEx returned a result with an error set