[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#791469: apt-get upgrade generates Python errors



Control: reassign -1 python-aptdaemon 0.31+bzr413-1.1+deb6u1

On Sun, 2015-07-05 at 09:06 -0400, Bruce Momjian,,, wrote:
> Running apt-get upgrade or apt-get purge generates this Python error:
> 
> 	Reading package lists... Done
> 	Building dependency tree
> 	Reading state information... Done
> 	0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> 	3 not fully installed or removed.
> 	After this operation, 0 B of additional disk space will be used.
> 	Do you want to continue [Y/n]? y
> 	Setting up python-aptdaemon (0.31+bzr413-1.1+deb6u1) ...
> 	/usr/lib/python2.5/site-packages/aptdaemon/worker.py:811: Warning: 'with' will become a reserved keyword in Python 2.6
> 	Compiling /usr/lib/python2.5/site-packages/aptdaemon/worker.py ...
> 	  File "/usr/lib/python2.5/site-packages/aptdaemon/worker.py", line 811
> 	    with set_euid_egid(trans.uid, trans.gid):
> 	                     ^
> 	SyntaxError: invalid syntax
> 	
> 	pycentral: pycentral pkginstall: error byte-compiling files (12)
> 	pycentral pkginstall: error byte-compiling files (12)

That error is being generated by the python-aptdaemon package's
postinstall script, not apt; reassigning.

Regards,

Adam


Reply to: