[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

multiple versions of python



Hello everyone,

I'm preparing two bug reports, and in trying to sort one of them out, it
seems that it may be linked to an incompatibility of a script with
python2.7 (see bug #659831). So, in test that possibility, what I would
like to do is install some other version of python (I see 2.5 and 2.6 in
the repositories), in order to see whether the package works with
another version.

My questions revolve around how time-consuming and worthwhile this
exercise will be:

1] Can I have multiple versions of python simultaneously?

2] Is there a way to specify that one package use a non-default version
of python? (I don't want to set an old version of python as default, if
that risks having other packages, depending on 2.7, break).

3] Is this a quick, straightforward install? Or is it going to be
something like an emacs install, with all kinds of time-consuming,
interminable local compilations and configurations?

Please respond to me directly, and on list. Thanks.

For background, the python bug is in package reportbug, WHEN BEING USED
IN TEXT MODE (See below for version information):

$ reportbug --ui=text libpam-mount

Traceback (most recent call last):
  File "/usr/bin/reportbug", line 38, in <module>
    from reportbug import utils
  File "/usr/lib/python2.7/dist-packages/reportbug/utils.py", line 70,
in <module>
    import debbugs
  File "/usr/lib/python2.7/dist-packages/reportbug/debbugs.py", line 40,
in <module>
    import debianbts
  File "/usr/lib/pymodules/python2.7/debianbts.py", line 33, in <module>
    import SOAPpy
  File "usr/lib/python2.7/dist-packages/SOAPpy__init__.py", line 5, in
<module>
    from Client      import *
  File "/usr/lib/python2.7/dist-packages/SOAPpy/Client.py", line 59, in
<module>
    from Parser      import parseSOAPRPC
  File "/usr/lib/python2.7/dist-packages/SOAPpy/Parser.py", line 10, in
<module>
    from wstools.XMLname import fromXMLname
  File "usr/lib/python2.7/dist-packages/wstools__init__.py", line 6,
in <module>
    import WSDLTools
  File "/usr/lib/python2.7/dist-packages/wstools/WSDLTools.py", line 15,
in <module>
    from Utility import Collection, CollectionNS, DOM, ElementProxy,
basejoin
  File "/usr/lib/python2.7/dist-packages/wstools/Utility.py", line 30,
in <module>
    from httplib import HTTPConnection, HTTPSConnection
ImportError: cannot import name HTTPSConnection



dpkg -l |grep reportbug
4715:ii  python-reportbug
6.6.1                                  all          Python modules for
interacting with bug tracking systems
4951:ii  reportbug
6.6.1                                  all          reports bugs in the
Debian distribution



dpkg -l |grep python2.7
3170:ii  libpython2.7:amd64
2.7.8-11                               amd64        Shared Python
runtime library (version 2.7)
3171:ii  libpython2.7-dbg:amd64
2.7.8-11                               amd64        Debug Build of the
Python Interpreter (version 2.7)
3172:ii  libpython2.7-dev:amd64
2.7.8-11                               amd64        Header files and a
static library for Python (v2.7)
3173:ii  libpython2.7-minimal:amd64
2.7.8-11                               amd64        Minimal subset of
the Python language (version 2.7)
3174:ii  libpython2.7-stdlib:amd64
2.7.8-11                               amd64        Interactive
high-level object-oriented language (standard library, version 2.7)
4795:ii  python2.7
2.7.8-11                               amd64        Interactive
high-level object-oriented language (version 2.7)
4796:ii  python2.7-dbg
2.7.8-11                               amd64        Debug Build of the
Python Interpreter (version 2.7)
4797:ii  python2.7-dev
2.7.8-11                               amd64        Header files and a
static library for Python (v2.7)
4798:ii  python2.7-doc
2.7.8-11                               all          Documentation for
the high-level object-oriented language Python (v2.7)
4799:ii  python2.7-examples
2.7.8-11                               all          Examples for the
Python language (v2.7)
4800:ii  python2.7-minimal
2.7.8-11                               amd64        Minimal subset of
the Python language (version 2.7)





-- 
hkp://keys.gnupg.net
CA45 09B5 5351 7C11 A9D1  7286 0036 9E45 1595 8BC0


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: