DYefremov / TVDemon

An IPTV player with support for live TV, movies and series.
https://dyefremov.github.io/TVDemon/
GNU General Public License v3.0
9 stars 5 forks source link

run TVDemon on MSYS2 #5

Closed candrapersada closed 9 months ago

candrapersada commented 10 months ago

why is there no clear information on how to run TVDemon on MSYS2 in the README?

DYefremov commented 10 months ago

Will be available later. Perhaps, it will added the ability to build as a standalone package also.

DYefremov commented 9 months ago

Added quick guide.

candrapersada commented 9 months ago
Traceback (most recent call last):
  File "C:/msys64/home/Candra/TVDemon/usr/lib/tvdemon/run.py", line 23, in <module>
    from app.main import run
  File "C:/msys64/home/Candra/TVDemon/usr/lib/tvdemon/app/main.py", line 34, in <module>
    from imdb import IMDb
ModuleNotFoundError: No module named 'imdb'
DYefremov commented 9 months ago

Yes, I forgot one step. You need to install IMDbPY. In the mingw64 shell: pip3 install imdbpy

candrapersada commented 9 months ago
The syntax of the command is incorrect.
'charmap' codec can't decode byte 0x90 in position 29835: character maps to <undefined>
Traceback (most recent call last):
  File "C:/msys64/home/Candra/TVDemon/usr/lib/tvdemon/app/main.py", line 1442, in reload
    if self.manager.check_playlist(provider):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/msys64/home/Candra/TVDemon/usr/lib/tvdemon/app/common.py", line 300, in check_playlist
    content = file.read()
              ^^^^^^^^^^^
  File "C:/msys64/mingw64/lib/python3.11/encodings/cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 29835: character maps to <undefined>
Couldn't parse provider info:  Free-TV:::url:::https://raw.githubusercontent.com/Free-TV/IPTV/master/playlist.m3u8:::::::::'
Loading providers...
Free-TV: Getting playlist...
Free-TV: Checking playlist...
DYefremov commented 9 months ago

"Old" problem -> UTF-8 encoding on Windows.:) What is your system locale? Apparently you have cp1252 . What output for locale command in the mingw64 shell? At me looks so:

$ locale
LANG=
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=
candrapersada commented 9 months ago
Couldn't parse provider info:  Free-TV:::url:::https://raw.githubusercontent.com/Free-TV/IPTV/master/playlist.m3u8:::::::::'
DYefremov commented 9 months ago

Couldn't parse provider info: Free-TV:::url:::https://raw.githubusercontent.com/Free-TV/IPTV/master/playlist.m3u8:::::::::'

I saw it.

What output for locale command in the mingw64 shell?

candrapersada commented 9 months ago
Candra@WIN-FQDKQ385NBO MINGW64 ~
$ locale
LANG=
LC_CTYPE="id_ID.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=

image

DYefremov commented 9 months ago

OK. Interesting... Needs to experiment on free time. Does this build work at you?

candrapersada commented 9 months ago

Does this build work at you?

no image

DYefremov commented 9 months ago

Hm, at me works. build

OK. I'll experiment as possible.

candrapersada commented 9 months ago
A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file C:\Users\Candra\AppData\Local\Microsoft\Windows\INetCache\tvdemon\providers already exists.
Error occurred while processing: C:\Users\Candra\AppData\Local\Microsoft\Windows\INetCache\tvdemon\providers.

[process exited with code 1 (0x00000001)]
You can now close this terminal with Ctrl+D, or press Enter to restart.
DYefremov commented 9 months ago

For an experiment, try local *m3u files also, e.g from here.

DYefremov commented 9 months ago

Added forced playlist reading in UTF-8. I hope it helps.

candrapersada commented 9 months ago

For an experiment, try local *m3u files also, e.g from here.

not working

Added forced playlist reading in UTF-8. I hope it helps.

working but

  File "C:/msys64/home/Candra/TVDemon/usr/lib/tvdemon/app/madia.py", line 151, in get_mpv
    from . import mpv
  File "C:/msys64/home/Candra/TVDemon/usr/lib/tvdemon/app/mpv.py", line 35, in <module>
    raise OSError('Cannot find mpv-1.dll or mpv-2.dll in your system %PATH%. One way to deal with this is to ship '
OSError: Cannot find mpv-1.dll or mpv-2.dll in your system %PATH%. One way to deal with this is to ship the dll with your script and put the directory your script is in into %PATH% before "import mpv": os.environ["PATH"] = os.path.dirname(__file__) + os.pathsep + os.environ["PATH"] If mpv-1.dll is located elsewhere, you can add that path to os.environ["PATH"].
DYefremov commented 9 months ago

Changed the name for library search. Try again.

candrapersada commented 9 months ago

yes working