ubuntuone-login crashed with ImportError in __main__: No module named linux

Bug #1014094 reported by Emre Onur Bal
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Status tracked in Trunk
Stable-4-0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
High
Manuel de la Peña

Bug Description

I'm using nightly builds of Ubuntu One. It crashes when I open the client. Here you are the log file:

2012-06-16 19:13:59,567 - ubuntuone.SyncDaemon.Main - INFO - Starting Ubuntu One client version 4.1
2012-06-16 19:13:59,567 - ubuntuone.SyncDaemon.Main - INFO - Using '/home/bal/Ubuntu One' as root dir
2012-06-16 19:13:59,567 - ubuntuone.SyncDaemon.Main - INFO - Using '/home/bal/.local/share/ubuntuone/syncdaemon' as data dir
2012-06-16 19:13:59,567 - ubuntuone.SyncDaemon.Main - INFO - Using '/home/bal/.local/share/ubuntuone/shares' as shares root dir
2012-06-16 19:13:59,568 - ubuntuone.SyncDaemon.tritcask - INFO - Initializing Tritcask on: /home/bal/.local/share/ubuntuone/syncdaemon/tritcask
2012-06-16 19:13:59,568 - ubuntuone.SyncDaemon.tritcask - DEBUG - lookingup data files
2012-06-16 19:13:59,568 - ubuntuone.SyncDaemon.tritcask - INFO - found 2 data files, 0 dead and 0 broken files
2012-06-16 19:13:59,568 - ubuntuone.SyncDaemon.tritcask - DEBUG - building the keydir, using: [u'1339862412039857', u'1339862412329184']
2012-06-16 19:13:59,568 - ubuntuone.SyncDaemon.tritcask - DEBUG - loading entries from hint of: /home/bal/.local/share/ubuntuone/syncdaemon/tritcask/1339862412039857.inactive.tritcask-v1.data
2012-06-16 19:13:59,569 - ubuntuone.SyncDaemon.tritcask - DEBUG - Ignoring empty live file.
2012-06-16 19:13:59,569 - ubuntuone.SyncDaemon.tritcask - INFO - keydir ready! (keys: 2)
2012-06-16 19:13:59,569 - ubuntuone.SyncDaemon.VM.MD - DEBUG - metadata version: 7
2012-06-16 19:13:59,570 - ubuntuone.SyncDaemon.fsm - INFO - loading updated metadata
2012-06-16 19:13:59,570 - ubuntuone.SyncDaemon.fsm - INFO - initialized: idx_path: 1, idx_node_id: 1, shares: 1
2012-06-16 19:13:59,580 - ubuntuone.SyncDaemon.filesystem_notifications.GeneralProcessor - INFO - Ignoring files: ['\\A#.*\\Z', '\\A.*~\\Z', '\\A.*\\.py[oc]\\Z', '\\A.*\\.sw[nopx]\\Z', '\\A.*\\.swpx\\Z', '\\A\\..*\\.tmp\\Z', '\\A\\.~lock\\..*#\\Z', '\\A\\.goutputstream-.*\\Z']
2012-06-16 19:13:59,592 - ubuntuone.SyncDaemon.VM - DEBUG - init_root
2012-06-16 19:13:59,592 - ubuntuone.SyncDaemon.VM - DEBUG - adding inotify watch to: /home/bal/Ubuntu One
2012-06-16 19:13:59,593 - ubuntuone.SyncDaemon.FSMonitor - DEBUG - Adding general inotify watch to '/home/bal/Ubuntu One'
2012-06-16 19:13:59,594 - ubuntuone.SyncDaemon.OffloadQueue - DEBUG - Using temporary file: '/tmp/tmpmNNIvO'
2012-06-16 19:13:59,594 - ubuntuone.SyncDaemon.TunnelRunner - INFO - Proxy support not installed.
2012-06-16 19:13:59,596 - ubuntuone.SyncDaemon.HQ - INFO - HashQueue: _hasher started
2012-06-16 19:13:59,596 - ubuntuone.SyncDaemon.QueueManager - DEBUG - start
2012-06-16 19:13:59,596 - ubuntuone.SyncDaemon.ConnectionManager - DEBUG - start
2012-06-16 19:13:59,597 - ubuntuone.SyncDaemon.StateManager - DEBUG - start
2012-06-16 19:14:00,556 - ubuntuone.SyncDaemon.DBus - DEBUG - using the real session bus
2012-06-16 19:14:00,556 - ubuntuone.SyncDaemon.DBus - DEBUG - using the real system bus
2012-06-16 19:14:00,557 - ubuntuone.SyncDaemon.DBus - INFO - DBusInterface initialized.
2012-06-16 19:14:00,558 - ubuntuone.SyncDaemon.InteractionInterfaces - INFO - connect: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonService object at 0x955678c>,), kwargs {'autoconnecting': True}.
2012-06-16 19:14:00,558 - ubuntuone.SyncDaemon.InteractionInterfaces - INFO - connect: result <generator object connect at 0x9558edc>.
2012-06-16 19:14:00,615 - ubuntuone.SyncDaemon.Main - NOTE - ---- MARK (state: <State: 'INIT' (queues IDLE connection 'Not User Not Network')>; queue: 0; offloaded: 0; hash: 0) ----
2012-06-16 19:14:00,616 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event: SYS_INIT_DONE, kwargs: {}
2012-06-16 19:14:00,616 - ubuntuone.SyncDaemon.StateManager - DEBUG - received event 'SYS_INIT_DONE'
2012-06-16 19:14:00,616 - ubuntuone.SyncDaemon.StateManager - DEBUG - Transition INIT --[SYS_INIT_DONE]--> LOCAL_RESCAN (queues: IDLE; connection: Not User Not Network)
2012-06-16 19:14:00,617 - ubuntuone.SyncDaemon.Main - NOTE - Local rescan starting...
2012-06-16 19:14:00,617 - ubuntuone.SyncDaemon.local_rescan - INFO - start scan all volumes
2012-06-16 19:14:00,617 - ubuntuone.SyncDaemon.local_rescan - INFO - processing trash
2012-06-16 19:14:00,617 - ubuntuone.SyncDaemon.local_rescan - INFO - processing move limbo
2012-06-16 19:14:00,618 - ubuntuone.SyncDaemon.local_rescan - DEBUG - process next in queue (len 1)
2012-06-16 19:14:00,618 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event: SYS_STATE_CHANGED, kwargs: {'state': LOCAL_RESCAN (error=False connected=False online=False) Queue: IDLE Connection: Not User Not Network}
2012-06-16 19:14:00,618 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - handle_SYS_STATE_CHANGED: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonEventListener object at 0x9556b0c>,), kwargs {'state': LOCAL_RESCAN (error=False connected=False online=False) Queue: IDLE Connection: Not User Not Network}.
2012-06-16 19:14:00,622 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - handle_SYS_STATE_CHANGED: result None.
2012-06-16 19:14:00,625 - ubuntuone.SyncDaemon.InteractionInterfaces - INFO - start: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonService object at 0x955678c>,), kwargs {}.
2012-06-16 19:14:00,625 - ubuntuone.SyncDaemon.InteractionInterfaces - INFO - start: result <Deferred at 0x95c708c current result: None>.
2012-06-16 19:14:00,625 - ubuntuone.SyncDaemon - INFO - not starting twisted.manhole
2012-06-16 19:14:00,627 - ubuntuone.SyncDaemon.local_rescan - DEBUG - _scan_tree: share_path: '/home/bal/Ubuntu One' path: '/home/bal/Ubuntu One'
2012-06-16 19:14:00,627 - ubuntuone.SyncDaemon.local_rescan - DEBUG - Adding watch to '/home/bal/Ubuntu One'
2012-06-16 19:14:00,627 - ubuntuone.SyncDaemon.FSMonitor - DEBUG - Watch already there for '/home/bal/Ubuntu One'
2012-06-16 19:14:00,628 - ubuntuone.SyncDaemon.local_rescan - DEBUG - scanning the dir '/home/bal/Ubuntu One'
2012-06-16 19:14:00,631 - ubuntuone.SyncDaemon.local_rescan - INFO - Ignoring path as it's a symlink: '/home/bal/Ubuntu One/Shared With Me'
2012-06-16 19:14:00,632 - ubuntuone.SyncDaemon.local_rescan - DEBUG - comparing directory '/home/bal/Ubuntu One'
2012-06-16 19:14:00,632 - ubuntuone.SyncDaemon.local_rescan - DEBUG - checking root: '/home/bal/Ubuntu One' in NONE, ok!
2012-06-16 19:14:00,632 - ubuntuone.SyncDaemon.local_rescan - DEBUG - process next in queue (len 0)
2012-06-16 19:14:00,633 - ubuntuone.SyncDaemon.Main - NOTE - Local rescan finished!
2012-06-16 19:14:00,633 - ubuntuone.SyncDaemon.Main - INFO - hash queue empty. We are ready!
2012-06-16 19:14:00,633 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event: SYS_LOCAL_RESCAN_DONE, kwargs: {}
2012-06-16 19:14:00,634 - ubuntuone.SyncDaemon.StateManager - DEBUG - received event 'SYS_LOCAL_RESCAN_DONE'
2012-06-16 19:14:00,634 - ubuntuone.SyncDaemon.StateManager - DEBUG - Transition LOCAL_RESCAN --[SYS_LOCAL_RESCAN_DONE]--> READY (queues: IDLE; connection: Not User Not Network)
2012-06-16 19:14:00,634 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event: SYS_STATE_CHANGED, kwargs: {'state': READY (error=False connected=False online=False) Queue: IDLE Connection: Not User Not Network}
2012-06-16 19:14:00,634 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - handle_SYS_STATE_CHANGED: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonEventListener object at 0x9556b0c>,), kwargs {'state': READY (error=False connected=False online=False) Queue: IDLE Connection: Not User Not Network}.
2012-06-16 19:14:00,637 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - handle_SYS_STATE_CHANGED: result None.
2012-06-16 19:14:00,648 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_rootdir: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonService object at 0x955678c>,), kwargs {}.
2012-06-16 19:14:00,649 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_rootdir: result u'/home/bal/Ubuntu One'.
2012-06-16 19:14:00,651 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_folders: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonFolders object at 0x9556aac>,), kwargs {}.
2012-06-16 19:14:00,651 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_folders: result [].
2012-06-16 19:14:00,652 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - network_state_changed: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonService object at 0x955678c>, Network state (online)), kwargs {}.
2012-06-16 19:14:00,652 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - network_connected: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonService object at 0x955678c>,), kwargs {}.
2012-06-16 19:14:00,652 - ubuntuone.SyncDaemon.EQ - DEBUG - push_event: SYS_NET_CONNECTED, kwargs: {}
2012-06-16 19:14:00,652 - ubuntuone.SyncDaemon.StateManager - DEBUG - received event 'SYS_NET_CONNECTED'
2012-06-16 19:14:00,653 - ubuntuone.SyncDaemon.StateManager - DEBUG - sending event to ConnectionManager
2012-06-16 19:14:00,653 - ubuntuone.SyncDaemon.ConnectionManager - DEBUG - Internal transition 'Not User Not Network' -> 'Not User With Network'
2012-06-16 19:14:00,653 - ubuntuone.SyncDaemon.StateManager - DEBUG - ConnectionManager returned None
2012-06-16 19:14:00,653 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - network_connected: result None.
2012-06-16 19:14:00,653 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - network_state_changed: result None.
2012-06-16 19:14:00,666 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - current_status: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonStatus object at 0x9556a0c>,), kwargs {}.
2012-06-16 19:14:00,666 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - current_status: result {'is_error': '', 'name': 'READY', 'queues': 'IDLE', 'connection': 'Not User With Network', 'is_online': '', 'is_connected': '', 'description': 'ready to connect'}.
2012-06-16 19:14:00,667 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_folders: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonFolders object at 0x9556aac>,), kwargs {}.
2012-06-16 19:14:00,667 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_folders: result [].
2012-06-16 19:14:01,415 - ubuntuone.SyncDaemon.InteractionInterfaces - ERROR - failure while getting the token
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/interaction_interfaces.py", line 1256, in connect
    autoconnecting=autoconnecting)
