question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'opentype'

See original GitHub issue

Since the last update of 4 hours ago my CI broke because a module is using your pyasn1 module. I received the following in my stack trace:

  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'

Is this anything related to the last changes made in this module and a way this is fixable on my side or with a new release of this module?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

84reactions
etingofcommented, Nov 23, 2017

May be just pip install --upgrade pyasn1-modules ?

Or send pip list here to confirm my suspicion. 😉

8reactions
DanielMartinuscommented, Nov 23, 2017

Upgrading pyasn1-modules did the trick! Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Import error: cannot import name 'opentype' - Stack Overflow
I had a similar problem, and this fixed it for me: pip install --upgrade google-auth-oauthlib. It looks like the google-auth-oauthlib ...
Read more >
ImportError: cannot import name 'opentype' - Huang Shiyang
ImportError : cannot import name 'opentype' ... line 1, in <module> from luminoth.cli import cli # noqa File "d:\anaconda3\lib\site-packages\luminoth\cli.py" ...
Read more >
ImportError: cannot import name 'opentype' on new installation
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 ......
Read more >
ImportError: cannot import name 'pairwise_distances_chunked'
I suspect you need to restart your Python runtime before running the import statement. Use the Runtime -> Restart runtime menu. enter image...
Read more >
cannot import name opentype 解决方法_包子味月饼66的博客
Tensorboad 报错ImportError: cannot import name opentype 解决方法 ... 这个时候,terminal 提示错误: ERROR: tensorboard 2.1.0 has requirement grpcio ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found