Page 1 of 1

Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 22 May 2016 08:01
by speedyrazor
Hi, I am on Mac and have the latest VLC in Applications, I have installed the vlc.py into the correct place for my Python 2.7, and am trying to run the wxvlc.py script (link below) as I use wxpython, but I constantly get the error:

Code: Select all

Warning: option --plugin-path no longer exists. Warning: option --plugin-path no longer exists. [0000000109332158] core libvlc error: No plugins found! Check your VLC installation. Traceback (most recent call last): File "/Users/me/Python/VLC_xamples-wxvlc.py", line 224, in <module> player = Player("Simple PyVLC Player") File "/Users/me/Python/VLC_xamples-wxvlc.py", line 110, in __init__ self.player = self.Instance.media_player_new() AttributeError: 'NoneType' object has no attribute 'media_player_new'
If I run the vlc.py file I get this output:

Code: Select all

RESTART: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vlc.py Usage: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/vlc.py [options] <movie_filename> Once launched, type ? for help. Build date: Fri Apr 15 16:45:33 2016 (0x0) LibVLC version: 2.2.3 Weatherwax (0x2020300) LibVLC compiler: clang: warning: argument unused during compilation: '-mmacosx-version-min=10.6' Plugin path: /Applications/VLC.app/Contents/MacOS/plugins
Link to wxvlc.py
http://git.videolan.org/?p=vlc/bindings ... 4c;hb=HEAD

I would love to get this working, but am googled out, what am I doing wrong please?

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 22 May 2016 15:20
by Jean-Baptiste Kempf
Does setenv(VLC_DATA_PATH) work for you?

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 22 May 2016 16:02
by speedyrazor
Does setenv(VLC_DATA_PATH) work for you?
Where would I add this please?

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 24 May 2016 21:53
by speedyrazor
Anyone know where I need to use setenv(VLC_DATA_PATH please?

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 30 May 2016 09:33
by Angrod90

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 31 May 2016 20:39
by speedyrazor
so I just put this into the Mac terminal, but that is not going to be permanent and the wxvlc.py script wont use the Mac terminal setting?
Is there a place I need to enter this in the script, etc?

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 04 Jun 2016 18:11
by speedyrazor
I would love to get this working, but am unsure as to where I put the environment setting within the wxvlc.py python script?

I appreciate any help given,
Kind regards.

Re: Python vlc on Mac - Warning: option --plugin-path no longer exists

Posted: 13 Jun 2016 15:12
by OlivierAubert
Please check again with the latest version of the vlc.py module, it fixes the --plugin-path warning.

Second, make sure that your python version is compiled for the same architecture as your VLC app. If they do not match, python is unable to access the libvlc API.