ImportError: cannot import name 'opentype' on new installation

前端 未结 3 1064
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-11 23:43

I\'ve just created a Google Cloud compute engine, installed google-cloud package with both pip and pip3, and I\'m experiencing the following error when launching a script wi

3条回答
  •  抹茶落季
    2021-01-12 00:13

    FWIW - Had the same issue - none of the above worked. I eventually discovered that if I did it under sudo it did work.

    stracing the original - I found that I had a ~/.local directory which had a pyasn1 directory where it was trying to get the files from, but the opentype.py one did not appear there. When I deleted that whole directory - it started working.

    I assume it was some sort of cache that was partial, and out-of-date???

提交回复
热议问题