Skip to content Skip to sidebar Skip to footer

Import Error: Cannot Import Name 'opentype'

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 included the pyrebase

Solution 1:

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

Solution 2:

You can try this also. It worked for me.

pip install --upgrade pyasn1-modules

Post a Comment for "Import Error: Cannot Import Name 'opentype'"