Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppImage requires python 3.8. #404

Open
Techwolf opened this issue Dec 24, 2023 · 1 comment
Open

AppImage requires python 3.8. #404

Techwolf opened this issue Dec 24, 2023 · 1 comment
Labels
Bug Something isn't working

Comments

@Techwolf
Copy link

Trying the appimage on my gentoo system that only has python 3.11.

Traceback (most recent call last):
  File "/tmp/.mount_TwitchSAXRx5/usr/src/main.py", line 26, in <module>
    from twitch import Twitch
  File "/tmp/.mount_TwitchSAXRx5/usr/src/twitch.py", line 38, in <module>
    from gui import GUIManager
  File "/tmp/.mount_TwitchSAXRx5/usr/src/gui.py", line 21, in <module>
    import pystray
  File "/tmp/.mount_TwitchSAXRx5/usr/lib/python3.8/site-packages/pystray/__init__.py", line 64, in <module>
    Icon = backend().Icon
  File "/tmp/.mount_TwitchSAXRx5/usr/lib/python3.8/site-packages/pystray/__init__.py", line 56, in backend
    return candidate()
  File "/tmp/.mount_TwitchSAXRx5/usr/lib/python3.8/site-packages/pystray/__init__.py", line 28, in appindicator
    from . import _appindicator as backend; return backend
  File "/tmp/.mount_TwitchSAXRx5/usr/lib/python3.8/site-packages/pystray/_appindicator.py", line 20, in <module>
    gi.require_version('Gtk', '3.0')
  File "/tmp/.mount_TwitchSAXRx5/usr/lib/python3.8/site-packages/gi/__init__.py", line 126, in require_version
    raise ValueError('Namespace %s not available' % namespace)
ValueError: Namespace Gtk not available

I have not tried the other type, PyInstaller.

I did manage to get it running by using hints in another bug to run the git version and had to use PYSTRAY_BACKEND=gtk

Is it possible to package all the python depends in AppImage so it can run on any linux system?

@guihkx
Copy link
Contributor

guihkx commented Dec 24, 2023

The AppImage does not require Python 3.8 to be installed on the system, because Python is already included within the AppImage.

You can verify this by extracting the AppImage:

$ ./TwitchDropsMiner*.AppImage --appimage-extract

You'll find the Python executable (python3.8) in squashfs-root/usr/bin.

I'm not really sure why you're getting that error, but I've been using the AppImage on Arch Linux (and I've tested it on Ubuntu 20.04), with no issues...

Perhaps give the PyInstaller package a try.

I did manage to get it running by using hints in another bug to run the git version and had to use PYSTRAY_BACKEND=gtk

With the GTK backend you'll get a blurry tray icon (if you care about that kind of stuff).

If you just install the libappindicator-gtk3 package (or whatever it's called on Gentoo), you should have no errors.

@DevilXD DevilXD added the Bug Something isn't working label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants