ImportError:无法导入名称' format_exc'

时间:2017-08-03 17:21:33

标签: python python-3.x

我已经下载了一个项目。我收到以下错误。

Traceback (most recent call last):
  File "C:\Program Files\JetBrains\PyCharm Community Edition 2017.2\helpers\pydev\pydevd.py", line 11, in <module>
    import traceback
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\traceback.py", line 5, in <module>
    import linecache
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\linecache.py", line 11, in <module>
    import tokenize
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\tokenize.py", line 35, in <module>
    from token import *
  File "C:\Projects\xx\auth\token.py", line 3, in <module>
    from jose.jwt import get_unverified_claims
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\jose\jwt.py", line 11, in <module>
    from jose import jws
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\jose\jws.py", line 8, in <module>
    from jose import jwk
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\jose\jwk.py", line 13, in <module>
    from Crypto.PublicKey import RSA
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\Crypto\PublicKey\RSA.py", line 78, in <module>
    from Crypto import Random
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\Crypto\Random\__init__.py", line 29, in <module>
    from Crypto.Random import _UserFriendlyRNG
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\Crypto\Random\_UserFriendlyRNG.py", line 32, in <module>
    import threading
  File "C:\Users\xx\AppData\Local\Programs\Python\Python36-32\lib\threading.py", line 7, in <module>
    from traceback import format_exc as _format_exc 
ImportError: cannot import name 'format_exc'

0 个答案:

没有答案