[Python-modules-team] Bug#815081: ipython3: Does not work if inside virtualenv
Joel Cross
joel+debbugs at kazbak.co.uk
Thu Feb 18 14:17:46 UTC 2016
Package: ipython3
Version: 2.4.1-1
Severity: normal
Tags: patch
Dear Maintainer,
The `ipython3` command is not runnable from within a virtualenv if ipython is
not installed locally.
To reproduce:
* Create an empty Python 3 virtualenv using the `virtualenv` command, ensuring
that --no-site-packages is passed if necessary.
* Run `ipython3`
The following traceback appears:
Traceback (most recent call last):
File "/usr/bin/ipython3", line 4, in <module>
from IPython import start_ipython
ImportError: No module named 'IPython'
Changing the first line of the script to #!/usr/bin/python3 fixes the problem.
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ipython3 depends on:
ii python3-decorator 4.0.6-1
ii python3-pkg-resources 18.8-1
ii python3-simplegeneric 0.8.1-1
pn python3:any <none>
ipython3 recommends no packages.
Versions of packages ipython3 suggests:
pn ipython3-notebook <none>
pn ipython3-qtconsole <none>
pn python3-zmq <none>
-- no debconf information
More information about the Python-modules-team
mailing list