Error during installing python-psyco

Bug #499314 reported by Dean Loros
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
psyco (Ubuntu)
Fix Released
High
Scott Kitterman
Jaunty
Won't Fix
High
Scott Kitterman
Karmic
Won't Fix
High
Scott Kitterman
Lucid
Fix Released
High
Scott Kitterman

Bug Description

TEST CASE (at the top since it's a long bug):

Show that the package is available for both Python versions after installing the updated package:

$ python
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psyco
>>>
$ python2.5
Python 2.5.4 (r254:67916, Sep 20 2009, 10:05:43)
[GCC 4.4.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psyco
>>>

dean@linux:~/Desktop$ sudo pycentral pkginstall python-psyco
[sudo] password for dean:
Could not find platform independent libraries <prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/usr/bin/py_compilefiles", line 3, in <module>
    import os
ImportError: No module named os
pycentral: pycentral pkginstall: error byte-compiling files (8)
pycentral pkginstall: error byte-compiling files (8)

dean@linux:~/Desktop$ lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

Apt-term log:

Log started: 2009-12-21 18:09:02
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 245335 files and directories currently installed.)

Preparing to replace python-minimal 2.6.4-0ubuntu2 (using .../python-minimal_2.6.4-0ubuntu2_all.deb) ...

Unpacking replacement python-minimal ...

Processing triggers for man-db ...

Setting up python-minimal (2.6.4-0ubuntu2) ...

(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 245335 files and directories currently installed.)

Preparing to replace python-central 0.6.11ubuntu10 (using .../python-central_0.6.11ubuntu10_all.deb) ...

Unpacking replacement python-central ...

Preparing to replace libpython2.6 2.6.4-1ubuntu2 (using .../libpython2.6_2.6.4-1ubuntu2_i386.deb) ...

Unpacking replacement libpython2.6 ...

Selecting previously deselected package python-at-spi.

Unpacking python-at-spi (from .../python-at-spi_0.6.1-1ubuntu3_i386.deb) ...

Preparing to replace python-dev 2.6.4-0ubuntu2 (using .../python-dev_2.6.4-0ubuntu2_all.deb) ...

Unpacking replacement python-dev ...

Processing triggers for man-db ...

Setting up python-central (0.6.11ubuntu10) ...

Setting up libpython2.6 (2.6.4-1ubuntu2) ...

Setting up python-at-spi (0.6.1-1ubuntu3) ...

Setting up python-dev (2.6.4-0ubuntu2) ...

Setting up python-pyatspi (1.29.3-0ubuntu3) ...

Could not find platform independent libraries <prefix>

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

'import site' failed; use -v for traceback

Traceback (most recent call last):

  File "/usr/bin/py_compilefiles", line 3, in <module>

    import os

ImportError: No module named os

Traceback (most recent call last):

  File "/usr/bin/pycentral", line 2195, in <module>

    main()

  File "/usr/bin/pycentral", line 2189, in main

    rv = action.run(global_options)

  File "/usr/bin/pycentral", line 1501, in run

    self.options.exclude, byte_compile_default=True)

  File "/usr/bin/pycentral", line 1085, in install

    rt.byte_compile(linked_files, bc_option, exclude_regex, ignore_errors)

  File "/usr/bin/pycentral", line 237, in byte_compile

    fd.write(fn + '\n')

IOError: [Errno 32] Broken pipe

dpkg: error processing python-pyatspi (--configure):

 subprocess installed post-installation script returned error exit status 1

dpkg: dependency problems prevent configuration of gnome-orca:

 gnome-orca depends on python-pyatspi (>= 1.22.0) | python-pyatspi2; however:

  Package python-pyatspi is not configured yet.

  Package python-pyatspi2 is not installed.

dpkg: error processing gnome-orca (--configure):

 dependency problems - leaving unconfigured

Setting up python-configglue (0.2dev-0ubuntu2) ...

Could not find platform independent libraries <prefix>

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

'import site' failed; use -v for traceback

Traceback (most recent call last):

  File "/usr/bin/py_compilefiles", line 3, in <module>

    import os

ImportError: No module named os

pycentral: pycentral pkginstall: error byte-compiling files (15)

pycentral pkginstall: error byte-compiling files (15)

dpkg: error processing python-configglue (--configure):

 subprocess installed post-installation script returned error exit status 1

Setting up python-psyco (1.6-1ubuntu1) ...

Could not find platform independent libraries <prefix>

Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]

'import site' failed; use -v for traceback

Traceback (most recent call last):

  File "/usr/bin/py_compilefiles", line 3, in <module>

    import os

ImportError: No module named os

