Ive been seeing a lot of these the past few days.
2023-06-28 10:03am Failed to initialize [email protected] with reason: name 'random' is not defined
ERROR 2023-06-28 10:03am Failed to initialize [email protected] with reason: name 'random' is not defined
ERROR 2023-06-28 10:03am Failed to initialize [email protected] with reason: name 'random' is not defined
ERROR 2023-06-28 10:03am Failed to initialize [email protected] with reason: name 'random' is not defined
ERROR 2023-06-28 10:03am Failed to initialize [email protected] with reason: name 'random' is not defined
ERROR 2023-06-28 10:03am Failed to initialize [email protected] with reason: name 'random' is not defined
Probably something I have configured wrong but its worked finr until recently.
Thanks!
4.0.3 RC1 error message: "name 'random' is not defined"
Forum rules
Help us help you:
Help us help you:
- Tell us what system you run SABnzbd on.
- Adhere to the forum rules.
- Do you experience problems during downloading?
Check your connection in Status and Interface settings window.
Use Test Server in Config > Servers.
We will probably ask you to do a test using only basic settings. - Do you experience problems during repair or unpacking?
Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Re: 4.0.3 RC1 error message: "name 'random' is not defined"
please put specific info in the subject. I've now done it for you.
that can happen if SAB uses something the random module before it was imported
The code is here:
https://github.com/sabnzbd/sabnzbd/blob ... #L651-L656
I do see an "import random" (good), but I don't see any usage. So how can that happen?
Code: Select all
name 'random' is not defined
Code: Select all
>>> random.randint(1,10)
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'random' is not defined
https://github.com/sabnzbd/sabnzbd/blob ... #L651-L656
I do see an "import random" (good), but I don't see any usage. So how can that happen?
Re: 4.0.3 RC1 error message: "name 'random' is not defined"
Ah:
Config -> Switches: what do you have selected at "Server IP address selection".
... my guess: "Randomly ... ". Correct? If so, change to "Quickest IP"
If that solves it, I think you have found a bug.
Config -> Switches: what do you have selected at "Server IP address selection".
... my guess: "Randomly ... ". Correct? If so, change to "Quickest IP"
If that solves it, I think you have found a bug.
Re: 4.0.3 RC1 error message: "name 'random' is not defined"
The bug is already fixed, will be part of next release.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate