Search found 14 matches
- Mon Apr 01, 2024 8:01 pm
- Forum: Support
- Topic: Twisted challenge: 'None' returned from imported module
- Replies: 7
- Views: 7338
Re: Twisted challenge: 'None' returned from imported module
No problem at all, and once again, thanks for trying to help. I think and hope that Deluge will be around for many years to come, but I doubt if Twisted is going to gain any popularity. For anyone who needs a bridge between their sync or async programs and Twisted, Crochet is a great help: from delu...
- Sun Mar 31, 2024 8:41 pm
- Forum: Support
- Topic: Twisted challenge: 'None' returned from imported module
- Replies: 7
- Views: 7338
Re: Twisted challenge: 'None' returned from imported module
Oh, I forgot to mention, I tested the code you shared earlier and it exhibits the same behavior. The root of the problem is this: when is_operable() is called, Python is executing it as usual synchronous code. Inline functions get loaded and do_the_job() gets called. At the end of the do_the_job(), ...
- Sun Mar 31, 2024 2:02 pm
- Forum: Support
- Topic: Twisted challenge: 'None' returned from imported module
- Replies: 7
- Views: 7338
Re: Twisted challenge: 'None' returned from imported module
First of all, apologies for not getting back earlier, and thank you for your effort in trying to help me Martin. I appreciate it. I switched to using Crochet shortly after the above conversation and it worked well for me. However, this tab was always open on my browser, and, out of curiosity, I trie...
- Tue Jan 02, 2024 1:31 pm
- Forum: Support
- Topic: Twisted challenge: 'None' returned from imported module
- Replies: 7
- Views: 7338
Re: Twisted challenge: 'None' returned from imported module
Thanks for trying out Martin. I had added the prints later on as a poor man's debugging tool. But for the love of Odin, I cannot find what is emitting that None. I am expecting a True or False from my function_3 with an str, which is eventually returned but the caller has moved on after receiving th...
- Wed Dec 27, 2023 8:21 pm
- Forum: Support
- Topic: Twisted challenge: 'None' returned from imported module
- Replies: 7
- Views: 7338
Twisted challenge: 'None' returned from imported module
I am getting 'None' as the response as soon as I call the is_operable function, although I tried hard to make is_operable to return a non 'None' response. What am I doing wrong? This is my app and the response I am getting when I run: from my_module import is_operable def connect_and_run(**kwargs): ...
- Sat Jul 15, 2023 7:29 pm
- Forum: Support
- Topic: Mass move torrents to new storage
- Replies: 7
- Views: 1927
Re: Mass move torrents to new storage
Attached zip contains the main script deluge_move_v0.2.py and its two small dependencies. Please extract them all in a directory and run like this: ~/bin/deluge_move_v0.2.py --deluge_host 192.168.1.9 --deluge_port 48886 --FROM /home/myuser/Downloads --TO /mynas/somefolder It moves torrents residing ...
- Mon Jul 10, 2023 6:12 am
- Forum: Support
- Topic: RPC call to rename files and folders
- Replies: 5
- Views: 1331
Re: RPC call to rename files and folders
This forced me to have a crash course on reactor, which I had been avoiding since I first come across it. I guess I was on the wrong side of the fence.
Thanks heaps mhertz! This gets me going.
Thanks heaps mhertz! This gets me going.
- Sun Jul 09, 2023 9:48 am
- Forum: Support
- Topic: deluged error filling syslog
- Replies: 7
- Views: 15671
Re: deluged error filling syslog
This is still reproducible with
and the solution is a single line change in log.py: https://git.deluge-torrent.org/deluge/c ... ed0f2c3206
Code: Select all
$ deluged -V
deluged 2.0.3
libtorrent: 2.0.8.0
Python: 3.11.2
OS: Linux Ubuntu 23.04 Lunar Lobster
- Sat Jul 08, 2023 7:06 pm
- Forum: Support
- Topic: RPC call to rename files and folders
- Replies: 5
- Views: 1331
RPC call to rename files and folders
I wanted to write a simple Python script that renames files/folders matching a certain criteria. I have exhausted all documentation and the StackOverflow but I am unable to find how the rename file/folder functionality works with Deluge v2.x . ChatGPT couldn't offer a working code either. Since we k...
- Sat Jul 08, 2023 2:34 pm
- Forum: Support
- Topic: Mass move torrents to new storage
- Replies: 7
- Views: 1927
Re: Mass move torrents to new storage
Deluge-gtk's move is not smart. Rather than queuing and moving one at a time, it moves all selected torrents together. HDs (and most file systems) do not like that. I wrote a python script that moves one torrent at a time from a specified "from" location to "to" location. It uses...