Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2229 defect closed fixed (fixed)

Syntax error when upgrading Debian Python 2.4

Reported by: LonelyPixel Owned by:
Priority: high Milestone:
Component: core Keywords:
Cc: Branch:
Author:

Description

I have installed twisted 2.4 for Debian Python 2.4 and after a recent apt-get upgrade, when Python 2.4 was to be upgraded, I get this error:

Setting up python2.4 (2.4.1-2sarge1) ... Compiling python modules in /usr/lib/python2.4 ... Compiling /usr/lib/python2.4/site-packages/twisted/test/stdio_test_halfclose.py ...

File "/usr/lib/python2.4/site-packages/twisted/test/stdio_test_halfclose.py", line 20

???

SyntaxError: invalid syntax

dpkg: error processing python2.4 (--configure):

subprocess post-installation script returned error exit status 1

dpkg: dependency problems prevent configuration of python2.4-dev:

python2.4-dev depends on python2.4 (= 2.4.1-2sarge1); however:

Package python2.4 is not configured yet.

dpkg: error processing python2.4-dev (--configure):

dependency problems - leaving unconfigured

Errors were encountered while processing:

python2.4 python2.4-dev

E: Sub-process /usr/bin/dpkg returned an error code (1)

My package system seems to be broken now and I have no idea how to fix it. Maybe I could remove twisted from my system to make it work again, but the Python Jabber transports unfortunately require twisted.

Attachments (1)

new.txt (833 bytes) - added by LonelyPixel 13 years ago.
The exact error message. The Wiki eat it up half.

Download all attachments as: .zip

Change History (7)

Changed 13 years ago by LonelyPixel

Attachment: new.txt added

The exact error message. The Wiki eat it up half.

comment:1 Changed 13 years ago by Jean-Paul Calderone

Resolution: fixed
Status: newclosed

Debian packaging bug. Already fixed in Twisted.

comment:2 Changed 13 years ago by LonelyPixel

Wonderful, how can I update Twisted so that I can use it again please? Haven't seen a new version around.

comment:3 Changed 13 years ago by Jean-Paul Calderone

I don't know, sorry. I can't do anything about the Debian package.

comment:4 Changed 13 years ago by LonelyPixel

Well, you said, something is fixed in Twisted. How can I get that at least? I guess in the end, I need to build Python myself, too.

comment:5 Changed 13 years ago by Jean-Paul Calderone

The file with the syntax error was deleted from the repository. Looking at the current Debian package, there appears to be a patch which comments out the invalid syntax in the file, so I'm not even really sure why the problem still exists on Debian systems.

The file isn't used by anything or for anything, nor does it offer any useful functionality. If you want, you can just delete it, or edit it to comment out the line with the syntax error.

comment:6 Changed 9 years ago by <automation>

Owner: Glyph deleted
Note: See TracTickets for help on using tickets.