Closed Manuel-Sensate closed 4 years ago
Any hints on what I am doing wrong would be appreciated.
It seems you did install python wx on a different python version. Are you able to double check the python version and wx?
Hi,
I had a similar problem on my macOS Catalina 10.15.5.
I did the following to make it work (all the commands were run in terminal from the directory that contained the source code, in my case, from /Users/ss/Desktop/ESP8266/nodemcu-pyflasher):
222 - #serial_boxsizer.Add(reload_button, 0, wx.ALIGN_RIGHT, 20) replaced - serial_boxsizer.Add(reload_button, 0) 301 - #flashmode_label_boxsizer.Add(icon, 0, wx.ALIGN_RIGHT, 20) replaced - flashmode_label_boxsizer.Add(icon, 0)
After this, my NodeMCU-PyFlasher app launches just fine.
SS
I am trying to build a release myself (actually my target is to get a notarized build that works in Catalina), but I run into this.
88 INFO: PyInstaller: 3.6
88 INFO: Python: 3.7.7
96 INFO: Platform: Darwin-19.4.0-x86_64-i386-64bit
96 DEBUG: Testing for UPX ...
108 INFO: UPX is available.
109 DEBUG: script: nodemcu-pyflasher.py
109 INFO: Extending PYTHONPATH with paths
['/Users/*user*/Downloads/nodemcu-pyflasher-master']
110 INFO: checking Analysis
118 INFO: Appending 'datas' from .spec
122 INFO: checking PYZ
125 INFO: checking PKG
127 INFO: Building because toc changed
127 INFO: Building PKG (CArchive) PKG-00.pkg
537 DEBUG: Compiling /usr/local/Cellar/pyinstaller/3.6/libexec/lib/python3.7/site-packages/PyInstaller/loader/pyiboot01_bootstrap.py
538 DEBUG: Compiling /usr/local/Cellar/pyinstaller/3.6/libexec/lib/python3.7/site-packages/PyInstaller/loader/pyiboot01_bootstrap.py
539 DEBUG: Compiling /Users/*user*/Downloads/nodemcu-pyflasher-master/nodemcu-pyflasher.py
539 DEBUG: Compiling /Users/*user*/Downloads/nodemcu-pyflasher-master/nodemcu-pyflasher.py
2028 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.
2031 INFO: Bootloader /usr/local/Cellar/pyinstaller/3.6/libexec/lib/python3.7/site-packages/PyInstaller/bootloader/Darwin-64bit/runw
2031 INFO: checking EXE
2033 INFO: Building because toc changed
2033 INFO: Building EXE from EXE-00.toc
2033 INFO: Appending archive to EXE /Users/*user*/Downloads/nodemcu-pyflasher-master/dist/NodeMCU-PyFlasher
2037 INFO: Fixing EXE for code signing /Users/*user*/Downloads/nodemcu-pyflasher-master/dist/NodeMCU-PyFlasher
2040 INFO: Building EXE from EXE-00.toc completed successfully.
2045 INFO: checking BUNDLE
On your own risk, you can use the option--noconfirm
to get rid of this question.2046 INFO: Removing dir /Users/*user*/Downloads/nodemcu-pyflasher-master/dist/NodeMCU-PyFlasher-4.0.app
2047 INFO: Building BUNDLE BUNDLE-00.toc
2056 INFO: moving BUNDLE data files to Resource directory Not enough arguments. Invoke with --help for help. mv: rename NodeMCU-PyFlasher-4.0 0.0.0.dmg to dist/NodeMCU-PyFlasher-4.0.dmg: No such file or directory
My approach: I first installed the environment + requirements like you described in the readme (seems to work), but this happens when i try the build.sh script.
trying to start the binary afterwards in the dist directory i get
dist % ./NodeMCU-PyFlasher
Traceback (most recent call last):
File "nodemcu-pyflasher.py", line 3, in <module>
File "/usr/local/Cellar/pyinstaller/3.6/libexec/lib/python3.7/site-packages/PyInstaller/loader/pyimod03_importers.py", line 623, in exec_module exec(bytecode, module.__dict__)
File "Main.py", line 3, in <module>
ModuleNotFoundError: No module named 'wx'
[87475] Failed to execute script nodemcu-pyflasher
Any ideas?