-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'testfixtures' #2804
Comments
It should be sufficient to install the |
Fix confirmed via |
I see that this My guess would be whatever build-test cycle that this goes through has extra unit-test-supporting packages installed that aren't general prerequisites for I'm still not a fan of the extra indirection introduced by the |
We install testfixtures here. So if the user does:
then that should install I think the root cause of the problem may be that people are running the notebooks without setting up the environment accordingly. If we make it obvious you need to run the above pip command to get all the extras installed, then it would be a solution. WDYT? |
Definitely (although If possible, let's show what specific libs are needed for a notebook, so people who can't or don't want to use |
Where would you show this information? How would you maintain it (ensure that it is correct)? Perhaps a single separate '[tutorials]' extra would be a better idea? |
Inside the notebook – either as a comment, or as an explicit
Not sure. |
Problem description
/docs/notebooks/howtos/run_doc2vec_imdb.ipynb
:from gensim.test.test_doc2vec import ConcatenatedDoc2Vec
/gensim/test/test_doc2vec.py
shows the offending import on line#21. I've tried replacing the line withfrom fixtures import log_capture
, but with no improvement.Steps/code/corpus to reproduce
run
run_doc2vec_imdb.ipynb
Versions
Linux-4.15.0-91-generic-x86_64-with-Ubuntu-18.04-bionic
Python 3.6.9 (default, Jul 3 2019, 15:36:16)
[GCC 5.4.0 20160609]
NumPy 1.18.3
SciPy 1.4.1
gensim 3.8.1
FAST_VERSION 1
The text was updated successfully, but these errors were encountered: