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

This forum is about all development around libVLC.
speedyrazor
New Cone
New Cone
Posts: 7
Joined: 22 May 2016 07:40

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

Postby speedyrazor » 22 May 2016 08:01

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 22 May 2016 15:20

Does setenv(VLC_DATA_PATH) work for you?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

speedyrazor
New Cone
New Cone
Posts: 7
Joined: 22 May 2016 07:40

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

Postby speedyrazor » 22 May 2016 16:02

Does setenv(VLC_DATA_PATH) work for you?
Where would I add this please?

speedyrazor
New Cone
New Cone
Posts: 7
Joined: 22 May 2016 07:40

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

Postby speedyrazor » 24 May 2016 21:53

Anyone know where I need to use setenv(VLC_DATA_PATH please?

Angrod90
New Cone
New Cone
Posts: 5
Joined: 16 Nov 2015 11:24

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

Postby Angrod90 » 30 May 2016 09:33


speedyrazor
New Cone
New Cone
Posts: 7
Joined: 22 May 2016 07:40

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

Postby speedyrazor » 31 May 2016 20:39

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?

speedyrazor
New Cone
New Cone
Posts: 7
Joined: 22 May 2016 07:40

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

Postby speedyrazor » 04 Jun 2016 18:11

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.

OlivierAubert
Developer
Developer
Posts: 92
Joined: 08 Mar 2007 15:43

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

Postby OlivierAubert » 13 Jun 2016 15:12

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests