apt-get upgrade fails on launchpad-integration

Asked by Dave Fregon

I have a problem in that apt now fails upgrading many apps (151) due to launchpad integration failing to configure with :

Setting up launchpad-integration (0.1.10) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1394, in <module>
    main()
  File "/usr/bin/pycentral", line 1388, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 899, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 682, in install
    self.default_runtime.byte_compile(self.private_files, bc_option,
AttributeError: 'NoneType' object has no attribute 'byte_compile'
dpkg: error processing launchpad-integration (--configure):
 subprocess post-installation script returned error exit status 1

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Dave Fregon
Solved:
Last query:
Last reply:
Revision history for this message
Ralph Janke (txwikinger) said :
#1

Try

sudo apt-get remove launchpad-integration

and then

sudo apt-get install

The second command should run without error if everything is fine again

Revision history for this message
Dave Fregon (axxs) said :
#2
Revision history for this message
Best Dave Fregon (axxs) said :
#3

I solved my problem using the fix from the above bug report