You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 15, 2026. It is now read-only.
I'm running Python 2.7 on Windows 7 x64. I installed ipython and jupyter with pip. When doing "ipython notebook" I got the error "ImportError: No module named ipython_genutils". I was able to fix this by downloading this repo and installing it "python setup.py install". Is this normal?
I had the same issue, python 2.7 on linux. Specifically adding ipython_genutils indeed fixed the problem. It seems it does not get installed when installing jupyter or ipython.
Can anyone provide a complete example that reproduces the problem (including pip, setuptools, Python and OS version)? ipython_genutils is listed as a strict dependency, and does get installed when you install these things with pip, so I'm wondering what it is that's allowing dependencies to be left out.
after install ipython with no complains, ipython --versionoutput:
Traceback (most recent call last):
File "C:\Python27-64\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python27-64\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27-64\Scripts\ipython.exe__main.py", line 5, in
File "C:\Python27-64\lib\site-packages\IPython__init__.py", line 48, in
from .core.application import Application
File "C:\Python27-64\lib\site-packages\IPython\core\application.py", line 22,
in
from traitlets.config.application import Application, catch_config_error
File "C:\Python27-64\lib\site-packages\traitlets__init__.py", line 1, in
from .traitlets import *
File "C:\Python27-64\lib\site-packages\traitlets\traitlets.py", line 55, in
from ipython_genutils import py3compat
ImportError: No module named ipython_genutils
Activity
takluyver commentedon Sep 2, 2015
If you did
pip install jupyter, that should have pulled inipython_genutilsas a dependency.cristianmtr commentedon Sep 2, 2015
I did that, and I was still getting the error
nikolas commentedon Sep 23, 2015
I also did that and still got the error. I had to explicitly list
ipython_genutils==0.1.0inrequirements.txt.minrk commentedon Sep 23, 2015
@nikolas can you share the output of the install command?
minrk commentedon Sep 23, 2015
And
pip list?peter-d commentedon Dec 2, 2015
I had the same issue, python 2.7 on linux. Specifically adding
ipython_genutilsindeed fixed the problem. It seems it does not get installed when installing jupyter or ipython.minrk commentedon Dec 2, 2015
Can anyone provide a complete example that reproduces the problem (including pip, setuptools, Python and OS version)?
ipython_genutilsis listed as a strict dependency, and does get installed when you install these things with pip, so I'm wondering what it is that's allowing dependencies to be left out.beyonddoor commentedon Jun 20, 2016
after install ipython with no complains,
ipython --versionoutput:Traceback (most recent call last):
File "C:\Python27-64\lib\runpy.py", line 162, in run_module_as_main
"main", fname, loader, pkg_name)
File "C:\Python27-64\lib\runpy.py", line 72, in run_code
exec code in run_globals
File "C:\Python27-64\Scripts\ipython.exe__main.py", line 5, in
File "C:\Python27-64\lib\site-packages\IPython__init__.py", line 48, in
from .core.application import Application
File "C:\Python27-64\lib\site-packages\IPython\core\application.py", line 22,
in
from traitlets.config.application import Application, catch_config_error
File "C:\Python27-64\lib\site-packages\traitlets__init__.py", line 1, in
from .traitlets import *
File "C:\Python27-64\lib\site-packages\traitlets\traitlets.py", line 55, in
from ipython_genutils import py3compat
ImportError: No module named ipython_genutils
the output of
pip listis:backports.shutil-get-terminal-size (1.0.0)
cycler (0.10.0)
decorator (4.0.10)
ipython (4.2.0)
matplotlib (1.5.1)
numpy (1.11.0)
path.py (7.7.1)
pickleshare (0.7.2)
pip (1.5.6)
pyparsing (2.1.5)
python-dateutil (2.5.3)
pytz (2016.4)
setuptools (23.0.0)
simplegeneric (0.8.1)
six (1.10.0)
traitlets (4.2.1)
virtualenv (15.0.2)
python --versionPython 2.7.9
OS: win7 sp1
any helps?
takluyver commentedon Jun 20, 2016
I'm still not sure how people get this.
pip install ipython_genutilsshould fix it.That's quite old, it's recommended that you upgrade by running:
beyonddoor commentedon Jun 27, 2016
Following your instructions above, it complains "ImportError: No module named pathlib2", after
pip install pathlib2, it now works, thanks. @takluyvervidelec commentedon Oct 22, 2017
Some full tracebacks with detailed architecture/system available at https://trac.sagemath.org/ticket/24088
yasirroni commentedon Mar 18, 2023
I'm not really sure, but for those that is interested, in my case, the bug might be due to:
It ended up this import error due tu incompatibilities.