Page 1 of 1

fresh install from source, Unable to find vcvarsall.bat

Posted: August 29th, 2014, 6:43 am
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.

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

Posted: August 29th, 2014, 11:44 am
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.

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

Posted: August 30th, 2014, 5:25 am
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.

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

Posted: August 30th, 2014, 6:20 am
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?

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

Posted: August 30th, 2014, 12:00 pm
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).