[2.0.0 Alpha 1] sabyenc install error with Fedora 25

Questions and bug reports for Beta releases should be posted here.
Forum rules
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.
Post Reply
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

[2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

I'm running Fedora 25 Workstation and had been running sabnzbd 1.2.1 Final. When I ran pip install sabyenc I received this error. When I ran pip -V it reported pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7). Do you think this is a Fedora issue or something else?

Image
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by sander »

First of all: thank you for testing 2.0.0 Alpha 1!

Could you also post the message as text, so that Google and others can find it, and so that I don't have to type the whole line:

Code: Select all

src/sabyenc.h:22:20: fatal error: Python.h: No such file or directory
Did you Google that line?
On Ubuntu (see https://sabnzbd.org/wiki/extra/sabyenc.html ) you need

Code: Select all

python-dev python-pip
So ... install python-dev (or equirvalent) on your Fedora.
EDIT: Fedora's equivalent might be python-devel
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by sander »

total history on a fresh Fedora 25 docker:

Code: Select all

yum install -y python python-devel gcc redhat-rpm-config
pip install --upgrade pip
pip install sabyenc --upgrade
python -c "import sabyenc; print sabyenc.__version__"

Reasons for those packages:

Code: Select all

unable to execute 'gcc': No such file or directory
Solution:

Code: Select all

yum install gcc

Code: Select all

gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
Solution:

Code: Select all

yum install redhat-rpm-config
All working:

Code: Select all

# python -c "import sabyenc; print sabyenc.__version__"
2.7.0
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

Thanks for the quick response and the help. It turns out that I was just missing the --upgrade at the end of the pip install sabyenc line. I guess that's what happens when you try to throw it in quickly at the end of day/night. I already had gcc and redhat-rpm-config installed and I didn't need to install python-devel for sabyenc to install correctly.

Thanks again for the help. I look forward to seeing how 2.0.0 runs.
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by sander »

I look forward to seeing how 2.0.0 runs.
Well ... you're the judge, so tell us! Do you see a speed gain over SAB 1.2.x? You should if your CPU is the bottleneck.
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

I'm running sab from a RAM drive on a system with an older i7 so no speed bump for me. :( I downloaded the same 4 GB file twice with 1.2.1 and twice with 2.0.0 and all the downloads were within 12 seconds of each other. I'm running sab from source so it's really easy to switch back and forth.

Thanks again and keep up the good work.
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

I guess I spoke to soon as 2.0.0 is now downloading noticeably slower than 1.2.1. The time difference between the two to dl the same 3.7 GB file is now around 45 seconds and when I watch the network speed monitor it shows 1.2.1 running 120-130 Mb/s and 2.0.0 running 100-110 Mb/s. Can I uninstall sabyenc and use the Python yenc module to get my speed back or should I fall back to 1.2.1?
User avatar
sander
Release Testers
Release Testers
Posts: 8824
Joined: January 22nd, 2008, 2:22 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by sander »

Yes,

Code: Select all

pip uninstall sabyenc
User avatar
safihre
Administrator
Administrator
Posts: 5361
Joined: April 30th, 2015, 7:35 am
Contact:

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by safihre »

I am surprised. It seems more likely that it's a drop in network/newsserver than 2.0.0.
The improvements in 2.0.0 have been so great that it can only be similar, not slower.
Maybe keep watching it for a few more downloads?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

sander wrote:Yes,

Code: Select all

pip uninstall sabyenc
Thanks, I wondered if it was that easy.
safihre wrote:I am surprised. It seems more likely that it's a drop in network/newsserver than 2.0.0.
The improvements in 2.0.0 have been so great that it can only be similar, not slower.
Maybe keep watching it for a few more downloads?
I can make the change between 1.2.1 and 2.0.0 in about 1 minute and 2.0.0 is consistently slower for me. I used 1.2.1 today but I'll switch back to 2.0.0 tomorrow and let you know what happens.
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

Well I saw the same results today as I did yesterday. For some reason 2.0.0 is slower, by about 10 - 15 Mb/s, for me than 1.2.1B1. I didn't try the pip uninstall sabyenc. Is 2.0.0 slower for anyone else or is it just me?
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

I've done more testing with the following results. I uninstalled sabyenc and downloaded the same 2.5 GB file twice with 2.0.0 and 1.2.1 alternating the downlaods between the versions and found 2.0.0 was 12 Mb/s slower than 1.2.1. I reinstalled sabyenc and completed the same test with the same file and 2.0.0 was 10 Mb/s slower than 1.2.1. I run sabnzbd from source and installed python-cheetah dbus-python python-yenc python-cryptography notify-python openssl par2cmdline unrar unzip p7zip sabyenc, am I missing any programs that might cause the slow down in 2.0.0? I have the article cache limit set to 1 GB. When I tested sabnzbd 1.2.1 with nzbget 18 the download speeds were within 1 Mb/s which is probably just network or NNTP traffic differences. Please let me know if there is anything I can do to bring the 2.0.0 speeds more in line with what I see with 1.2.1.

Thanks
User avatar
safihre
Administrator
Administrator
Posts: 5361
Joined: April 30th, 2015, 7:35 am
Contact:

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by safihre »

I honestly have no idea..
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ED4Q4tM8DF
Newbie
Newbie
Posts: 18
Joined: January 25th, 2016, 4:11 pm

Re: [2.0.0 Alpha 1] sabyenc install error with Fedora 25

Post by ED4Q4tM8DF »

Ok.

Thanks for taking the time.
Post Reply