Comments (25)
On Mac OSX, brew install wxpython
worked.
At the end of the install, the following message was included:
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/xxxx/Library/Python/2.7/lib/python/site-packages echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/xxxx/Library/Python/2.7/lib/python/site-packages/homebrew.pth
After that, ./nodemcu-pyflasher.py
worked.
from nodemcu-pyflasher.
I couldn't run app from
dist
folder.
That's expected and I never claimed you could. It's right here: https://github.com/marcelstoer/nodemcu-pyflasher#status. If you can help "promote" pyinstaller/pyinstaller#2355 by leaving comments there it'd probably be beneficial for quite a few people.
please consider a section in readme when explaining what to install and do before running the app and how to run it.
Sure, can do that. However, I personally don't see why anybody on Mac would try to use this app (as long as there's no app bundle, see above) rather than running esptool.py
directly from the console. Do you feel having a GUI justifies the extra effort of installing Python bundles?
from nodemcu-pyflasher.
Yes, "you" meant @siva1024. Sorry for the confusion.
I did take @siva1024's edits to Main.py for wxPython 4.0 and applied them to @marcelstoer's update in GitHub. I got it to run after a couple of tweaks and used pyinstaller -w to make a macOS .app file and it works fine. The desktop icon is a bit messed up and so are the images in the About box but I didn't fix that. The Main.py changes were easier to find than I thought at first. The dout addition is good. On to the next challenge.
from nodemcu-pyflasher.
There is a Mac GUI just not yet an .app
bundle.
- git clone https://github.com/marcelstoer/nodemcu-pyflasher
- cd nodemcu-pyflasher
- python nodemcu-pyflasher.py
from nodemcu-pyflasher.
I managed to do this but got following error.
File "nodemcu-pyflasher.py", line 3, in <module>
import Main
File "/Users/quintendewilde/nodemcu-pyflasher/Main.py", line 3, in <module>
import wx
ImportError: No module named wx
from nodemcu-pyflasher.
That is to be expected because running it directly requires wxPython to be installed in your Python environment.
from nodemcu-pyflasher.
Ok, so I did from the site:
Install wxPython-Phoenix (Linux):
sudo pip install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
which returns the same error. (Restart terminal needed?)
from nodemcu-pyflasher.
I linked to the stable release install for a reason. I didn't program against wxPython phoenix.
~/Data/Python/NodeMCU-PyFlasher (master) > python
Python 2.7.12 (default, Oct 11 2016, 05:24:00)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'3.0.2.0 osx-cocoa (classic)'
Oh, and of course you'd still need esptool installed.
I really hope they're going to fix pyinstaller/pyinstaller#2355 soon so this hassle will go away for Mac users.
from nodemcu-pyflasher.
I have esptool installed, I think I followed your stable link (but that might not be your point)
I really hope so to, I've tried so many ways to get micropython etc on my WemosD1miniPro
from nodemcu-pyflasher.
If you follow my initial wxPython link you'll end up on https://www.wxpython.org/download.php where they offer wxPython3.0-osx-cocoa-py2.7.
from nodemcu-pyflasher.
Ow it seems I forgot to tell another error in my steps, when downloading the pkg for cocoa or carbon, OSX Sierra tells me the package is damaged.
Nevermind, I have to change permissions.
from nodemcu-pyflasher.
The installer could not be installed because it couldn't find the software is the result of installing the pkg, do you have the pkg that works?
from nodemcu-pyflasher.
I downloaded it from there as well, sorry can't help with that 😞
from nodemcu-pyflasher.
I've managed to install it with a program called Pacifist, (I see it when I look at the packages via pip.freeze) I get
wxPython==3.0.2.0
wxPython-common==3.0.2.0
wxPython-Phoenix==3.0.3.dev2749+f803d20
So clearly some versions got installed, except for the one from the link you gave me.
wondering why it still doesn't work though
from nodemcu-pyflasher.
I had the same problem as @BLCKPSTV . I managed to install wxPython from homebrew with simply
brew install wxpython
but it didn't solve the problem - I couldn't run app from dist
folder. I was able to run it from main dir though:
python Main.py
worked like a charm
@marcelstoer please consider a section in readme when explaining what to install and do before running the app and how to run it. It was quite frustrating ;)
from nodemcu-pyflasher.
Left a comment on pyinstaller/pyinstaller#2355 hope this gets resolved soon..
from nodemcu-pyflasher.
I Changed some of the code in the main.py for supporting the new wxPython 4.0 (Phoenix) the code is in the link below. I also made an application file for macOS direct installation. I just checked it and it is working fine. I am going to post the code I modified within the same link if anyone wants they can have a look
https://www.dropbox.com/sh/a45xd2mco7trmjp/AACI93iTN120uMvjslWz-EwMa?dl=0
from nodemcu-pyflasher.
- Cool!
- The 'About' dialog doesn't work, at least not in the compiled macOS binary.
- Can you please add the script you used for building macOS binary to Dropbox as well.
from nodemcu-pyflasher.
I just uploaded the script that i used for compiling in the same dropbox folder
from nodemcu-pyflasher.
There is a 2.1 version now and I can't figure out what you changed in Main.py. I tried compiling it with the version on GitHub using your setup.py but it doesn't work. Something about images is messed up.
Would you mind doing a pull and posting a compiled binary for those of us that are struggling to get a version of nodemcu-pyflasher.app with the dout option?
Thanks
from nodemcu-pyflasher.
The "you" in your previous comment seems to be directed at @siva1024 rather than at me. FWIW to see my changes since 2.0 you can go to the release and look for "n commits to master since this release". This will bring you to v2.0...master
from nodemcu-pyflasher.
Looking forward to wxPython 4 GA as I've given up any hope that pyinstaller/pyinstaller#2355 will ever be fixed. Thanks for confirming that wxPython 4 is not affected by that bug.
from nodemcu-pyflasher.
Fixed with the latest 3.0 release. Enjoy!
from nodemcu-pyflasher.
from nodemcu-pyflasher.
I can't reproduce this.
If you run it through your own Python interpreter using python nodemcu-pyflasher.py
then you need to make sure you install esptool.py v2.2.1 manually! The local esptool.py
copy in this repository is only used during the packaging phase.
My version of 2.5 is working fine.
Hhmm, there never was a v2.5.
from nodemcu-pyflasher.
Related Issues (20)
- Ask for root login upon startup (on linux)
- what command is used to read chip id in esp8266 HOT 1
- Restart error after flashing HOT 1
- Build nodemcu-pyflasher in 2024 HOT 1
- Migrate to ESPtool 4.x
- I can't get pyflasher to work on ubuntu-20.02 (solved ) HOT 1
- nodemcu-pyflasher on Windows 10 hangs HOT 1
- NodeMCU Pyflasher failed to connect to com nodemcu V2 V3 HOT 1
- NodeMCU-PyFlasher-Catalina.dmg 5.0.0- how to download at 0x010000 for ESP32 HOT 1
- Non working on 10.14.6
- Nodemcu pyflasher won't start up HOT 1
- Latest version 5.0 not working on Win 10 HOT 1
- ESP32-C3 Problem - HELP HOT 3
- Failing to upload new ESP8266 ESP12E Firmware using the PyFlasher tool. HOT 3
- esp32-s2 stuck
- Not running on Windows 11
- Upload littlefs.bin HOT 2
- [UI Bug] there is a problem with "i" when you hover mouse it HOT 1
- No longer Start on MAC 11.6.3 Big Sur
- ESP32-S3 NodeMCU PyFlasher stuck at detecting chip type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodemcu-pyflasher.