python script missing log module

General support for problems installing or using Deluge
Post Reply
chemist
New User
New User
Posts: 2
Joined: Sun Oct 19, 2014 1:55 pm

python script missing log module

Post by chemist »

I've just installed deluge and want to use python to do some post processing based on labels assigned to torrents.

I've taken the script detailed here http://dev.deluge-torrent.org/wiki/Deve ... 3/UIClient

but when I run the python script I get the following error

Code: Select all

Traceback (most recent call last):
  File "./test.py", line 2, in <module>
    from deluge.ui.client import client
  File "/home/chemist/Documents/deluge.py", line 4, in <module>
    from deluge.log import LOG as log
ImportError: No module named log
I've tried adding import logging before deluge.log import LOG as log I called but this hasn't help

I'm running lubuntu 14.10, deluge 1.3.11 & python 2.7.8

any ideas what I'm missing?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: python script missing log module

Post by Cas »

You have a file named deluge.py....
chemist
New User
New User
Posts: 2
Joined: Sun Oct 19, 2014 1:55 pm

Re: python script missing log module

Post by chemist »

Cas wrote:You have a file named deluge.py....
:oops: balls, yeah renamed it and now it works..... thanks dude :)
Post Reply