fresh install from source, Unable to find vcvarsall.bat

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • 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
polar_
Newbie
Newbie
Posts: 5
Joined: August 24th, 2014, 11:08 am

fresh install from source, Unable to find vcvarsall.bat

Post by polar_ »

Hi all,

On Win7 I have a working setup of Sabnzbd 0.7.16.exe. I want to do a fresh install from source. Installed latest python 2.7.x for x64. When starting SABnzbd I noticed that SSL server connection was grayed out. I installed PyOpenSSL 0.14 by extracting the fale to C:\Python27\Lib\site-packages\pyOpenSSL-0.14. Then I ran from command line : python setup.py install.

The installation is aborted : C:\Python27\Lib\site-packages\pyOpenSSL-0.14

I decided to continue with the other modules before fixing the OpenSSL problem. I did the same for yENC, and got the same error.

C:\Python27\Lib\site-packages\yenc-0.3>python setup.py build
running build
running build_py
running build_ext
building '_yenc' extension
error: Unable to find vcvarsall.bat

Why is this? Do I need to install Virtual Studio? Maybe a pointer on the SABnzbd installation guide that mentions something about this? Many thanks in advance.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: fresh install from source, Unable to find vcvarsall.bat

Post by shypike »

Compilation of OpenSSL and _yenc is not for the faint of heart.
You need an ancient version of Visual Studio (2003) and a lot of fiddling.
Just get the bin files from our distribution.
Copy them into the ActiveState Python folders.
polar_
Newbie
Newbie
Posts: 5
Joined: August 24th, 2014, 11:08 am

Re: fresh install from source, Unable to find vcvarsall.bat

Post by polar_ »

I decided to stay with the MSI installer. The way I understand it all is taken care of wrt SSL, extracting, and video-file-check. Or isn't it ... ?

The only reason for me to switch to source was basically because NzbToMedia v9.2.exe was absolete, and "Clinton" adviced me to switch to CP source because the latest changes are up to date there. I am also testing SickRage (source) vs SickBeard.exe. So the efforts of getting python working on my system are not entirely waisted.

Thanks for the heads up about Visual Studio.
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: fresh install from source, Unable to find vcvarsall.bat

Post by shypike »

The SABnzbd Windows distribution file is self-contained.
But it doesn't include a "video-file-check", what do you think it does?
polar_
Newbie
Newbie
Posts: 5
Joined: August 24th, 2014, 11:08 am

Re: fresh install from source, Unable to find vcvarsall.bat

Post by polar_ »

Oops, you're right. That is more a NzbToMedia feature :

From https://github.com/clinton-hall/nzbToMedia/issues/545

ffmpeg is not needed, but there is a major benefit to installing it as it uses this to verify that files are playable, and automatically reject corrupt videos (asks SickRage and CouchPotato to download another).
Post Reply