SpyTVofficial / AlteaXL-Infotainment

0 stars 0 forks source link

Start Problems #1

Open mulke068 opened 2 months ago

mulke068 commented 2 months ago

After Installing the Requirements an error appear

FileNotFoundError: Could not find module 'F:\test\AlteaXL-Infotainment\libvlc.dll' (or one of its dependencies). Try using the full path with constructor syntax.

Cause it don't know where VLC media player is installed to use the *.dll

In my case I don't even have VLC media player installed it did not work

mulke068 commented 2 months ago

FIX

The program detects on its own if it's 32- or 64-bit even without it will be detected automatically but for those who don't it will be detected manually

radio.py

# Finding the VLC dll file
import os
import sys

vlc_path = None
if sys.maxsize > 2**32:
    # Path to the VLC dll file on Windows for VLC 64-bit
    vlc_path = r'C:\Program Files\VideoLAN\VLC'
else:
    # Path to the VLC dll file on Windows for VLC 32-bit
    vlc_path = r'C:\Program Files (x86)\VideoLAN\VLC'

os.add_dll_directory(vlc_path)
mulke068 commented 2 months ago

And just saying, but nobody can create tags or pull request in this repo !!!