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.

cannot import name 'open' from 'smart_open'

See original GitHub issue

Gensim not working properly after updating to the latest version. Getting following error

ImportError: cannot import name 'open' from 'smart_open' (/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/smart_open/__init__.py)

I’m using Python 3.7 and Gensim 3.8.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mpenkovcommented, Aug 8, 2019

@piskvorky I will update the pin in the gensim repo. It’s currently >= 1.7.0, should be >= 1.8.1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot import name 'open' from 'smart_open' - Stack Overflow
In C:\ProgramData\Anaconda3\lib\site-packages\gensim\utils.py, I simply changed from smart_open import open to from smart_open import smart_open ...
Read more >
cannot import name 'open' from 'smart_open' · Issue #489
I am receiving the error. File "C:\ProgramData\Anaconda2\lib\site-packages\gensim\utils.py", line 45, in from smart_open import open.
Read more >
smart-open - PyPI
smart_open is a Python 3 library for efficient streaming of very large files from/to storages such as S3, GCS, Azure Blob Storage, HDFS,...
Read more >
smart_open deprecation - Google Groups
File "/usr/local/lib/python3.7/dist-packages/gensim/utils.py", line 45, in <module>. from smart_open import open. ImportError: cannot import name 'open' ...
Read more >
gensim ImportError: cannot import name 'open' - CSDN博客
问题描述: 执行 import gensim 时报错: from smart_open import open ImportError: cannot import name 'open'. 1; 2 ...
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