-
Notifications
You must be signed in to change notification settings - Fork 34
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
Hard crash with Python 3.12 and simpleaudio #725
Comments
Thank you for the feedback and congratulations on finding a workaround. This is a helpful warning for something we’ll need to consider as we eventually move off Python 3.11. I understand you’re running AYAB from source, not using the AppImage build for Linux. Any reason why you didn’t use the build? If it can be made more useful please let us know. For the specific As you said though this is not an immediate priority — we may not change this before 1.0 is out. |
Thank you for your fast reply :) I was not using the AppImage because I didn't know that it existed. Otherwise I would have used it :) I tried to convert your hint to the Qt replacement into a pullrequest. |
I am running into the same problem, but I am trying to install AYAB on Raspbian. It's giving an error that the package simpleaudio is deprecated. Presumably there is an updated audio package that would be better to call on instead? I followed the linux install instructions in the AYAB manual. Thanks! |
@elislo I provided a PR (#730) addressing this issue, by replacing simpleaudio with Alternatively you could try one of the offical versions from https://github.com/AllYarnsAreBeautiful/ayab-desktop/releases I would assume that the appimages are already containing the needed version. |
Environment
AYAB software version: main / 1.0.0-beta3 / 02d2c5d
Computer/OS: Ubuntu LTS 20 + Python 3.12 (not 3.11 as recommended)
Knitting machine: simulator
AYAB hardware: simulator
Describe the bug
After starting the knitting simulator the first three lines have been 'knitted' by the simulator.
Every time after the third row is done, the application crashed hard.
No exit code, no error log, no noting.
Even when running it from vscode with the debugger enabled, it crashed without any hint.
To Reproduce
Expected behavior
The application simulates the knitting process. No crash expected.
Additional context
I am using pythoon 3.12 instead of the recommended version 3.12. Using 3.11 would have been much more work, as it is not the default python version that comes with Ubuntu 24.04. (and I am not so familiar with using differen python environments in parallel)
However I could understand that this is not a "real" bug, if I am not using the recommended pyhton version.
But for future releases I wanted to point to this problem, as it might help another developer who works on the next version.
I was able to point the Problem down to this issue: hamiltron/py-simple-audio#72
The described fix (
pip install -U --force git+https://github.com/cexen/py-simple-audio.git
) worked for me.But as already mentioned. I am by far no expert in python or the implications of using different
PyMem_*
functions.(I could try to create a pull request if this helps)
So maybe one of the maintainers has a better idea for the future?
(and if it is only to write a debug message and hint the user to mute sounds in the settings page)
The text was updated successfully, but these errors were encountered: