-
Notifications
You must be signed in to change notification settings - Fork 25
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
Wrong path for the python interpreter #223
Comments
Thank you for your bug report. Could you share the corresponding snapcraft.yaml? |
Sure,
The reason i consider this a bug/issue is that previously i never staged xkbcommon libs & set its path manually with core22. |
I tried thonny and it fails on an error
Which is different from what is described there? |
@seb128 Surprisingly, the above doesn't come up in my Debian 12 system.
Additionally, i have installed the thonny snap locally with |
ah, it worked here because I had gnome-46-2404-sdk installed /snap/thonny/x1/usr/local/bin/thonny starts with that line
Unsure what is defining the path to use for python3 there, maybe snapcraft? |
@seb128 Is the title valid, i mean i have literally the same problem in curtail & g4music. The error which pops up in curtail is bit different,
|
There is one issue with the python interpreter is about now. Unsure about the xkbcommon issue but you opened another ticket already about that so we don't need to discuss it in this one |
I suspect that the python problem is due to pip install... If I'm right, it automagically creates the /usr/local/bin/thonny executable, and places in it a shebang with the path to the current python interpreter... which is the one in the SDK because it is running during building. So the solution requires to manually "sed" that file after build and pip... something like
|
Did you use gnome42 before and it was working or are those new snaps? |
All the snaps previously used core22, core18 & the gnome stack asaociated with them.
They all worked fine with core22/18 & gnome42/34 stack
…On 5 July 2024 1:47:55 pm UTC, Sebastien ***@***.***> wrote:
Did you use gnome42 before and it was working or are those new snaps?
--
Reply to this email directly or view it on GitHub:
#223 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
I don't think that statement is true. The version in the store works fine but /snap/thonny/217/bin/thonny is a bash script. I cloned https://git.launchpad.net/thonny-snap , and try to build rev b7fe6ea2 (before the switch to core24), the resulting snap has
Checking the history you did switch from using the snapcraft python plugin to use the nil one and call pip manually which is more likely the change that introduced the problem |
Seems there is a bit of misunderstanding.
|
Snapping snaps with gnome-46-2404 SDK , Results in the following error :
Reproducible in G4Music & Thonny.
Using SDK & Snapcraft from edge channel.
AFAIK this is related with XKB libs.
Filed similar report under mesa-2404 snap bug tracker.
canonical/mesa-2404#3 (comment)
The text was updated successfully, but these errors were encountered: