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

not getting the binary to run from downloaded zip #112

Open
wolftune opened this issue Apr 16, 2024 · 5 comments
Open

not getting the binary to run from downloaded zip #112

wolftune opened this issue Apr 16, 2024 · 5 comments

Comments

@wolftune
Copy link

wolftune commented Apr 16, 2024

downloaded bambam-master.zip

$ ./bambam.desktop 
kf.service.services: KApplicationTrader: mimeType "x-scheme-handler/file" not found

and then the .desktop file opens in my text editor

I'm using KDE Neon

@porridge
Copy link
Owner

Thanks for the report @wolftune !

The bambam.desktop file is not directly executable from a shell. It is meant to be copied to the applications directory where KDE would be able to find them and make them available through the applications menu.

There is also bambam-session.desktop which is similar, but meant to be copied into a sessions directory where it can
be used to run instead of KDE.

Note, that using the .desktop files requires some minor but important processing beforehand.
See https://github.com/porridge/bambam?tab=readme-ov-file#manual-installation for details.

Note that neither of the desktop files currently let you use the extensions feature. You'd have to additionally edit them to add the necessary flag.

However, if you only want to try the master version out quickly, you can run bambam.py from a shell, see https://github.com/porridge/bambam?tab=readme-ov-file#usage

Please let me know how it goes!

@wolftune
Copy link
Author

For now, I'm happy to just test it the quickest I can. I tried the .py but got this:

$ ./bambam.py 
pygame 2.1.2 (SDL 2.28.5, Python 3.10.12)
Hello from the pygame community. https://www.pygame.org/contribute.html
Using data directory /home/aaron/Downloads/extract-temp/bambam-master/data
Using extension directory /home/aaron/Downloads/extract-temp/bambam-master/extensions
Using data directory /home/aaron/.local/share/bambam/data
Traceback (most recent call last):
  File "/home/aaron/Downloads/extract-temp/bambam-master/./bambam.py", line 754, in <module>
    main()
  File "/home/aaron/Downloads/extract-temp/bambam-master/./bambam.py", line 747, in main
    bambam.run()
  File "/home/aaron/Downloads/extract-temp/bambam-master/./bambam.py", line 554, in run
    pygame.init()
RuntimeError: SDL compiled with version 2.0.20, linked to 2.28.5

@porridge
Copy link
Owner

This seems like an error with the pygame and/or SDL version installed in your system.
pygame/pygame#3427
I don't pretend to understand this fully, but this is not something I can do anything about in bambam.

I guess a simple:

$ python3 -c 'import pygame;pygame.init()'

would fail in the same way?

@wolftune
Copy link
Author

Yes, that gives the same RuntimeError: SDL compiled with version 2.0.20, linked to 2.28.5

@porridge
Copy link
Owner

porridge commented Jun 1, 2024

Any updates from your side on this one @wolftune ?

I guess this would be solved if we made self-contained binaries that did not depend on distribution's Python, pygame, etc. I think I tried this one but did not get far. :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants