python-psyco is always installed in python2.6 dir

Bug #789657 reported by Maarten Bosmans
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
psyco (Ubuntu)
In Progress
Undecided
Unassigned

Bug Description

Even when I have only python 2.7 installed, psyco still installs in /usr/lib/python2.6/dist-packages/psyco
This causes the 'import psyco' executed from the default (2.7) python to throw an error.

Revision history for this message
Matthias Klose (doko) wrote :

> Even when I have only python 2.7 installed, psyco still installs in /usr/lib/python2.6/dist-packages/psyco

expected

> This causes the 'import psyco' executed from the default (2.7) python to throw an error.

not expected. you should include more information

Changed in psyco (Ubuntu):
status: New → Incomplete
Revision history for this message
Maarten Bosmans (mkbosmans) wrote :

> expected

Do you mean that python2.7 is supposed to pickup that library in usr/lib/python2.6, or that the files installed in /usr/share/pyshared/psyco/ suffice for all versions?

> not expected. you should include more information

$ ipython
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
Type "copyright", "credits" or "license" for more information.

In [1]: import psyco
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)

<ipython console> in <module>()

ImportError: No module named psyco

and for the currently installed versions (on natty)
$ aptitude search '~i.*python[23]|-psyco\b' -F "%p %V" --disable-columns
libpython2.6 2.6.6-6ubuntu7
libpython2.7 2.7.1-5ubuntu2
python-psyco 1.6-2ubuntu1
python-psyco-doc 1.6-2
python2.6 2.6.6-6ubuntu7
python2.6-minimal 2.6.6-6ubuntu7
python2.6-psyco <geen>
python2.7 2.7.1-5ubuntu2
python2.7-dev 2.7.1-5ubuntu2
python2.7-minimal 2.7.1-5ubuntu2
python3 3.2-1ubuntu1
python3-minimal 3.2-1ubuntu1
python3.2 3.2-1ubuntu1
python3.2-minimal 3.2-1ubuntu1

What info do you need exactly?

Revision history for this message
Julian Taylor (jtaylor) wrote :

psyco does not support python.27 and probably never will
http://psyco.sourceforge.net/

psyco (1.6-2ubuntu1) natty; urgency=low

  * Block Python 2.7 -- upstream does not work with it and there's no
    prospect for that in the near future.
 -- Barry Warsaw <email address hidden> Fri, 10 Dec 2010 12:22:01 -0500

Revision history for this message
Maarten Bosmans (mkbosmans) wrote :

OK, that is clear thank you.

However, I don't see that fact reflected in the dependencies of python-psyco. It just has python >= 2.2. Am I missing something?

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for psyco (Ubuntu) because there has been no activity for 60 days.]

Changed in psyco (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Maarten Bosmans (mkbosmans) wrote :

Can the package dependencies of python-psyco be updated to reflect the fact that 2.7 is not supported?

Changed in psyco (Ubuntu):
status: Expired → In Progress
Revision history for this message
Stefano Rivera (stefanor) wrote :

> Can the package dependencies of python-psyco be updated to reflect the fact that 2.7 is not supported?

We could make it depend on python2.6 instead of python, that's about it. It needs to still be installable, because it's still usable from Python 2.6, which we still have (just not as default).

This can of course be removed, too. We'll be dropping 2.6 before we open the p- archive.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Changing deps would not help me as I have both python 2.6.x and 2.7.x installed. For running "bitbake" without complaints about missing Psyco I changed the soft links in /usr/bin/ directory to python 2.6.

Revision history for this message
Stefano Rivera (stefanor) wrote :

You can safely ignore those warnings. bitbake doesn't depend on or recommend psyco.

Revision history for this message
Marius B. Kotsbak (mariusko) wrote :

Bitbake does not require it, but it is recommended for better performance (if not 2.7.x has better performance without...). From its manpage:

       -d, --disable-psyco
              disable using the psyco just-in-time compiler (not recommended)

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 789657] Re: python-psyco is always installed in python2.6 dir

Last I checked, psyco didn't support Python 2.7 yet. If that's changed we can see about updating it.

Revision history for this message
Colin Watson (cjwatson) wrote :

2012-04-23 08:31:16 INFO Creating lockfile: /var/lock/launchpad-lp-remove-package.lock
2012-04-23 08:31:25 INFO Removing candidates:
2012-04-23 08:31:25 INFO psyco 1.6-2ubuntu1 in precise
2012-04-23 08:31:25 INFO python-psyco 1.6-2ubuntu1 in precise i386
2012-04-23 08:31:25 INFO Removed-by: Colin Watson
2012-04-23 08:31:25 INFO Comment: (From Debian) RoQA; does not work with supported Python versions; Debian bug #639347
2012-04-23 08:31:26 INFO 2 packages successfully removed.
Confirm this transaction? [yes, no] yes
2012-04-23 08:34:19 INFO Transaction committed.
2012-04-23 08:34:19 INFO The archive will be updated in the next publishing cycle.

Not closing this bug since I guess people might want to reintroduce it at some point - but since we don't have python2.6 in precise there's no point in keeping this.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.