-
Notifications
You must be signed in to change notification settings - Fork 867
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
Create a standalone version for Windows #15
Comments
By the way... the CHANGES.txt mentions "Added Windows executable". What does that mean? I can't find it. |
Yes I tried adding a windows executable but the existence of the file on PyPI broke the pip installs for linux users so I removed it. |
Hi @gleitz, could you please tell me how did you make such an executable? I want to make one for a friend. Or if you have time, host it here on GitHub (either the executable or a guide), it would be of benefit to people. |
I believe you would want to use http://www.py2exe.org/ |
Any specific directions? I had less than success with PyInstaller so I'm asking if you had any pitfall with py2exe or it went just right in the first try. |
Not sure. Previously I created the exe through the pypi upload process but it didn't work. Let me know if you have better success! |
I followed the tutorial of py2exe, by adding an import directive to
(and library.zip only contains python files) |
Sorry, I don't have a windows machine so I can't test it. |
@gleitz Luckily, I'm making progress. I had to edit the setup.py script though. I'll post here as soon as I have a working binary. |
@CamiloMM Neat trick. |
I downloaded the PNG but I'm on a Mac without 7-zip. When I ran unzip howdoi.zip it created howdoi.zip.cpgz. Just put the .exe in a Dropbox? |
I don't use neither Dropbox nor Macs, but since it's a Unix under the hood, this should work as it does in Linux:
In other words, you just have to rename it. It gives a warning, but uncompresses it correctly anyway. |
Thx! I put the file in my Dropbox. Will add to the github project soon. |
I'm glad, someone will probably welcome it :) By the way, since it's fixed on Still it would be awesome to get it automated. I don't use git, otherwise I'd look into making pull requests 'n stuff. |
Now, I know this is a very small thing, but I think it might be good to indicate next to the download that it doesn't require Python installed - since it's just a bit below the words "requires Python", people might think the executable also does. Just the word "standalone" should be intuitive enough. |
Hi CamiloMM, Trying to use your exe and having two problems. I'm on a win 7 32bit pc.
I'm running it from command line and tried both running it directly by being in the directory where it is, and also tried putting it in a directory on my system path. I don't think that's relevant but just in case. It is trying to run as administrator but in properties it is not set to run as administrator which is why I'm guessing it is firing the UAC. Oh and also it triggers Avast to start analyzing it. Maybe it's all because it's an unknown publisher? Anyway, any ideas how to get around this without disabling UAC? Thanks |
Yep, that fixed it. win7 puts the shield on it and wants to run it as administrator when extracted to the desktop but as soon as I copied it over to my User/bin directory it changes to normal and runs fine. Thanks |
Glad it worked @isimmons! But I didn't understand - Windows 7 has a |
No, sorry, I just picked it up from using Linux and made my own c:\users\username\bin which is added to the system path and is where I store 3rd party exe, and my .bat, and .cmd files for easy use from the command line. |
@isimmons Creative of you! I just drop them in System32 out of mere habit really. |
# This is the 1st commit message: move from print_err to logging # This is the commit message #2: change sanity check message # This is the commit message #3: flake8 linting # This is the commit message #4: flake8 linting # This is the commit message #5: pylint updates # This is the commit message #6: pylint updates # This is the commit message #7: pylint updates for errors.py # This is the commit message #8: update changes from #344 # This is the commit message #9: update formatting # This is the commit message #10: update formatting # This is the commit message #11: add consuructor to class # This is the commit message #12: refactor logging levels and messages # This is the commit message #13: refactor logging levels and messages # This is the commit message #14: pylint recomendations # This is the commit message #15: flake8 formating # This is the commit message #16: flake8 formating # This is the commit message #17: change logging to print
First off, since I'm not a Python developer I have no idea if this is easy to include in a build process or not. However, since I've seen several Python applications that run on Windows without having to install Python (for example, PyLoad), I think that it might be easier in Python than say, .NET or Java.
I'm not expecting this issue to be fixed soon - I just thought I should post it as a wish.
Also, it doesn't necessarily need an installer (I think any user of this knows how to copy a folder to Program Files), but with one, it would be possible to add
howdoi
to the%PATH%
, so that people can pop up a prompt and run it easily.The text was updated successfully, but these errors were encountered: