mazurwiktor / albion-online-stats

Albion online stats is an extension to MMORPG game - Albion Online. It tracks network traffic and displays various statistics, such as damage and DPS meter calculated from in-game actions.
Apache License 2.0
197 stars 64 forks source link

Cannot run on Ubuntu 20.04 #42

Closed Doodidan closed 3 years ago

Doodidan commented 4 years ago

Describe the bug Latest release turns down on Ubuntu 20.04 on start Terminal:

***:~/Games/Albion Online Stats$ ./albion-online-stats-linux 
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, webgl, xcb.

Aborted (core dumped)

Log file There isn't damage-meter.log file in the same directory as executable. But there is aoaddons.log file:

00:14:35 [ INFO] Found interfaces: [NetworkInterface { name: "enx000ec6b58d83", index: 2, mac: Some(00:0e:c6:b5:8d:83), ips: [V4(Ipv4Network { addr: 192.168.1.10, prefix: 24 }), V6(Ipv6Network { addr: fe80::b2b:6286:320b:5604, prefix: 64 })], flags: 69699 }, NetworkInterface { name: "wlo1", index: 3, mac: Some(d0:c6:37:81:41:e2), ips: [V4(Ipv4Network { addr: 192.168.1.9, prefix: 24 }), V6(Ipv6Network { addr: fe80::23ab:411e:ae00:5181, prefix: 64 })], flags: 69699 }]
00:14:35 [ WARN] packetdump: unable to create channel: Operation not permitted (os error 1)
00:14:35 [ WARN] packetdump: unable to create channel: Operation not permitted (os error 1)
00:14:35 [ INFO] Listening to network packets...

To Reproduce Steps to reproduce the behavior:

  1. Go to app folder
  2. Run albion-online-stats-linux file by terminal or UI
  3. See error

Expected behavior Just run

Screenshots image

Desktop (please complete the following information):

mazurwiktor commented 4 years ago

On Linux su is required :(

Try to run with

./sudo ./albion-online-stats-linux

Doodidan commented 4 years ago

I tried - the same result

GuillaumeFavelier commented 4 years ago

Is it a virtual machine?

Doodidan commented 4 years ago

@GuillaumeFavelier No. It's real machine

GuillaumeFavelier commented 4 years ago

Do you use Qt 5.15? In this case, take a look at the new dependencies:


    libfontconfig1-dev
    libfreetype6-dev
    libx11-dev
    libxext-dev
    libxfixes-dev
    libxi-dev
    libxrender-dev
    libxcb1-dev
    libx11-xcb-dev
    libxcb-glx0-dev
    libxkbcommon-x11-dev

Reference: https://doc.qt.io/qt-5/linux-requirements.html

Doodidan commented 4 years ago

I'm using standard GNOME. Not sure Qt have any effects

kohrias commented 4 years ago

I suspect that the packaging of the linux executable is not done properly. It does not contain needed dependencies. For me the executable does not work either on linux.

However! As a workaround you could clone the repository, run "sudo pip install -v -r requirements.txt" and then execute "sudo python albion-online-stats.py". Works like a charm on my Debian 10 Buster.

codewithpatelo commented 3 years ago

Similar problem.

mazurwiktor commented 3 years ago

Should be fixed in https://github.com/mazurwiktor/albion-online-stats/tree/1.0.4 since from now on the app is stored as a normal python package

See: https://pypi.org/project/aostats/