Skip to content Skip to sidebar Skip to footer

"name Error: Name 'get_ipython' Is Not Defined" While Preparing A Debugging Session Via "import Ipdb"

I'm trying to install and use ipdb (IPython-enabled pdb) on Python 3.3.5 32 bit on Win10 using PIP 8.1.2. I've installed via PIP (had to install it seprately) in windows cmd with n

Solution 1:

As the issue seemed to be related to IPython, I've checked that the version installed while resolving ipdb dependencies was: "ipython-5.1.0".

The WA solution for the issue occured to be a fallback to version 4.2.1 of IPython:

pip install "ipython<5"
    (...)
    Successfully uninstalled ipython-5.1.0
    Successfully installed ipython-4.2.1

After that ipdb halted on a breakpoint as expected:

$ python C:\temp\ipdb_test.py
WARNING: Readline services not available or not loaded.
WARNING: Proper color support under MS Windows requires the pyreadline library.
You can find it at:
http://ipython.org/pyreadline.html

Defaulting color scheme to 'NoColor'
> c:\temp\ipdb_test.py(3)<module>()
      1import ipdb
      2 ipdb.set_trace()
----> 3 print('test')

ipdb>

It may be a valid case to contact the IPython project team on the issue, meanwhile I find an initial task of running a debug session completed.

Post a Comment for ""name Error: Name 'get_ipython' Is Not Defined" While Preparing A Debugging Session Via "import Ipdb""