Import error: cannot import name 'opentype'

前端 未结 2 1366
执念已碎
执念已碎 2020-12-19 06:44

I\'m trying to follow the instructions for utilizing Firebase in my py code running on Raspberry Pi 2 B+. While running on python 3, bad stuff happens.

I have include

相关标签:
2条回答
  • 2020-12-19 07:02

    You can try this also. It worked for me.

    pip install --upgrade pyasn1-modules
    
    0 讨论(0)
  • 2020-12-19 07:14

    I had a similar problem, and this fixed it for me:

    pip install --upgrade google-auth-oauthlib

    It looks like the google-auth-oauthlib dependency was out of date in my setup. The version in the requirements.txt (https://github.com/google/aiyprojects-raspbian/blob/voicekit/requirements.txt) was 0.1.0. I was using the voice kit, but the same could apply to your set up.

    For more details see this question: ImportError: cannot import name 'opentype' on new installation

    Also see this on the raspberry pi forum: https://www.raspberrypi.org/forums/viewtopic.php?f=114&t=198933&p=1241439#p1241439

    0 讨论(0)
提交回复
热议问题