Python error interpretation
Hal Burgiss
hal at burgiss.net
Sun Mar 15 02:15:25 UTC 2009
On Sat, Mar 14, 2009 at 08:47:20PM -0500, Chris Mohler wrote:
>
> What do you get for:
>
> python --version
$ python --version
Python 2.5.2
> aptitude show python
Package: python
State: installed
Automatically installed: no
Version: 2.5.2-0ubuntu1
Priority: important
Section: python
Maintainer: Ubuntu Core Developers
<ubuntu-devel-discuss at lists.ubuntu.com>
Uncompressed Size: 614k
Depends: python-minimal (= 2.5.2-0ubuntu1), python2.5 (>= 2.5.2)
Suggests: python-doc (>= 2.5.2-0ubuntu1), python-profiler (>=
2.5.2-0ubuntu1), python-tk (>=
2.5.2-0ubuntu1)
Conflicts: python-base, python-bz2, python-central (< 0.5.5),
python-csv, python-xmlbase, python2.1 (<=
2.1.2), python2.3 (< 2.3.5-14)
Replaces: python-base, python-xmlbase, python2.3 (<= 2.3.2-6)
Provides: python-email, python-xmlbase
Description: An interactive high-level object-oriented language
(default version)
Python, the high-level, interactive object oriented language,
includes an extensive class library with
lots of goodies for network programming, system administration,
sounds and graphics.
This package is a dependency package, which depends on Debian's
default Python version (currently
v2.5).
> Do you maybe have some third-party repos enabled?
It looks like all regular Ubuntu stuff (I didn't set this server up
originally). The only oddity is the sources.list file has a 6.06
header in it. This server was at one time 6.06 tho.
>
> Maybe 'aptitude reinstall python'?
Same difference....
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up bzr (1.3.1-1ubuntu0.1) ...
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 ?
import os
ImportError: No module named os
Traceback (most recent call last):
File "/usr/bin/pycentral", line 1891, in <module>
main()
File "/usr/bin/pycentral", line 1885, in main
rv = action.run(global_options)
File "/usr/bin/pycentral", line 1263, in run
self.options.exclude, byte_compile_default=True)
File "/usr/bin/pycentral", line 880, in install
rt.byte_compile(linked_files, bc_option, exclude_regex,
ignore_errors)
File "/usr/bin/pycentral", line 175, in byte_compile
fd.write(fn + '\n')
IOError: [Errno 32] Broken pipe
dpkg: error processing bzr (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
bzr
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Building tag database... Done
--
Hal
More information about the ubuntu-users
mailing list