Your message dated Thu, 21 Apr 2011 20:51:17 +0000
with message-id <[email protected]>
and subject line Bug#547003: fixed in ipython 0.10.2-1
has caused the Debian Bug report #547003,
regarding ipython: IPython should use current Python Environment
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
547003: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547003
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ipython
Version: 0.10-1
Severity: important
Tags: patch

Hi,

IPython should use the Python interpreter in the current environment and
not hardcode /usr/bin/python.

The rationale is that IPython as packaged right now is unusable inside a
customised environment like those created by virtualenv.

--- snip ---
bilen@kinakuta:~$ virtualenv ipython_bug
New python executable in ipython_bug/bin/python
Please make sure you remove any previous custom paths from your 
/home/user/.pydistutils.cfg file.
Installing setuptools............done.
user@host:~$ cd ipython_bug/
user@host:~/ipython_bug$ source bin/activate
(ipython_bug)user@host:~/ipython_bug$ ipython
...
In [1]: import sys
In [2]: sys.path
Out[2]: 
['',
 '/usr/bin',
 '/usr/lib/python2.5/site-packages/pip-0.4-py2.5.egg',
 '/usr/lib/python2.5',
 '/usr/lib/python2.5/plat-linux2',
 '/usr/lib/python2.5/lib-tk',
 '/usr/lib/python2.5/lib-dynload',
 '/usr/local/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages/PIL',
 '/usr/lib/python2.5/site-packages/gst-0.10',
 '/usr/lib/pymodules/python2.5',
 '/usr/lib/pymodules/python2.5/gtk-2.0',
 '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
 '/usr/lib/pymodules/python2.5/IPython/Extensions',
 u'/home/user/.ipython']
--- snip ---

I would expect IPython to behave like python:

--- snip ---
(ipython_bug)user@host:~/ipython_bug$ python
Python 2.5.4 (r254:67916, Feb 18 2009, 03:00:47) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', 
'/home/user/ipython_bug/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg',
 '/usr/lib/python2.5/site-packages/pip-0.4-py2.5.egg', 
'/home/user/ipython_bug/lib/python2.5', 
'/home/user/ipython_bug/lib/python2.5/plat-linux2', 
'/home/user/ipython_bug/lib/python2.5/lib-tk', 
'/home/user/ipython_bug/lib/python2.5/lib-dynload', '/usr/lib/python2.5', 
'/usr/lib64/python2.5', '/usr/lib/python2.5/plat-linux2', 
'/usr/lib/python2.5/lib-tk', '/usr/lib64/python2.5/lib-tk', 
'/home/user/ipython_bug/lib/python2.5/site-packages', 
'/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', 
'/usr/lib/python2.5/site-packages/PIL', 
'/usr/lib/python2.5/site-packages/gst-0.10', '/usr/lib/pymodules/python2.5', 
'/usr/lib/pymodules/python2.5/gtk-2.0', 
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']
>>> --
--- snip ---

IPython uses the global Python interpreter whereas python uses the one
from the currently configured one, which means that the current environment 
is missing in sys.path.

I did *not* specify '--no-site-packages' in the virtualenv call, because
i would have to install IPython in the newly created environment which
will solve the here described problem as well.

This can be easily fixed by replacing #!/usr/bin/python with
#!/usr/bin/env python . 

--- snip ---
(ipython_bug)user@host:~/ipython_bug$ ipython
...
In [1]: import sys
In [2]: sys.path
Out[2]: 
['',
 '/usr/bin',
 
'/home/user/ipython_bug/lib/python2.5/site-packages/setuptools-0.6c9-py2.5.egg',
 '/usr/lib/python2.5/site-packages/pip-0.4-py2.5.egg',
 '/home/user/ipython_bug/lib/python2.5',
 '/home/user/ipython_bug/lib/python2.5/plat-linux2',
 '/home/user/ipython_bug/lib/python2.5/lib-tk',
 '/home/user/ipython_bug/lib/python2.5/lib-dynload',
 '/usr/lib/python2.5',
 '/usr/lib64/python2.5',
 '/usr/lib/python2.5/plat-linux2',
 '/usr/lib/python2.5/lib-tk',
 '/usr/lib64/python2.5/lib-tk',
 '/home/user/ipython_bug/lib/python2.5/site-packages',
 '/usr/local/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages/PIL',
 '/usr/lib/python2.5/site-packages/gst-0.10',
 '/usr/lib/pymodules/python2.5',
 '/usr/lib/pymodules/python2.5/gtk-2.0',
 '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
 '/usr/lib/pymodules/python2.5/IPython/Extensions',
 u'/home/user/.ipython']
--- snip ---

The relevant patch is included.

with kind regards

    Wolodja Wentland

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ipython depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-pexpect                2.3-1      Python module for automating inter
ii  python-support                1.0.3      automated rebuilding support for P

Versions of packages ipython recommends:
ii  global                      5.7.1-1      Source code search and browse tool
ii  python [python-ctypes]      2.5.4-2      An interactive high-level object-o
ii  python-foolscap             0.4.2+dfsg-1 object-capability-based RPC system
ii  python-openssl              0.9-1        Python wrapper around the OpenSSL 
ii  python-twisted-core         8.2.0-3      Event-based framework for internet
ii  python-wxgtk2.8             2.8.7.1-1.1  wxWidgets Cross-platform C++ GUI t
pn  python-zope.interface       <none>       (no description available)