CredentialsError: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntuone-client/ubuntuone-login exited with status 1
2012-06-16 19:14:01,416 - twisted - ERROR - Unhandled error in Deferred:
2012-06-16 19:14:01,418 - twisted - ERROR - Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 391, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/usr/lib/python2.7/dist-packages/ubuntuone-client/ubuntuone/syncdaemon/interaction_interfaces.py", line 1259, in connect
    raise NoAccessToken(e)
ubuntuone.syncdaemon.interaction_interfaces.NoAccessToken: org.freedesktop.DBus.Error.Spawn.ChildExited: Process /usr/lib/ubuntuone-client/ubuntuone-login exited with status 1

2012-06-16 19:19:02,674 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_shared: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonShares object at 0x9556a6c>,), kwargs {}.
2012-06-16 19:19:02,674 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_shared: result [].
2012-06-16 19:19:03,755 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_metadata_and_quick_tree_synced: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonFileSystem object at 0x9556a4c>, '/home/bal/Ubuntu One'), kwargs {}.
2012-06-16 19:19:03,755 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_metadata_and_quick_tree_synced: result {'mdid': '697530fb-2c68-4698-89bd-4fc6416b19db', 'info_created': '1336603340.6', 'stat': 'posix.stat_result(st_mode=16893, st_ino=6294102L, st_dev=2049L, st_nlink=2, st_uid=1000, st_gid=1000, st_size=4096L, st_atime=1336603340, st_mtime=1336603340, st_ctime=1336603340)', 'share_id': '', 'generation': 'None', 'quick_tree_synced': 'synced', 'info_is_partial': 'False', 'local_hash': '', 'node_id': '8e080048-1cc0-473e-a0b1-b6bff2c7f4eb', 'info_node_id_assigned': '1336739671.29', 'crc32': 'None', 'path': '/home/bal/Ubuntu One', 'is_dir': 'True', 'size': 'None', 'server_hash': ''}.
2012-06-16 19:19:03,804 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_shares: args (<ubuntuone.syncdaemon.interaction_interfaces.SyncdaemonShares object at 0x9556a6c>,), kwargs {}.
2012-06-16 19:19:03,804 - ubuntuone.SyncDaemon.InteractionInterfaces - DEBUG - get_shares: result [].

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: ubuntuone-client 4.1+r1259-60~precise1 [origin: LP-PPA-ubuntuone-nightlies]
ProcVersionSignature: Ubuntu 3.2.0-25.40-generic-pae 3.2.18
Uname: Linux 3.2.0-25-generic-pae i686
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
CrashCounter: 1
CrashDB: ubuntuone
Date: Sat Jun 16 19:01:36 2012
ExecutablePath: /usr/lib/ubuntuone-client/ubuntuone-login
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/ubuntuone-client/ubuntuone-login
PythonArgs: ['/usr/lib/ubuntuone-client/ubuntuone-login']
SourcePackage: ubuntuone-client
ThirdParty: True
Title: ubuntuone-login crashed with ImportError in __main__: No module named linux
Traceback:
 Traceback (most recent call last):
   File "/usr/lib/ubuntuone-client/ubuntuone-login", line 47, in <module>
     from ubuntuone.platform.credentials.linux import (
 ImportError: No module named linux
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Related branches

Revision history for this message
Emre Onur Bal (emre-o-bal) wrote :
visibility: private → public
Revision history for this message
Manuel de la Peña (mandel) wrote :

Yes, this is an issue added in trunk due to the work that has been done to port the code to mac. I'll propose a branch to fix it in a few mins. Sorry for the PITA.

Changed in ubuntuone-client:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Manuel de la Peña (mandel)
Revision history for this message
Manuel de la Peña (mandel) wrote :
Changed in ubuntuone-client:
status: In Progress → Fix Committed
Revision history for this message
Manuel de la Peña (mandel) wrote :

FYI this shall be fixed in the next nitghlies.

Revision history for this message
Emre Onur Bal (emre-o-bal) wrote :

The bug is fixed after the last update, Thanks.

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.