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

Can't install Thonny 4.0.2 with Python 3.11.2 #2676

Closed
smblackledge opened this issue Feb 27, 2023 · 11 comments
Closed

Can't install Thonny 4.0.2 with Python 3.11.2 #2676

smblackledge opened this issue Feb 27, 2023 · 11 comments
Milestone

Comments

@smblackledge
Copy link

smblackledge commented Feb 27, 2023

Is there another way to install Thonny 4.0.2?

Raspberry Pi 4B, Buster (back one release :-( ), 8G

Installation doc says Python 3.10 or later, IIRC, so I got the latest, 3.11.2. Don't believe the Thonny install script supports that release.

pi@smb-raspi:~/Downloads $ ./thonny-4.0.2.bash 
Thonny only provides pre-built bundles for x86_64 (not armv7l).
pi@smb-raspi:~/Downloads $

Nothing happened.
Updated to remove strike-outs
Updated again to correct formatting.

@smblackledge
Copy link
Author

Downloaded [thonny-4.0.2-x86_64.tar.gz] but instructions don't mention what to do with it. Obviously untar it, but is there anything after that step?

@ghost
Copy link

ghost commented Feb 28, 2023

It does have instructions, please check this link --> https://github.com/thonny/thonny/wiki/Linux
Check the bottom portion for installing from tar.gz format

@ghost
Copy link

ghost commented Feb 28, 2023

I am also developing a Snap package but its currently unstable and wont work properly, hope i will make it stable in the coming days...

@smblackledge
Copy link
Author

@CapeCrusader321, thanks for your info. What I want is, indeed, there.

As an aside, don't think I didn't look. I googled for things like "raspberry pi thonny 4 install", but all I got was Github pages and the Thonny web page (not the wiki page).

I know how difficult keeping information in one place. But it would be nice for install instructions to link to one page or to have all the information included in every place that Linux installation is described.

@smblackledge
Copy link
Author

And if I was lucky to find 4.0.4 because that version hasn't been released, then please let me know. Perhaps all mention of an unreleased version shouldn't be google-able.

@smblackledge
Copy link
Author

Removed strike-outs in OP.

@smblackledge
Copy link
Author

smblackledge commented Mar 1, 2023

I DL'd Thonny 4.0.2, ran untar on it, moved to the Thonny directory, and then ./install.

pi@smb-raspi:~/apps/thonny/bin $ ls
pip3  pip3.10  python3  python3.10  thonny  thonny_python.ini  uninstall
pi@smb-raspi:~/apps/thonny/bin $ 

Looks like the Thonny installer really doesn't allow Python3.11. I wrongly believed that the supported version were everything 3.8 and after. I'm not sure what the problem is. ~/apps/thonny/bin/python3.10 does exist.

pi@smb-raspi:/Downloads/thonny $ ./install
Copying files to /home/pi/apps/thonny ................................ Done!
Creating start menu item (/home/pi/.local/share/applications/Thonny.desktop) Done!
Creating Desktop shortcut ............................................ Done!
Creating uninstaller (/home/pi/apps/thonny/bin/uninstall) ............ Done!
Compiling Python files ...............................................
[Errno 8] Exec format error: '/home/pi/apps/thonny/bin/python3.10'
pi@smb-raspi:/Downloads/thonny $

@ghost
Copy link

ghost commented Mar 7, 2023

As per Thonny homepage using bash <(wget -O - https://thonny.org/installer-for-linux) for linux lets you uses your system installed python version, so please try again by purging existing thonny completely and retry this method, i hope you get desired results else this should be addressed by the developers ??

@brianlinuxing
Copy link

Just been doing some quick testing and I can confirm that Thonny works perfectly well on an x86_64 implementation of Debian Sid (SparkyLinux 7 (Orion-Belt)), kernel 6.1.0-5-amd64 on Python 3.11.2 (see screenshot)

I will try and perform more work on Thonny under Raspberry Pi OS and Diet Pi on a Pi 400 in the next few weeks and hopefully blog post on it, time permitting.

I shall also cover how best to install Thonny on various Linux distros (there are many possible ways), including on Raspberry Pi systems.
Thonny_Pyhton3112

@aivarannamaa
Copy link
Member

@smblackledge, actually Thonny should be installable on Python 3.11. I've simply forgotten update the bash script. You can do it yourself by locating GOODVER="Python 3\.(8|9|10)\.*" and adding 11 as another alternative.

@amathenge
Copy link

As per Thonny homepage using bash <(wget -O - https://thonny.org/installer-for-linux) for linux lets you uses your system installed python version, so please try again by purging existing thonny completely and retry this method, i hope you get desired results else this should be addressed by the developers ??

This method worked for me. It created a new venv for Python 3.11 on my Pi and a desktop launch item.

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

No branches or pull requests

4 participants