[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Ubuntu install problems

waugust

3/20/2010 5:01:00 PM

I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed.
Whenever I apt-get install anything It ends with a series of python
(dependency?) errors. Anybody got any idea?
> aptget libgcj-common
Reading package lists...
Done
Building dependency
tree
Reading state information...
Done
libgcj-common is already the newest
version.
0 upgraded, 0 newly installed, 0 to remove and 6 not
upgraded.
26 not fully installed or
removed.
After this operation, 0B of additional disk space will be
used.
Setting up libgcj-common
(1:4.4.1-1ubuntu2) ...
Compiling /usr/lib/python3.1/dist-packages/
aotcompile.py ...
File "/usr/lib/python3.1/dist-packages/aotcompile.py", line
115
raise Error, "nothing to
do"

^
SyntaxError: invalid
syntax

Compiling /usr/lib/python3.1/dist-packages/classfile.py ...
File "/usr/lib/python3.1/dist-packages/classfile.py", line 30
raise TypeError, type(arg)
^
SyntaxError: invalid syntax

pycentral: pycentral pkginstall: error byte-compiling files (2)
pycentral pkginstall: error byte-compiling files (2)
dpkg: error processing libgcj-common (--configure):
subprocess installed post-installation script returned error exit
status 1
dpkg: dependency problems prevent configuration of
libgcj10:
libgcj10 depends on libgcj-common (>= 1:4.1.1-21);
however:
Package libgcj-common is not configured
yet.
dpkg: error processing libgcj10 (--
configure):
dependency problems - leaving
unconfigured
dpkg: dependency problems prevent configuration of libgcj-bc:

It snowballs down from there for:

No apport report written because MaxReports is reached already
Errors
were encountered while processing:
libgcj-common
libgcj10
libgcj-bc
ant-gcj
ant-optional-gcj
python-transaction
python-zconfig
python-zdaemon
python-zope.exceptions
python-zope.testing
python-zope.proxy
python-zodb
python-zope.component
gaphor
gcj-4.4-jre-lib
python-speechd
python-pyatspi
gnome-orca
python-configglue
python-telepathy
python-ubuntuone-storageprotocol
python-ubuntuone-client
telepathy-butterfly
ubuntuone-client
ubuntuone-client-gnome
python-zope.hookable
E: Sub-process /usr/bin/dpkg returned an error code (1)
4 Answers

Steven D'Aprano

3/20/2010 5:25:00 PM

0

On Sat, 20 Mar 2010 10:00:47 -0700, waugust wrote:

> I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever
> I apt-get install anything It ends with a series of python (dependency?)
> errors. Anybody got any idea?

It looks like apt-get is supposed to be using 2.6 or 2.5, but somehow is
running 3.1 instead.

If you run "python -V", what does it say?


--
Steven

MRAB

3/20/2010 5:27:00 PM

0

waugust wrote:
> I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed.
> Whenever I apt-get install anything It ends with a series of python
> (dependency?) errors. Anybody got any idea?
>> aptget libgcj-common
> Reading package lists...
> Done
> Building dependency
> tree
> Reading state information...
> Done
> libgcj-common is already the newest
> version.
> 0 upgraded, 0 newly installed, 0 to remove and 6 not
> upgraded.
> 26 not fully installed or
> removed.
> After this operation, 0B of additional disk space will be
> used.
> Setting up libgcj-common
> (1:4.4.1-1ubuntu2) ...
> Compiling /usr/lib/python3.1/dist-packages/
> aotcompile.py ...
> File "/usr/lib/python3.1/dist-packages/aotcompile.py", line
> 115
> raise Error, "nothing to
> do"
>
> ^
> SyntaxError: invalid
> syntax
>
> Compiling /usr/lib/python3.1/dist-packages/classfile.py ...
> File "/usr/lib/python3.1/dist-packages/classfile.py", line 30
> raise TypeError, type(arg)
> ^
> SyntaxError: invalid syntax
>
[snip]
In Python 2 an exception can be raised with the old-style:

raise Error, "nothing to do"

or the new-style:

raise Error("nothing to do")

In Python 3 the old style is not supported (it was abandoned as part of
the general clean-up).

Another related change is that the old-style:

except Error, e:

in Python 2 has been completely replaced by the new-style:

except Error as e:

in Python 3 (also available in Python 2.6).

waugust

3/20/2010 5:40:00 PM

0

On Mar 20, 10:25 am, Steven D'Aprano <st...@REMOVE-THIS-
cybersource.com.au> wrote:
> On Sat, 20 Mar 2010 10:00:47 -0700, waugust wrote:
> > I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever
> > I apt-get install anything It ends with a series of python (dependency?)
> > errors.  Anybody got any idea?
>
> It looks like apt-get is supposed to be using 2.6 or 2.5, but somehow is
> running 3.1 instead.
>
> If you run "python -V", what does it say?
>
> --
> Steven

>python -V
Python 2.6.4

odd..yeah, I uninstalled all of the listed packages and started to
install again and got the same problem...

waugust

3/20/2010 11:33:00 PM

0

On Mar 20, 10:40 am, waugust <waugustyn...@gmail.com> wrote:
> On Mar 20, 10:25 am, Steven D'Aprano <st...@REMOVE-THIS-
>
> cybersource.com.au> wrote:
> > On Sat, 20 Mar 2010 10:00:47 -0700, waugust wrote:
> > > I have 2.5 (for GAE), 2.6 (Ubuntu default), and 3.1 installed. Whenever
> > > I apt-get install anything It ends with a series of python (dependency?)
> > > errors.  Anybody got any idea?
>
> > It looks like apt-get is supposed to be using 2.6 or 2.5, but somehow is
> > running 3.1 instead.
>
> > If you run "python -V", what does it say?
>
> > --
> > Steven
> >python -V
>
> Python 2.6.4
>
> odd..yeah, I uninstalled all of the listed packages and started to
> install again and got the same problem...

So I put this up to the Ubuntu (lunchpad, apt) community support
board: https://answers.launchpad.net/ubuntu/+source/apt/+quest...

Possible bug with the python-central package (Ubuntu x86 9.10)?? dunno.