-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError: list index out of range #6
Comments
Edit: I did not have the proper version in the config file. (was set to default and i am using v2) After changing this, here is the output im getting for a "Downloading" file
and here is for a completed file:
|
I think this is mostly certainly due to Can you try running it locally with |
I was able to push a bit further with Python3, only just urllib2 that
becomes urllib.request.
Now i'm stuck at sending the actual message, still related to urllib. Ur
req variable being sent to discord perhaps need to be utf-8 encoded?
[TypeError] ... expected bytes
Ill keep trying with python3 as im literally one problem away from sending
the discord notification.
*Any ideas btw?*
…On Tue., Jul. 13, 2021, 5:19 a.m. Raghu Saxena, ***@***.***> wrote:
I think this is mostly certainly due to python3, the script is intended
for use with python2. I will make sure to add this to the README, for now
there is no "quick fix", except that your python command default to
python2 (2.7 probably).
Can you try running it locally with python instead of python3?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUZT3PBRAWT74NPYQGRNVR3TXQAKHANCNFSM5AEQTYCA>
.
|
Not completely sure, but I do have a box with python3 on it I think. Will try and play around a bit tomorrow, see if I can make another version of the script for those who still use Deluge. |
I am able to test succesfully but invoking the command automatically through the Execute plugin gives me the following issue...
|
@frunkAF can you confirm your versions of |
@ckcr4lyf I use the docker container, linuxserver/deluge:latest. Here's the output of a version command
I got it working now. I added a So to get it working...
|
I would guess (1) is related to #8 (and valid), (3) is related to docker stuffs. But part (2) is concerning, since it seems you need to modify I will try and see if I can address that by better detecting the values instead of relying on hardcoded indexes |
@frunkAF ok, I have confirmed the execution. Issue (2) does not affect this script, it will only print an extra line at the end:
so the exit code error etc, is mostly likely a docker permission thing. Can you "undo" your change to My testing without modifying that file:
|
It worked! It looks like the message is not an issue. It was strictly a permissions issue once the code was updated for python 3 |
Awesome. I will close this issue for now, @bobskiman you can use the new |
Hi, i'm getting this error when attempting to use the test function with torrent hash.
I'm using linuxserver/docker which has python3 installed. To get it running i had to change the "import urllib2" to "import urllib.request as urllib2" to actually run through the import stage of the script.
Let me know if i can help in troubleshooting.
The text was updated successfully, but these errors were encountered: