cannot import name 'open' from 'smart_open'
See original GitHub issueGensim 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@piskvorky I will update the pin in the gensim repo. It’s currently >= 1.7.0, should be >= 1.8.1.
Done here: https://github.com/RaRe-Technologies/gensim/commit/f2ad5c2d7465e3ee1ee803c8f45faa81ac3f4472#diff-2eeaed663bd0d25b7e608891384b7298