pycentral: pycentral pkginstall: error byte-compiling files (8)

pycentral pkginstall: error byte-compiling files (8)

dpkg: error processing python-psyco (--configure):

 subprocess installed post-installation script returned error exit status 1

Processing triggers for libc-bin ...

ldconfig deferred processing now taking place

Processing triggers for python-support ...

Errors were encountered while processing:

 python-pyatspi

 gnome-orca

 python-configglue

 python-psyco

Log ended: 2009-12-21 18:09:10

ProblemType: Bug
Architecture: i386
Date: Mon Dec 21 18:19:47 2009
DistroRelease: Ubuntu 10.04
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20091209)
NonfreeKernelModules: nvidia
Package: python-psyco 1.6-1ubuntu1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-9.13-generic
SourcePackage: psyco
Tags: lucid
Uname: Linux 2.6.32-9-generic i686

Related branches

Revision history for this message
Dean Loros (autocrosser) wrote :
Revision history for this message
Dean Loros (autocrosser) wrote :

I have tried several times to resolve this install problem & it remains.....

Revision history for this message
Dean Loros (autocrosser) wrote :

I have found a workaround for this problem---I had only Python 2.6 installed---I installed Python 2.5 & all the problems were resolved---for some reason 2.6 is not including the "os" module.......

Revision history for this message
Scott Kitterman (kitterman) wrote :

The problem is it is only built for python 2.5 and 2.6 is default. Thanks for providing the critical clue.

Changed in psyco (Ubuntu):
assignee: nobody → Scott Kitterman (kitterman)
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package psyco - 1.6-1ubuntu2

---------------
psyco (1.6-1ubuntu2) lucid; urgency=low

  * Adjust debian/rules to really build for python2.6 (LP: #499314)
 -- Scott Kitterman <email address hidden> Mon, 25 Jan 2010 22:38:01 -0500

Changed in psyco (Ubuntu Lucid):
status: In Progress → Fix Released
Revision history for this message
Scott Kitterman (kitterman) wrote :

Uploaded proposed packages for karmic and jaunty proposed. While the odds of getting verification for Jaunty may not be great, it seems poor form not to provide the extension for the default Python and it's easy enough to verify.

Changed in psyco (Ubuntu Lucid):
importance: Undecided → High
Changed in psyco (Ubuntu Karmic):
importance: Undecided → High
Changed in psyco (Ubuntu Jaunty):
importance: Undecided → High
status: New → In Progress
Changed in psyco (Ubuntu Karmic):
status: New → In Progress
Changed in psyco (Ubuntu Jaunty):
assignee: nobody → Scott Kitterman (kitterman)
Changed in psyco (Ubuntu Karmic):
assignee: nobody → Scott Kitterman (kitterman)
description: updated
Revision history for this message
Dean Loros (autocrosser) wrote :

Just glad that I worked at finding it long enough----Thank You for the real fix.

Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted psyco into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in psyco (Ubuntu Karmic):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted psyco into jaunty-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in psyco (Ubuntu Jaunty):
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Anyone who can test the proposed package? If not, the proposed update will be removed again. Thanks!

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

SRU Verification

I can' reproduce the problem neither in Karmic or Jaunty. I installed only python2.6 and python-psyco and python-psyco installs cleanly and is usable.

However there is the following odd thing in your log file, the version of python-minimal and libpython2.6 doesn't match:
python-minimal (2.6.4-0ubuntu2)
libpython2.6 (2.6.4-1ubuntu2)

So this error was either a transient error due to the unstable nature of the alpha release or a problem with python-central or a system specific error. Moreover I haven't found any duplicate (excepted unanswered python-central reports)

Did you have a local version of python installed somewhere on your system (e.g /usr/local/) ?
Otherwise, could you please provide a recipe to reproduce this error ?

Thanks in advance.

Revision history for this message
Dean Loros (autocrosser) wrote :

Hi Jean---

Scott killed the problem during Karmic development--it was a "stuck" update problem---post #4 & #5 from Scott were the problem & fix. Just another development bug......I would think you can close this one.

Thanks for the follow up.

Revision history for this message
Martin Pitt (pitti) wrote :

This update has been in jaunty-proposed for half a year or longer, without any testing feedback. I removed the jaunty-proposed package again.

Changed in psyco (Ubuntu Jaunty):
status: Fix Committed → Won't Fix
Revision history for this message
Martin Pitt (pitti) wrote :

This update has been in karmic-proposed for half a year or longer, without any testing feedback. I removed the proposed package again.

Changed in psyco (Ubuntu Karmic):
status: Fix Committed → Won't Fix
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.