I had the same error with a freshly installed 10.10 today, and
eventually I have made it work somehow.

Starting software-center (3.0.7) from terminal gave:

pbekesi@csacsi-desktop:~$ software-center 
Traceback (most recent call last):
  File "/usr/bin/software-center", line 88, in <module>
    from softwarecenter.app import SoftwareCenterApp
  File "/usr/share/software-center/softwarecenter/app.py", line 62, in <module>
    from view.logindialog import LoginDialog
  File "/usr/share/software-center/softwarecenter/view/logindialog.py", line 
30, in <module>
    from softwarecenter.backend.launchpad import GLaunchpad
  File "/usr/share/software-center/softwarecenter/backend/launchpad.py", line 
32, in <module>
    from launchpadlib.launchpad import Launchpad
ImportError: No module named launchpadlib.launchpad

I reinstalled python-launchpadlib (1.6.1-1) to see if it fixes, but
after I did this, starting software-center resulted in:

pbekesi@csacsi-desktop:~$ software-center 
Traceback (most recent call last):
  File "/usr/bin/software-center", line 88, in <module>
    from softwarecenter.app import SoftwareCenterApp
  File "/usr/share/software-center/softwarecenter/app.py", line 62, in <module>
    from view.logindialog import LoginDialog
  File "/usr/share/software-center/softwarecenter/view/logindialog.py", line 
30, in <module>
    from softwarecenter.backend.launchpad import GLaunchpad
  File "/usr/share/software-center/softwarecenter/backend/launchpad.py", line 
32, in <module>
    from launchpadlib.launchpad import Launchpad
  File "/usr/lib/pymodules/python2.6/launchpadlib/launchpad.py", line 29, in 
<module>
    from lazr.restfulclient.resource import (
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/resource.py", line 
41, in <module>
    from _browser import Browser, RestfulHttp
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_browser.py", line 
50, in <module>
    from _json import DatetimeJSONEncoder
  File "/usr/lib/python2.6/dist-packages/lazr/restfulclient/_json.py", line 28, 
in <module>
    class DatetimeJSONEncoder(simplejson.JSONEncoder):
AttributeError: 'module' object has no attribute 'JSONEncoder'

I tried reinstalling software-center, but the result was the same. After
some googling, I also reinstalled the package python-simplejson
(2.1.1-1)

Now it if starting up fine except for maybe the below output, but
besides that it's ok.

pbekesi@csacsi-desktop:~$ software-center 
2011-02-27 17:03:47,174 - softwarecenter.app - INFO - software-center-agent 
finished with status 1
WARNING: can not get name for '<gtk.TextBuffer object at 0xa3ba2d4 
(GtkTextBuffer at 0xa069948)>'WARNING: can not get name for 
'<gtk.CellRendererText object at 0xa3ba2fc (GtkCellRendererText at 0xa0703a0)>'

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/634324

Title:
  software-center python-launchpadlib dependency

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to