Page 1 of 1

Errno 22

Posted: Sat Feb 23, 2008 10:44 pm
by scott
Running on OSX. Deluge has run fine for a few days, but when I went to restart it, it wouldn't start and throws this error in X11

Code: Select all

 /opt/local/bin/deluge
no existing Deluge session
Starting new Deluge session...
Traceback (most recent call last):
  File "/opt/local/bin/deluge", line 145, in <module>
    start_deluge()
  File "/opt/local/bin/deluge", line 127, in start_deluge
    upgrade_old_persistent_state()
  File "/opt/local/bin/deluge", line 83, in upgrade_old_persistent_state
    pstate_data = pstate_fd.read()
IOError: [Errno 22] Invalid argument
Still getting this error after deleting and recompiling.
any ideas?

edit: After restarting I get a different error now.

Code: Select all

 /opt/local/bin/deluge
no existing Deluge session
Starting new Deluge session...
deluge_core; using libtorrent 0.13.0.0. Compiled with NDEBUG.
Applying preferences
Pickling state...
Scanning plugin dir /opt/local/share/deluge/plugins
Traceback (most recent call last):
  File "/opt/local/bin/deluge", line 145, in <module>
    start_deluge()
  File "/opt/local/bin/deluge", line 128, in start_deluge
    interface = deluge.interface.DelugeGTK()
  File "/opt/local/lib/python2.5/site-packages/deluge/interface.py", line 60, in
 __init__
    self.plugins.scan_for_plugins()
  File "/opt/local/lib/python2.5/site-packages/deluge/plugins.py", line 61, in s
can_for_plugins
    mod = __import__(modname, globals(), locals(), [''])
  File "/opt/local/share/deluge/plugins/BlocklistImport/__init__.py", line 34, i
n <module>
    from peerguardian import PGReader, PGException
  File "/opt/local/share/deluge/plugins/BlocklistImport/peerguardian.py", line 8
, in <module>
    import gzip, socket
  File "/opt/local/lib/python2.5/gzip.py", line 9, in <module>
    import zlib
ImportError: No module named zlib

Re: Errno 22

Posted: Sun Feb 24, 2008 2:16 pm
by mvoncken
Install python-zlib or delete the config-files to disable the blocklist plugin.

Re: Errno 22

Posted: Sun Feb 24, 2008 11:30 pm
by scott
Couldn't tell you why, but I haven't changed anything and now it starts up without any problems.