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

run TVDemon on MSYS2 #5

Closed
candrapersada opened this issue Aug 31, 2023 · 18 comments
Closed

run TVDemon on MSYS2 #5

candrapersada opened this issue Aug 31, 2023 · 18 comments
Labels
question Further information is requested

Comments

@candrapersada
Copy link

candrapersada commented Aug 31, 2023

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

@candrapersada candrapersada changed the title Installation on MSYS2 run on MSYS2 Aug 31, 2023
@candrapersada candrapersada changed the title run on MSYS2 run TVDemon on MSYS2 Aug 31, 2023
@DYefremov
Copy link
Owner

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

@DYefremov DYefremov added the question Further information is requested label Aug 31, 2023
@DYefremov
Copy link
Owner

Added quick guide.

@candrapersada
Copy link
Author

candrapersada commented Sep 22, 2023

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
Copy link
Owner

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

@candrapersada
Copy link
Author

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
Copy link
Owner

DYefremov commented Sep 23, 2023

"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
Copy link
Author

candrapersada commented Sep 23, 2023

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

@DYefremov
Copy link
Owner

DYefremov commented Sep 23, 2023

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
Copy link
Author

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
Copy link
Owner

DYefremov commented Sep 23, 2023

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

@candrapersada
Copy link
Author

Does this build work at you?

no
image

@DYefremov
Copy link
Owner

Hm, at me works.
build

OK. I'll experiment as possible.

@candrapersada
Copy link
Author

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
Copy link
Owner

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

DYefremov added a commit that referenced this issue Sep 23, 2023
@DYefremov
Copy link
Owner

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

@candrapersada
Copy link
Author

candrapersada commented Sep 23, 2023

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
Copy link
Owner

Changed the name for library search. Try again.

@candrapersada
Copy link
Author

yes working

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

No branches or pull requests

2 participants