GithubHelp home page GithubHelp logo

Comments (25)

ozarchie avatar ozarchie commented on August 16, 2024 4

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.

marcelstoer avatar marcelstoer commented on August 16, 2024 1

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.

kskenyon avatar kskenyon commented on August 16, 2024 1

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.

screen shot 2017-09-29 at 12 59 59 pm

from nodemcu-pyflasher.

marcelstoer avatar marcelstoer commented on August 16, 2024

There is a Mac GUI just not yet an .app bundle.

from nodemcu-pyflasher.

quintendewilde avatar quintendewilde commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

That is to be expected because running it directly requires wxPython to be installed in your Python environment.

from nodemcu-pyflasher.

quintendewilde avatar quintendewilde commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

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.

quintendewilde avatar quintendewilde commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

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.

quintendewilde avatar quintendewilde commented on August 16, 2024

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.

quintendewilde avatar quintendewilde commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

I downloaded it from there as well, sorry can't help with that 😞

from nodemcu-pyflasher.

quintendewilde avatar quintendewilde commented on August 16, 2024

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.

blackbyte-pl avatar blackbyte-pl commented on August 16, 2024

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.

solancer avatar solancer commented on August 16, 2024

Left a comment on pyinstaller/pyinstaller#2355 hope this gets resolved soon..

from nodemcu-pyflasher.

siva1024 avatar siva1024 commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

@siva1024

  1. Cool!
  2. The 'About' dialog doesn't work, at least not in the compiled macOS binary.
  3. Can you please add the script you used for building macOS binary to Dropbox as well.

from nodemcu-pyflasher.

siva1024 avatar siva1024 commented on August 16, 2024

I just uploaded the script that i used for compiling in the same dropbox folder

from nodemcu-pyflasher.

kskenyon avatar kskenyon commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

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.

marcelstoer avatar marcelstoer commented on August 16, 2024

Fixed with the latest 3.0 release. Enjoy!

from nodemcu-pyflasher.

kskenyon avatar kskenyon commented on August 16, 2024

from nodemcu-pyflasher.

marcelstoer avatar marcelstoer commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.