【发布时间】:2017-12-05 23:34:24
【问题描述】:
我面临的错误是:
File "/usr/local/lib/python3.5/dist-packages/oauth2client/crypt.py", line 23, in <module>
from oauth2client import _pure_python_crypt
File "/usr/local/lib/python3.5/dist-packages/oauth2client/_pure_python_crypt.py", line 24, in <module>
from pyasn1_modules.rfc2459 import Certificate
File "/usr/local/lib/python3.5/dist-packages/pyasn1_modules/rfc2459.py", line 20, in <module>
from pyasn1.type import opentype
ImportError: cannot import name 'opentype'
我认为已按照this stackoverflow answer 中的说明解决:
sudo apt-get --reinstall install python-pyasn1 python-pyasn1-modules
pip3 install --upgrade google-auth-oauthlib
当我通过 supervisorctl 运行我的程序时,sudo supervisorctl restart at_ussd 我得到了上面的错误。
但是当我通过 shell sudo python3 at_ussd.py 运行我的程序时,程序运行顺利。
请帮我解决这个问题,以便我可以继续使用主管进行管理!
【问题讨论】:
标签: python-3.5 supervisord pyasn1