Page 3 of 4

Re: µPIDE a new IDE for beginners

Posted: Wed Aug 18, 2021 1:38 pm
by MasterOfGizmo
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.

Re: µPIDE a new IDE for beginners

Posted: Wed Aug 18, 2021 7:04 pm
by scruss
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

Re: µPIDE a new IDE for beginners

Posted: Wed Aug 18, 2021 8:40 pm
by davef
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.

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 10:02 am
by MasterOfGizmo
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?

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 10:03 am
by MasterOfGizmo
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?

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 10:25 am
by MasterOfGizmo
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.

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 10:49 am
by davef
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.

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 10:55 am
by MasterOfGizmo
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.

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 11:09 am
by davef
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.

Re: µPIDE a new IDE for beginners

Posted: Thu Aug 19, 2021 11:51 am
by MasterOfGizmo
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.