ImportError: No module named platform

Bug #684869 reported by Eric Casteleijn
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
High
dobey

Bug Description

The nightlies version of syncdaemon is broken:

eric@eric-Studio-XPS-9100:~$ ubuntuone-preferences
Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 44, in <module>
    from ubuntuone.syncdaemon.tools import SyncDaemonTool
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/tools.py", line 24, in <module>
    from ubuntuone.syncdaemon.dbus_interface import (
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/dbus_interface.py", line 36, in <module>
    from ubuntuone.syncdaemon.event_queue import EVENTS
  File "/usr/lib/pymodules/python2.6/ubuntuone/syncdaemon/event_queue.py", line 25, in <module>
    from ubuntuone.platform import FilesystemMonitor
ImportError: No module named platform

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Confirmed. Using:

Package: ubuntuone-client
Version: 1.5.0+r755~maverick1

Package: ubuntuone-client-gnome
Version: 1.5.0+r755~maverick1

tags: added: chicharra chicharra-natty foundations+
Changed in ubuntuone-client:
status: New → Confirmed
importance: Undecided → Critical
importance: Critical → High
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

This seems like a packaging issue, because using trunk I'm getting:

nessita@dali:~$ PYTHONPATH=~/canonical/ubuntuone/client/trunk/ ubuntuone-preferences
Traceback (most recent call last):
  File "/usr/bin/ubuntuone-preferences", line 44, in <module>
    from ubuntuone.syncdaemon.tools import SyncDaemonTool
ImportError: No module named tools

(trunk revno 758)

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Naty,

looks like you have an old ubuntuone-preferences script, the import is correct on trunk.

try executing it using PYTHONPATH=. bin/ubuntuone-prefrences

Revision history for this message
Natalia Bidart (nataliabidart) wrote :

Guillermo is right, using the preferences script from local bin works.

dobey (dobey)
Changed in ubuntuone-client:
assignee: nobody → Rodney Dawes (dobey)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.