piejanssens / premiumizer

Download manager for premiumize.me cloud downloads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clean install does not work - Windows 10

chris-fp opened this issue · comments

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.

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

neox387/PremiumizerInstaller@bcb0099

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.

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.

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

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?

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

I use nssm64 to create the service with installer

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

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

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

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 :)