我面临的错误是:
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'
我认为按照这个stackoverflow答案中的说明解决了这个问题:
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
的程序时,程序运行顺利。
请帮我解决这个问题,以便我可以继续使用主管进行管理!