Ive been trying to turn my pthon script into a standalone exe with pyinstaller, the problem is I need to include python-vlc and when I run
pyinstaller --add-binary "E:DocumentsSpotify PostersSpotify Poster Coding Shitlibvlc.dll;." --add-binary "E:DocumentsSpotify PostersSpotify Poster Coding Shitlibvlccore.dll;." --onefile test3.py
I get the error
Traceback (most recent call last): File "test3.py", line 1120, in <module> main() File "test3.py", line 1116, in main app = SpotifyPosterApp(root) ^^^^^^^^^^^^^^^^^^^^^^ File "test3.py", line 108, in ~init~ self.backgroundplayer = vlc.MediaPlayer(BACKGROUNDVIDEO_PATH) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "vlc.py", line 3287, in __new AttributeError: 'NoneType' object has no attribute 'media_player_new' [32308] Failed to execute script 'test3' due to unhandled exception!
if I dont include the binaries the code will run as an exe on my main PC but I need it so that the code can be transferred to multiple PCs and the moment I include the binaries I get the error stated above, any help would be great thank you
New contributor
Noah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1