Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to run this on 32 bit Windows? #6

Closed
casper opened this issue Jul 31, 2020 · 7 comments
Closed

Any way to run this on 32 bit Windows? #6

casper opened this issue Jul 31, 2020 · 7 comments

Comments

@casper
Copy link

casper commented Jul 31, 2020

The new Youtube layout is slow as snails on older computers. This looks like a really nice alternative, so wondering if there is any way to make this run on 32 bit Windows? Or maybe I could compile it myself?

@user234683
Copy link
Owner

Yes, the windows release is 32 bit, so it should work. If not, let me know what goes wrong

@casper
Copy link
Author

casper commented Aug 11, 2020

Thanks. The problem seems to be it needs Windows 7 minimum. I was trying it on Vista (32-bit) where the Python executable refuses to run. Not sure if this can be fixed, but as of now you can't run it on < Win7.

https://i.imgur.com/xQxHROa.png

@user234683
Copy link
Owner

user234683 commented Aug 11, 2020

Odd. The release page for Python 3 says that Windows XP and earlier won't work, so I would expect Vista to work. It's possible that the Visual C++ DLLs I'm including aren't compatible for some reason, or that one of the imports is at fault. I'll try to get a Vista virtual machine running. In the meantime, to debug what's wrong, try opening cmd.exe, cd to the youtube-local\python directory, and then run python.exe. It should put you into an interactive prompt if it's only the imports that are broken. (If you're not sure how to navigate the command line, double clicking python.exe in that directory should work - if there's no error, it should open a command prompt and immediately close, otherwise it should show the error.)

Now, as for getting it working right now, you can download the windows python 3 installer yourself and install it (make sure you check the box to install PIP during the installation process). Then, you can download the .zip source code release of youtube-local and unzip it. Then, in cmd, cd into that directory and run pip3 install -r requirements.txt. Then you can run it using python3 server.py.

@casper
Copy link
Author

casper commented Aug 11, 2020

Thanks for taking a look at this. If you get it confirmed on a VM it would be great. I tried it in the command prompt like you said, and got the same error.

Next I did a test and copied python.exe out of the python folder and renamed it python_test.ext to make sure I had an unique name. I ran that, and it complained about missing python38.dll. I then copied python38.dll from the python folder and put it next to the python_test.exe. Ran it and got the original GetActiveProcessorCount error again. So the issue seems to be in python.exe and/or python38.dll.

I will check out installing python separately. Have to think about it a bit, as I have Python 2.7 installed also for another app. Hmm. Will have to see if both can somehow coexist.

@user234683
Copy link
Owner

user234683 commented Aug 11, 2020

You can install multiple python versions. Just make sure you uncheck the option to add python to PATH during installation, so that you do not override the python command pointing to your 2.7 installation. Then you add the new installation to the PATH by putting the directory containing python.exe (and python3.exe) at the end of the list (so it will have the least priority). Then you can use the python3 command to use the new installation, and the old python command will still point to your old installation. Alternatively, you can just type the full path to the new installation when running youtube-local: "C:\Python38\python.exe" server.py for example.

@user234683
Copy link
Owner

Python 3.7 appears to work on Windows Vista. I've changed the windows releases to use that version since it will continue receive security patches until 2023. For some reason, brotli had an ImportError on Vista so I modified some things so it won't matter if it fails, since brotli is non-essential anyways. The current release should work on Vista.

@casper
Copy link
Author

casper commented Aug 12, 2020

Oh yeah 👍 Worked on the first try. Thanks for the fix. Lightning fast compared to YT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants