kanishka-linux / kawaii-player

Multimedia player, media library manager and portable media server with PC-To-PC casting feature.
GNU General Public License v3.0
617 stars 44 forks source link

torrent support - broken python bindings #6

Closed ShalokShalom closed 7 years ago

ShalokShalom commented 7 years ago
[matthias@cosmos kawaii-player]$ kawaii-player 
/usr/share/kawaii-player kawaii_player.py /home/matthias/Documents/makepkg/kawaii-player
['/usr/share/kawaii-player', '/usr/share/kawaii-player', '/usr/lib/python36.zip', '/usr/lib/python3.6', '/usr/lib/python3.6/lib-dynload', '/usr/lib/python3.6/site-packages']
--using default pycurl--
file_not_exists
Using QTWEBENGINE
/home/matthias/.config/kawaii-player/tmp posix
taglib --tagging-module--
No module named 'libtorrent'
posix /usr/share/xsessions/plasma
768 1366
303 --width--allowed--
Could not parse stylesheet of object 0x238c5d0
addons loading....
addons loading....
addons loading....
0 0
plugins
(1, 1, 1, 0) > (0, 0, 0, 0)
Addons loading ....
Addons loading ....
Addons loading ....
<class 'str'> Shoutcast --addon-changed--
<class 'Shoutcast.Shoutcast'> Shoutcast --addon-changed--
Shoutcast select
Shoutcast
['History', 'Genre']
Shoutcast 0 ==site_index
Video video
-1 0
1 --dock-option---
111149067
Event Filter Installed in new_tray_widget
Could not parse stylesheet of object 0x238c5d0
Could not parse stylesheet of object 0x23e02c0
[1, 1]
Could not parse stylesheet of object 0x2706b30

I get this message via OSD:

"python3 bindings for libtorrent are broken Torrent Streaming feature will be disabled"

Which packages are probably meant?

kanishka-linux commented 7 years ago

If you're using ubuntu then the package is python3-libtorrent. In archlinux package is libtorrent-rasterbar, in which python bindings are already included. It is python bindings for torrent library which is used by popular bittorrent clients like qbittorrent and deluge.

ShalokShalom commented 7 years ago

Its build with libtorrent-rasterbar in KaOS.

kanishka-linux commented 7 years ago

Can you open python shell and type output of 'import libtorrent'

ShalokShalom commented 7 years ago
[matthias@cosmos ~]$ python3
Python 3.6.1 (default, Mar 22 2017, 21:57:16) 
[GCC 5.4.1 20170214] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtorrent
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'libtorrent'
>>> 
kanishka-linux commented 7 years ago

ok, most probably python3 bindings are not included in KaOS. Is it included separately in it?

ShalokShalom commented 7 years ago

How they are called?

ShalokShalom commented 7 years ago

KaOS ship in general like upstream does.

kanishka-linux commented 7 years ago

try searching python-libtorrent or python3-libtorrent using native package manager

ShalokShalom commented 7 years ago

I mean the actual file.

ShalokShalom commented 7 years ago

Both not available in our repos at all. Not included in any other package.

kanishka-linux commented 7 years ago

ok, let me search actual file

kanishka-linux commented 7 years ago

in archlinux, python3 bindings are included in libtorrent-rasterbar package.

ShalokShalom commented 7 years ago

found it: https://github.com/KaOSx/apps/blob/master/libtorrent-rasterbar/PKGBUILD

Its build with python2

Can try to rebuild with 3

kanishka-linux commented 7 years ago

ok, great. It should build with python3 with no problem.

kanishka-linux commented 7 years ago

You can also take a look at archlinux PKGBUILD 'https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/libtorrent-rasterbar'.

ShalokShalom commented 7 years ago

I already took a that one. Seems like i have to adopt it a bit more..

Can you say me, if i need to rebuild kawaii-player as well?

kanishka-linux commented 7 years ago

No, there is no need to rebuild kawaii-player.

ShalokShalom commented 7 years ago

ok, i adopt the Arch PKGBUILD for us and now does it work

thanks a lot :+1: