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

ESP-flasher Mac not running (solved?) #3

Closed
ApricotFarm opened this issue May 6, 2021 · 15 comments
Closed

ESP-flasher Mac not running (solved?) #3

ApricotFarm opened this issue May 6, 2021 · 15 comments

Comments

@ApricotFarm
Copy link

I've downloaded and install both release versions of ESP-flasher to my Mac, but nothing happens when I try to run them. I double-click the icon, the program looks like it's opening, and then just ends, with nothing happening. Does anyone have any idea what's happening?

I'm running macOS 10.13.6 on an Intel MacBook Pro.

@Jason2866
Copy link
Owner

I have no Mac. Tested in a VM with Mac Os Catalina. I flashed successfully two devices.
Have the feedback from other Mac users which have successfully flashed devices

@ApricotFarm
Copy link
Author

Hmm. Do you know if the other users using 10.13, or were all using newer OS versions?

I can try loading up the Linux version -- it would be Ubuntu on a RasPi 4. Is there any reason to think that wouldn't work?

@Jason2866
Copy link
Owner

Positive Feedback was with Mac Os Catalina 10.15.7

@dweston
Copy link

dweston commented May 20, 2021

I have the same problem as @ApricotFarm although my MBP is running macOS Mohave Version 10.14.6.

@dweston
Copy link

dweston commented May 20, 2021

I tried the Build it yourself path and all seemed OK until I called the esp_flasher app.

Result was:
This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac.
Which lead to this:
https://stackoverflow.com/questions/48531006/wxpython-this-program-needs-access-to-the-screen

Which lead to this:
https://wiki.wxpython.org/wxPythonVirtualenvOnMac

However I'm not sufficiently python savvy to know what to do from here.

It appears it is necessary to start GUI scripts with pythonw as opposed to python.

Does anyone know how to kick the esp_flasher app off as a python script?

@dweston
Copy link

dweston commented May 22, 2021

Looks like XCode has to be installed to Build it yourself.
https://realpython.com/python-gui-with-wxpython/#installing-wxpython

@Jason2866
Copy link
Owner

As written in readme

@ApricotFarm
Copy link
Author

Hi @dweston -- I've finally had some success with this, using the "build it yourself" method on a Raspberry Pi (you DO have a Raspberry Pi sitting around, right? :-) It was a bit of a long walk, but I'll post more here once I've had the chance to consolidate the information. Although...it might be time to close this particular thread/issue, and open a separate one related to different methods of getting this running? @Jason2866, what do you think?

@Jason2866
Copy link
Owner

Closing since it is not a ESP-Flasher issue.

@dweston
Copy link

dweston commented May 23, 2021

I got it working via command line invocation. Followed some tutorials on creating a skeleton GUI app using wxpython, which worked. Not sure why but esp_flasher now does what I need it to do on Mohave.

@Jason2866
Copy link
Owner

Uploaded a MacOS BigSur build. Compiled on MacBook Air M1 with Rosetta. It does work on my M1 and it should work on x86 Macs too since it is a x86 processor build.

@Jason2866 Jason2866 reopened this Sep 24, 2021
@Jason2866 Jason2866 changed the title ESP-flasher Mac not running ESP-flasher Mac not running (solved?) Sep 24, 2021
@ApricotFarm
Copy link
Author

Thanks @ Jason2866. I'm still hoping to get a working version for my High Sierra installation (10.13.6). @dweston: would you be willing to post your working Mohave build? I'm guessing there's a good chance that it will work on my setup.

On a separate note, I have been unable to replicate my success building a working version on Ubuntu Hirsute on a RasPi 4, which is why I never followed up on the precise steps I took to get the build working. I did, however, also manage to get the Windows 10 version running on Raspberry Pi, using @Botspot's amazing script (which can be found here: https://github.com/Botspot/wor-flasher) and have successfully flashed a few ESP32 chips without issue.

@Jason2866
Copy link
Owner

Have you tried to start the App a second time, just right after the first when nothing happened?

@ApricotFarm
Copy link
Author

Hi, I'm not sure if you're addressing that to me, but if so, yes...I tried it many times (I haven't really touched the mac version since May), and just tried it a few time right now, just for good measure. Nuthin'.

Have you tried to start the App a second time, just right after the first when nothing happened?

@Jason2866
Copy link
Owner

Sorry, i can not provide a compiled binary for systems older than macOS-10.15.
Reason is, that there is no provided Github runner for this mac os version.
Only way is when "someone" compiles a binary with macOS High Sierra and provides the binary.

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

No branches or pull requests

3 participants