trakBan / spongebob-cli

Watch classic spongebob from the terminal! 🎥🧽
GNU General Public License v3.0
570 stars 23 forks source link

cant watch on windows, fix it now!!! #33

Closed LoliestHuhytre closed 2 years ago

LoliestHuhytre commented 2 years ago

MPV does not work, I am using the Ubuntu terminal from Microsoft Store, and I tried choco, no work..... fix it now!!!

trakBan commented 2 years ago

Look into this and see if it helps.

LoliestHuhytre commented 2 years ago

sadly no

trakBan commented 2 years ago

can you type mpv into cmd and then post the output?

LoliestHuhytre commented 2 years ago

root@NENONEDO:~# mpv mpv 0.33.0 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects built on Thu Nov 26 06:59:44 UTC 2020 FFmpeg library versions: libavutil 56.60.100 libavcodec 58.112.103 libavformat 58.64.100 libswscale 5.8.100 libavfilter 7.90.100 libswresample 3.8.100 FFmpeg version: git-2020-11-22-9208b72

Usage: mpv [options] [url|path/]filename

Basic options: --start=

--list-options list all mpv options --h= print options which contain the given string in their name im using ubuntu from microsoft store

LoliestHuhytre commented 2 years ago

Screenshot_100 heres screenshot

LoliestHuhytre commented 2 years ago

git clone https://github.com/mpv-player/mpv.git is what i typed on that ubuntu microsoft store terminal

LoliestHuhytre commented 2 years ago

@trakBan

LoliestHuhytre commented 2 years ago

Screenshot_101 ok tried more stuff it seems to get this, not working but when it gives up, it freezes now

LoliestHuhytre commented 2 years ago

tried to reinstall MPV and YouTube-dl using commands and they work fine... but the same error

trakBan commented 2 years ago

Have you tried running it in just the normal windows terminal

LoliestHuhytre commented 2 years ago

actually I installed git for windows, then, i copy-pasted git clone https://github.com/trakBan/spongebob-cli.git; cd spongebob-cli; chmod +x spongebob-cli; sudo python3 setup.py install, I seperad them, MPV works fine, so does YouTube-DL, both on chocolatey, but chmod is not a valid command and so does sudo!!! I used git and C:\Users\lolie\spongebob-cli>chmod +x spongebob-cli 'chmod' is not recognized as an internal or external command, operable program or batch file is for the output, yes, I DID use terminal windows normal and C:\Users\lolie\spongebob-cli>sudo python3 setup.py install 'sudo' is not recognized as an internal or external command, operable program or batch file was also an output

LoliestHuhytre commented 2 years ago

C:\Users\lolie\spongebob-cli>mpv mpv 0.34.0 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects built on Sun Nov 7 20:16:38 +08 2021 FFmpeg library versions: libavutil 57.7.100 libavcodec 59.12.100 libavformat 59.8.100 libswscale 6.1.100 libavfilter 8.16.101 libswresample 4.0.100 FFmpeg version: git-2021-11-06-1728127e

Usage: mpv [options] [url|path/]filename

Basic options: --start=

--list-options list all mpv options --h= print options which contain the given string in their name is mpv output

trakBan commented 2 years ago

You can skip setup.py and just run python spongebob-cli. It will work just the same. You can add it to PATH so you can execute in anywhere. Just make sure to do pip install -r requirements.txt so all the dependecies get installed.

LoliestHuhytre commented 2 years ago

horray, it works

solisoares commented 2 years ago

@trakBan, I think that the use of scripts in setup.py do not provide cross-plataform compatibility as aposed to console_scripts, as described in this StackOverflow thread and in the Read the Docs page.

Even though LoliestHuhytre mentions:

I am using the Ubuntu terminal from Microsoft Store

I think it would be nice if we use console_scripts instead, and windows people can use it without calling python spongebob-cli or manually adding to the PATH.

Also, an installation with pip install . makes more convinient for updating and uninstalling as described here.

What are your thoughts about this?

trakBan commented 2 years ago

@solisoares, Thanks for bringing this to my attention. I will look into doing proper and better packaging for this program. One thing to note is that i never intended for spongebob-cli to be run on windows and thus made no serious attempts to make the program more compatible with windows.