Page 1 of 1

Import error : Module ui.web

Posted: Thu Jun 23, 2011 6:35 pm
by soweto
Hi.

I'm using Ubuntu 10.04 x86_64 Lucid and I am running into this error when trying to run deluge-web

Code: Select all

root@216753:~# deluge-web
Traceback (most recent call last):
  File "/usr/bin/deluge-web", line 9, in <module>
    load_entry_point('deluge==1.3.2', 'console_scripts', 'deluge-web')()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named ui.web
root@216753:~# 
root@216753:~# dpkg -l | grep deluge
ii  deluge                           1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK
ii  deluge-common                    1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (common fi
ii  deluge-console                   1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (console u
ii  deluge-gtk                       1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (GTK+ ui)
ii  deluge-torrent                   1.3.2-1~lucid~ppa3          bittorrent client (gtk ui transitional package)
ii  deluge-web                       1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (web ui)
ii  deluge-webui                     1.3.2-1~lucid~ppa3          bittorrent client (web ui transitional package)
ii  deluged                          1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (daemon)
root@216753:~# uname -a
Linux 216753 2.6.18-238.5.1.el5.028stab085.3 #1 SMP Mon Mar 21 20:05:12 MSK 2011 x86_64 GNU/Linux
root@216753:~# 
A secondary error is

Code: Select all

 deluged 
crashes without any errors even in debug mode. It will run for maybe 5-10mins, then crash. Help please

Re: Import error : Module ui.web

Posted: Fri Jun 24, 2011 1:57 am
by Cas
Please purge deluge and reinstall.

Re: Import error : Module ui.web

Posted: Fri Jun 24, 2011 10:32 am
by soweto
Hi Cas,

The problem still persists even after purging

Code: Select all

root@216753:~# dpkg -l | grep deluge
rc  deluge                           1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK
ii  deluge-common                    1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (common fi
ii  deluge-console                   1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (console u
ii  deluge-gtk                       1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (GTK+ ui)
ii  deluge-web                       1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (web ui)
ii  deluge-webui                     1.3.2-1~lucid~ppa3          bittorrent client (web ui transitional package)
ii  deluged                          1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (daemon)
root@216753:~# dpkg -P deluge
(Reading database ... 36510 files and directories currently installed.)
Removing deluge ...
Purging configuration files for deluge ...
root@216753:~# dpkg -l | grep deluge
ii  deluge-common                    1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (common fi
ii  deluge-console                   1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (console u
ii  deluge-gtk                       1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (GTK+ ui)
ii  deluge-web                       1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (web ui)
ii  deluge-webui                     1.3.2-1~lucid~ppa3          bittorrent client (web ui transitional package)
ii  deluged                          1.3.2-1~lucid~ppa3          bittorrent client written in Python/PyGTK (daemon)
root@216753:~# apt-get install deluge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  deluge
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/32.2kB of archives.
After this operation, 127kB of additional disk space will be used.
Selecting previously deselected package deluge.
(Reading database ... 36511 files and directories currently installed.)
Unpacking deluge (from .../deluge_1.3.2-1~lucid~ppa3_all.deb) ...
Processing triggers for man-db ...
Setting up deluge (1.3.2-1~lucid~ppa3) ...

root@216753:~# deluge-web -f
Traceback (most recent call last):
  File "/usr/bin/deluge-web", line 9, in <module>
    load_entry_point('deluge==1.3.2', 'console_scripts', 'deluge-web')()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 299, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2229, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1948, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named ui.web
root@216753:~# 

Re: Import error : Module ui.web

Posted: Fri Jun 24, 2011 11:12 am
by Cas
Purge all deluge apps!

Code: Select all

sudo apt-get purge deluge deluge-common deluge-console deluge-gtk deluge-torrent deluge-web deluge-webui deluged

Code: Select all

sudo apt-get install deluge deluged deluge-web deluge-console

Re: Import error : Module ui.web

Posted: Thu Jun 30, 2011 2:45 pm
by soweto
Have Purged all apps and re-installed.

Proper Persists.

Re: Import error : Module ui.web

Posted: Sat Jul 02, 2011 2:13 pm
by Cas
The problem is that I cannot reproduce this issue so is difficult to debug.

Do you get errors with the other deluge clients: deluge-console, deluge-gtk

Could you try using the webui plugin instead, to see if that works.

From a python prompt, see if you get an error with this:

Code: Select all

import deluge.ui.web

Re: Import error : Module ui.web

Posted: Mon Aug 01, 2011 10:15 am
by DBG
I am actually having the exact same problem (I'm on Debian 6.0 x86_64 Squeeze), although when I try to run deluged it doesn't time out, I get an error message right away running with "-d" flag.

Code: Select all

root@ct44717:~# deluged -d
[ERROR   ] 13:09:47 main:221 No module named core.daemon
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/deluge/main.py", line 213, in start_daemon
    from deluge.core.daemon import Daemon
ImportError: No module named core.daemon
However when I try to run deluge-web I do get the exact same error.

Code: Select all

root@ct44717:~# deluge-web
Traceback (most recent call last):
  File "/usr/bin/deluge-web", line 9, in <module>
    load_entry_point('deluge==1.2.3', 'console_scripts', 'deluge-web')()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 305, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2244, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 1954, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named ui.web
As far as trying your last suggestion...

Code: Select all

>>> import deluge.ui.web
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ui.web
I have not had any other problems and honestly have no idea why this is happening :cry: .