crashing on start because of ImportError: /usr/lib/python2.5/lib-dynload/_socket.so:

Bug #210775 reported by Gabriel Mazetto
2
Affects Status Importance Assigned to Milestone
deluge-torrent (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: deluge-torrent

It was working fine until 3 or 4 days ago... when it completely stopped working...
here is the trace log that i get starting from terminal.

brodock@brodock-desktop:~$ deluge
checking for ubuntu...
found and fixing ubuntu
brodock@brodock-desktop:~$ checking for ubuntu...
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
save uploaded memory
Pickling state...
Scanning plugin dir /usr/share/deluge/plugins
Initialising plugin TorrentNotification
Initialising plugin TorrentCreator
Initialising plugin TorrentFiles
Initialising plugin NetworkGraph
Initialising plugin MoveTorrent
Initialising plugin FlexRSS
Initialising plugin NetworkHealth
Initialising plugin SpeedLimiter
WebUi:not imported as a plugin
WebUi:not imported as a plugin
Initialising plugin WebUi
Initialising plugin EventLogging
Traceback (most recent call last):
  File "/usr/bin/deluge", line 145, in <module>
    start_deluge()
  File "/usr/bin/deluge", line 128, in start_deluge
    interface = deluge.interface.DelugeGTK()
  File "/var/lib/python-support/python2.5/deluge/interface.py", line 60, in __init__
    self.plugins.scan_for_plugins()
  File "/var/lib/python-support/python2.5/deluge/plugins.py", line 61, in scan_for_plugins
    mod = __import__(modname, globals(), locals(), [''])
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 33, in <module>
    import urllib, deluge.common, deluge.pref
  File "/usr/lib/python2.5/urllib.py", line 26, in <module>
    import socket
  File "/usr/lib/python2.5/socket.py", line 45, in <module>
    import _socket
ImportError: /usr/lib/python2.5/lib-dynload/_socket.so: cabeçalho ELF inválido
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 38, in apport_excepthook
    from apport.fileutils import likely_packaged
  File "/usr/lib/python2.5/site-packages/apport/__init__.py", line 1, in <module>
    from apport.report import Report
  File "/usr/lib/python2.5/site-packages/apport/report.py", line 14, in <module>
    import subprocess, tempfile, os.path, urllib, re, pwd, grp, os, sys
  File "/usr/lib/python2.5/urllib.py", line 26, in <module>
    import socket
  File "/usr/lib/python2.5/socket.py", line 45, in <module>
    import _socket
ImportError: /usr/lib/python2.5/lib-dynload/_socket.so: cabeçalho ELF inválido

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/deluge", line 145, in <module>
    start_deluge()
  File "/usr/bin/deluge", line 128, in start_deluge
    interface = deluge.interface.DelugeGTK()
  File "/var/lib/python-support/python2.5/deluge/interface.py", line 60, in __init__
    self.plugins.scan_for_plugins()
  File "/var/lib/python-support/python2.5/deluge/plugins.py", line 61, in scan_for_plugins
    mod = __import__(modname, globals(), locals(), [''])
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 33, in <module>
    import urllib, deluge.common, deluge.pref
  File "/usr/lib/python2.5/urllib.py", line 26, in <module>
    import socket
  File "/usr/lib/python2.5/socket.py", line 45, in <module>
    import _socket
ImportError: /usr/lib/python2.5/lib-dynload/_socket.so: cabeçalho ELF inválido

where says "cabecalho ELF inválido" in english means "invalid ELF header"

i'm using Ubuntu 8.04 hardy heron with today updates

brodock@brodock-desktop:~$ apt-cache policy deluge-torrent
deluge-torrent:
  Instalado: 0.5.8.6-1
  Candidato: 0.5.8.6-1
  Tabela de versão:
 *** 0.5.8.6-1 0
        500 http://espelhos.edugraf.ufsc.br hardy/universe Packages
        100 /var/lib/dpkg/status

Revision history for this message
Gabriel Mazetto (brodock) wrote :

i found that was my filesystem that corrupted _socket.so... so it's not a bug.

PLEASE CLOSE THIS REPORT

Revision history for this message
Siegfried Gevatter (rainct) wrote :

I'm closing this... Note that you can close bug reports yourself by clicking on the little arrow next to the status/importance and when the form appears changing the status to "Invalid" and submitting with "Save Changes".

Changed in deluge-torrent:
status: New → Invalid
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.