Versions of packages ipython suggests:
ii  libjs-jquery                  1.3.3-2    JavaScript library for dynamic web
ii  python-gobject                2.18.0-1   Python bindings for the GObject li
ii  python-gtk2                   2.14.1-3   Python bindings for the GTK+ widge
ii  python-matplotlib             0.98.5.3-2 Python based plotting system in a 
ii  python-numpy                  1:1.3.0-3  Numerical Python adds a fast array
ii  python-profiler               2.5.2-1    deterministic profiling of any Pyt
pn  python-qt3 | python-qt4       <none>     (no description available)

-- no debconf information
--- /usr/bin/ipython.old        2009-09-16 21:26:48.000000000 +0200
+++ /usr/bin/ipython    2009-09-16 21:27:09.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # -*- coding: utf-8 -*-
 """IPython -- An enhanced Interactive Python
 

--- End Message ---
--- Begin Message ---
Source: ipython
Source-Version: 0.10.2-1

We believe that the bug you reported is fixed in the latest version of
ipython, which is due to be installed in the Debian FTP archive:

ipython_0.10.2-1.diff.gz
  to main/i/ipython/ipython_0.10.2-1.diff.gz
ipython_0.10.2-1.dsc
  to main/i/ipython/ipython_0.10.2-1.dsc
ipython_0.10.2-1_all.deb
  to main/i/ipython/ipython_0.10.2-1_all.deb
ipython_0.10.2.orig.tar.gz
  to main/i/ipython/ipython_0.10.2.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Taylor <[email protected]> (supplier of updated ipython 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 21 Apr 2011 14:54:20 +0200
Source: ipython
Binary: ipython
Architecture: source all
Version: 0.10.2-1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Julian Taylor <[email protected]>
Description: 
 ipython    - enhanced interactive Python shell
Closes: 547003 622643
Changes: 
 ipython (0.10.2-1) unstable; urgency=low
 .
   * new upstream release. Closes: #622643
   * added Julian Taylor <[email protected]> to uploaders
   * removed Bernd Zeimetz <[email protected]> from uploaders
     thank you for your work
   * Use environment python interpreter. Closes: #547003
   * wrap-and-sort debian/
   * update standard to 3.9.2. no changes needed
   * set default colorscheme to LightBG. LP: #241535
   * converted copyright to DEP5
   * control: removed python:Breaks
Checksums-Sha1: 
 68e84e9a6b0859643bdbd8a7ef3bd18a668c5e2c 2169 ipython_0.10.2-1.dsc
 d45b97b0f458fd517cb2bfa9ebb3c671c46a21c0 5842688 ipython_0.10.2.orig.tar.gz
 e07a2da578bd1aeb396565c9f1f5a303129682f4 14319 ipython_0.10.2-1.diff.gz
 5f7b89fa86372c60a8634e9f80162fa3a2ddce56 5503278 ipython_0.10.2-1_all.deb
Checksums-Sha256: 
 baae1841c394370546930d663032177d3df333a82f00cb0a85f3b7988991a084 2169 
ipython_0.10.2-1.dsc
 9ed5fe693d92e6ba9ecc3e367ae5607b80d66db53b0a636fa39fe15ae3df8c47 5842688 
ipython_0.10.2.orig.tar.gz
 a20a49d55415e098852fcc032d6d664d04296c529283a54f62250be8292eb51a 14319 
ipython_0.10.2-1.diff.gz
 7d1b9457f687dd1ed6778ec8a3bc8281bfdcd83b6b00ce2b5dea805e6a84ad7a 5503278 
ipython_0.10.2-1_all.deb
Files: 
 57f454ef615acaa3d2c8bd86d9f442fb 2169 python optional ipython_0.10.2-1.dsc
 dda59bfc6e256ce786c4bc4aadb220a4 5842688 python optional 
ipython_0.10.2.orig.tar.gz
 63c2b1504b11c7700268d1f8e62a1fd2 14319 python optional ipython_0.10.2-1.diff.gz
 52fe6a8e368bcc91c79a1b682235f77d 5503278 python optional 
ipython_0.10.2-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJNsINsAAoJEOs2Fxpv+UNfYMAP/RyPnn/agPeittN1vLbkBrwj
QyLIvNWqE7hgTJgmrtu0VO5251v+rWHtBhAUmaXd5HoqqgIBPj3okPQ37z6K0ZKC
//mIhmArCls483ddFVmNbzs26OtzVucbc8u+o3Vwo3dtOSDoCmDx8bSj3i3oM7Tp
8UquKn7F4QLUo1bVSXM94D3N/J+kneTQc1oObtPh3Z2fmzElwW+I+LPo9q/OoLzh
5ElIm3KHJIiqv64YuvAWDCUo+GYs/FGz7rdZYagKHW2GMkimW2GS5siMvQfqhCeH
qUeQomm/2g/h0KZU2hbdxv7NghJfQLZlTNmyRZxngKY6aiox/7D5kWBmUUB+dAnU
1D/NIFZmJj84h/2Yv3XV5oBRMPO7L9prslPznR6AMCmy8zM687iFVe+/T2fQb14J
fBpkccL69mDlpBsMT5+m7YUkb4Ks4VhaxX9wEt+1HhJqAlDuZMgW/eRziWWj2e22
UWEJSWOyWIlnlcZq6rNfDn3e5dEcGy4VuTndChPRiDesFskHWHhsPrfmjcFSY6bh
jzHWapEK+EItjQBsCyZAAQFatC1X+9/emVM67frp1NtzFv8QgOWwZGklEvIlEt6W
UefAwUF0lEPx0Zv4xJCYvEAKA+IC1CHgE+y/p6NjqQC4gYZz+RUjgHKHLXnF2HYI
syxZ4DcqdQyTKyJbq+DU
=5PrJ
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to