liquidtimes / sopcast-player

Automatically exported from code.google.com/p/sopcast-player
0 stars 0 forks source link

problem with libvlc detection in 0.7.1 #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
0.7.1 doesn't works with vlc 1.1.9:

Traceback (most recent call last):
  File "/usr/lib/sopcast-player/lib/sopcast-player.py", line 36, in <module>
    from VLCWidget import VLCWidget
  File "/usr/lib/sopcast-player/lib/VLCWidget.py", line 32, in <module>
    import vlc_1_0_x
  File "/usr/lib/sopcast-player/lib/vlc_1_0_x.py", line 46, in <module>
    dll=ctypes.CDLL('libvlc.so')
  File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libvlc.so: cannot open shared object file: No such file or directory

Removing "import vlc_1_0_x" from VLCWidget.py fixes problem for me.

Original issue reported on code.google.com by alekc...@googlemail.com on 9 May 2011 at 4:25

GoogleCodeExporter commented 8 years ago
Maybe this is because vlc-devel (libvlc.so there) is not installed here.
Looks like vlc_1_1_x.py tries to open one of libvlc.so or libvlc.so.5.
But vlc_1_0_x.py needs to open only libvlc.so.

Original comment by alekc...@googlemail.com on 9 May 2011 at 4:31

GoogleCodeExporter commented 8 years ago
There is a change that I will publish tomorrow that will fix this issue.

Original comment by flyguy97 on 9 May 2011 at 8:10

GoogleCodeExporter commented 8 years ago

Original comment by flyguy97 on 9 May 2011 at 8:15

GoogleCodeExporter commented 8 years ago
Issue fixed with version 0.7.2.

Original comment by flyguy97 on 10 May 2011 at 8:34

GoogleCodeExporter commented 8 years ago
It fixed if vlc 1.1.x used (can't test with vlc 1.0.x).
But I am not sure about 1.0.x because libvlc there have other soname 
libvlc.so.2.
See files here http://packages.ubuntu.com/lucid/libvlc2

But after I changed libvlc.so.5 to libvlc.so.2 in vlc_1_0_x.py then again this 
error:

Traceback (most recent call last):
  File "/usr/lib/sopcast-player/lib/sopcast-player.py", line 36, in <module>
    from VLCWidget import VLCWidget
  File "/usr/lib/sopcast-player/lib/VLCWidget.py", line 32, in <module>
    import vlc_1_0_x
  File "/usr/lib/sopcast-player/lib/vlc_1_0_x.py", line 49, in <module>
    dll = ctypes.CDLL('libvlc.so.2')
  File "/usr/lib/python2.7/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libvlc.so.2: cannot open shared object file: No such file or directory

Original comment by alekc...@googlemail.com on 10 May 2011 at 8:59

GoogleCodeExporter commented 8 years ago
I will put out another update sometime this week that will first try to load 
libvlc.so, then fallback to loading libvlc.so.x where x is the highest so 
version number installed. It doesn't make sense to hard-code these values in 
here. Once complete I will also submit patch upstream so other projects don't 
duplicate the same effort.

Original comment by flyguy97 on 11 May 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Fixed in sopcast player 0.7.2

Original comment by flyguy97 on 23 May 2011 at 5:33

GoogleCodeExporter commented 8 years ago
I have the same problem:

Traceback (most recent call last):
  File "/usr/share/sopcast-player/lib/sopcast-player.py", line 36, in <module>
    from VLCWidget import VLCWidget
  File "/usr/share/sopcast-player/lib/VLCWidget.py", line 32, in <module>
    import vlc_1_0_x
  File "/usr/share/sopcast-player/lib/vlc_1_0_x.py", line 49, in <module>
    dll = ctypes.CDLL('libvlc.so.5')
  File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libvlc.so.5: cannot open shared object file: No such file or directory

Could you please tell me how to fix it?

Original comment by hbthien0...@gmail.com on 21 Nov 2011 at 9:17