µPIDE a new IDE for beginners

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: µPIDE a new IDE for beginners

Post by MasterOfGizmo » Wed Aug 18, 2021 1:38 pm

davef wrote:
Thu Aug 05, 2021 8:35 pm
What I am struggling with is this ... uPIDE is a Windows program
No, it's just a Python program. There is a file packaged for Windows. but that's not what you should try to run under Linux. All you need is in https://github.com/harbaum/upide. Just clone that repository, install Python3 and PyQt5 as suggested and run the upide.py script under Linux.
Last edited by MasterOfGizmo on Thu Aug 19, 2021 10:11 am, edited 1 time in total.

User avatar
scruss
Posts: 360
Joined: Sat Aug 12, 2017 2:27 pm
Location: Toronto, Canada
Contact:

Re: µPIDE a new IDE for beginners

Post by scruss » Wed Aug 18, 2021 7:04 pm

I may not be the target audience, but it would be nice if you could specify the port. The MicroPython board I want to do stuff with is on /dev/ttyACM1, but µPIDE catches the CircuitPython board on ttyACM0 instead and fails. I've put in an issue to the repo

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: µPIDE a new IDE for beginners

Post by davef » Wed Aug 18, 2021 8:40 pm

Thanks for the clarification. I now see that following in Status:
A single-exe binary for windows can be found in the releases.
and then being able to run uPIDE on Windows was not the correct procedure.

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: µPIDE a new IDE for beginners

Post by MasterOfGizmo » Thu Aug 19, 2021 10:02 am

scruss wrote:
Wed Aug 18, 2021 7:04 pm
but it would be nice if you could specify the port.
As explained in the issue I am open to suggestions. I think for the target audience it's pretty important to have this simple "just run the exe and be ready to go" feeling. So how and where to add the ability to select a port without facing beginners with these options?

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: µPIDE a new IDE for beginners

Post by MasterOfGizmo » Thu Aug 19, 2021 10:03 am

davef wrote:
Wed Aug 18, 2021 8:40 pm
and then being able to run uPIDE on Windows was not the correct procedure.
I still don't understand what you are trying to achieve. You try to run the windows exe under linux?

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: µPIDE a new IDE for beginners

Post by MasterOfGizmo » Thu Aug 19, 2021 10:25 am

I've added a (huge 70MB) pre-packaged Linux version to the latest release at:
https://github.com/harbaum/upide/releas ... v1.0-beta7

Maybe this helps with the linux dependency problems.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: µPIDE a new IDE for beginners

Post by davef » Thu Aug 19, 2021 10:49 am

The whole issue was due to my miss-understanding. When I see a file that ends in .exe I thought it only ran under Windows, which it did.

I will now try running it under Linux:

Code: Select all

dave@davef:~/Desktop$ ./upide.exe 
bash: ./upide.exe: cannot execute binary file: Exec format error
Obviously, I downloaded the wrong files or miss-understood the installation process.

I will download the pre-packaged Linux version and try that.

Thank you.
Last edited by davef on Thu Aug 19, 2021 11:04 am, edited 1 time in total.

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: µPIDE a new IDE for beginners

Post by MasterOfGizmo » Thu Aug 19, 2021 10:55 am

davef wrote:
Thu Aug 19, 2021 10:49 am
The whole issue was due to my miss-understanding. When I see a file that ends in .exe I thought it only ran under Windows, which it did.

I will now try running it under Linux, then download the pre-packaged Linux version and install that.
That's correct, the exe only runs under Windows. And it should just run fine there, doesn't it? The exe is built from the python scripts as is the new prepackaged Linux version. These scripts can also be run directly under Linux (and also under Windows) if you have all the python dependencies installed.

So the release binaries are meant to ease usage for beginners. If you are a little more experienced with python on the PC you can try to run the python scripts directly ignoring the prepackaged versions for Windows and Linux altogether.

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: µPIDE a new IDE for beginners

Post by davef » Thu Aug 19, 2021 11:09 am

On Windows I got:

Code: Select all

ImportError: no module named 'PyQt5'
I Googled and tried to install various programs on Windows to no avail.

I am much more comfortable with the command line in Linux so will head-down that route.

MasterOfGizmo
Posts: 50
Joined: Sun Nov 29, 2020 8:17 pm

Re: µPIDE a new IDE for beginners

Post by MasterOfGizmo » Thu Aug 19, 2021 11:51 am

davef wrote:
Thu Aug 19, 2021 11:09 am
On Windows I got:

Code: Select all

ImportError: no module named 'PyQt5'
I Googled and tried to install various programs on Windows to no avail.

I am much more comfortable with the command line in Linux so will head-down that route.
You got that on Windows? How and where was that message displayed? You should just be able to download the exe and run it by double clicking it.

Post Reply