piejanssens / premiumizer

Download manager for premiumize.me cloud downloads
MIT License
172 stars 45 forks source link

Clean install does not work - Windows 10 #325

Closed chris-fp closed 2 years ago

chris-fp commented 2 years ago

I've had to rebuild my server where I have plex, sonarr, radarr etc.etc. running and the only thing that doesn't work is Premiumizer. When I first installed premiumizer months ago, pretty sure it was version 1.0 and it worked ok.

I have just done a clean windows install (win 10 21H1 19043.1348) and followed the manual instructions - Github 2.34.0 64bit followed by Python 3.10.0.amd64 bit and then the manual instructions when I run the command "C:\Premiumizer\premiumizer\premiumizer.py" I get the following:-

C:\WINDOWS\system32>python C:\Premiumizer\premiumizer\premiumizer.py Traceback (most recent call last): File "C:\Premiumizer\premiumizer\premiumizer.py", line 36, in from flask_compress import Compress File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\flask_compress__init__.py", line 1, in from .flask_compress import Compress File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\flask_compress\flask_compress.py", line 14, in import brotli File "C:\Users\chris\AppData\Local\Programs\Python\Python310\lib\site-packages\brotli.py", line 8, in import _brotli ImportError: DLL load failed while importing _brotli: The specified module could not be found.

I've added a text file which shows what I did - hopefully somebody can explain what's going on.

chris-fp commented 2 years ago

premiumizer issue.txt

neox387 commented 2 years ago

Try with python 3.9.x Some packages are not ready for 3.10

https://github.com/neox387/PremiumizerInstaller/commit/bcb00996437492e7d3b9e53de10f324a4a8142c6

chris-fp commented 2 years ago

I'd just tried it on 3.8 and got the same error. Will try with 3.9

trying with versions from your link now.

chris-fp commented 2 years ago

I get the same error :(

C:\WINDOWS\system32>python C:\Premiumizer\premiumizer\premiumizer.py Traceback (most recent call last): File "C:\Premiumizer\premiumizer\premiumizer.py", line 36, in from flask_compress import Compress File "C:\Users\chris\AppData\Local\Programs\Python\Python39\lib\site-packages\flask_compress__init__.py", line 1, in from .flask_compress import Compress File "C:\Users\chris\AppData\Local\Programs\Python\Python39\lib\site-packages\flask_compress\flask_compress.py", line 14, in import brotli File "C:\Users\chris\AppData\Local\Programs\Python\Python39\lib\site-packages\brotli.py", line 8, in import _brotli ImportError: DLL load failed while importing _brotli: The specified module could not be found.

neox387 commented 2 years ago

64 is good I see readme does not mention to do Python - m pip install pywin32 Not sure if it was only for nzbToMedia or also for other packages maybe that's it. I see flask compress produces the error, it's in the Setup file so it should install install_requires=[ 'flask', 'brotli'

You could try pip install brotli maybe

If you Google brotli it also mention vcredist

I have x86 and x64 installed https://docs.microsoft.com/en-GB/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

chris-fp commented 2 years ago

You must be mind reading me - I'd just found on the web about the vc_redist. Installed these and it works :D

Obviously I'd prefer Premiumizer to be run as a service but I'd already tried it but it failed but I am thinking that it is perhaps to do with no having vc_redist installed before I run the windows installer?

neox387 commented 2 years ago

Ok not sure why i removed vcredist from my installer oO need to include it again Thanks =D https://github.com/neox387/PremiumizerInstaller/commit/74e185d4f4a2553a21853065c51f937a30500978

I use nssm64 to create the service with installer

chris-fp commented 2 years ago

Ok not sure why i removed vcredist from my installer oO need to include it again Thanks =D neox387/PremiumizerInstaller@74e185d

I'm guessing the first time I installed Premiumizer way back I'd already installed vc-redist for something else :)

I use nssm64 to create the service with installer

chris-fp commented 2 years ago

Just uninstalled python & Git, deleted c:\premiumizer and then installed using Windows installer and all sweet and running 👍

neox387 commented 2 years ago

I used the inno script from from a sonarr fork back in the day but can't be bothered to spend time trying to fix it so it could use exicting python/git so ye 😄

Using your own account for the service is needed for network location with credentials else should be fine

chris-fp commented 2 years ago

might be worth updating the manual instructions and readme to include Python - m pip install pywin32 command and also that you need to install the vc-redist stuff, especially if a clean install of windows :)