-
Notifications
You must be signed in to change notification settings - Fork 119
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
pynsist and tkinter #125
Comments
Have a look through issue #124, where @SecretShop worked out what you need to do for a Tkinter app. :-) |
I do mean to turn their findings into an example for easy reference, but I haven't had time yet - I'm on my way to a conference and messing around with 3 other side projects. |
@takluyver thanks for the reference, following the steps let me advance from one error to the next. Progress! ;) The new error I'm getting is as follows:
Following some recommendations I found on StackOverflow and other places, I've re-installed EDIT: All this is being run with Python 3.6.2 via Anaconda on a Windows 10 64-bit PC. |
Did you get the same error when specifying numpy in |
Exactly the same error. The same error is also thrown when i specify |
OK. Working with that application (i.e. build with
|
Also hey thanks for the prompt replies, they're much appreciated 😄 |
No problem, just don't rely on replies normally being that prompt. I'm travelling at the moment, and this is an interesting problem to think about when I'm on a train or in a hotel. But I'll also disappear at times when there's other stuff to do. ;-) Back to the question! The file
You should see a zip file in there. Does its name end with |
I actually have both files: EDIT: I suppose it's noteworthy that I'm explicitly setting UPDATE: So I'm actually receiving two different errors, based on how i run the .exe after compiling with
Running |
Try deleting those files and see which one it downloads when you build. You
can also check the python.exe it installs. Stay.maxsize can reveal if it's
32 bit or 64 bit (search for more info, as I'm on my phone now)
…On 29 Aug 2017 11:33 a.m., "Ananth Ravi Kumar" ***@***.***> wrote:
I actually have both files: python-3.6.2-embed-win32.zip as well as
python-3.6.2-embed-amd64.zip. There's also a pypi/numpy/1.12.1 and
pypi/numpy/1.13.1, each of which contains the respective wheels for the
numpy versions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#125 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUA9ZHLkxpTWLISoZutz5BqAjfNksL7ks5sc9rdgaJpZM4PEeAO>
.
|
Thanks for all the help! I managed to figure it out. Here's the sequence of steps I had to go through:
The GUI now opens up when the .exe file is run. Still having some issues with actually getting it to produce output for some reason, but the GUI itself seems to be up and running. |
Okay, running into another issue I'm not entirely sure how to debug; sorry for the flurry of messages over the past few days. I've narrowed down the issue with the output generation to a single function that makes a few SQL queries using the However, I tried debugging it by running Any idea what the issue could be? Does |
What database engine are you using? SQLite3 in memory? SQLite3 on disk? It may not be able to write the database file. If postgresql or mysql they will need to be running. Is there a traceback? Or just a Window 10 dialog that says "This app can't run on your PC"? Or is that in the command prompt? |
@Siecje Currently the program uses a remote connection to a MySQL database to fetch data. So would the connection need to be made during the call to And no there's no traceback, just the Windows 10 dialog. |
The remote connection should work. Have you tried just running the Might need to do some print statement debugging to find out how far it gets before the Windows 10 dialog. I've never seen that dialog. |
Figured it out. The Windows dialog was being thrown because the So in summary:
Thanks again for all the help guys, and my apologies again for the many many notifications! |
Glad you got it working. !!! 🎉 Requiring |
Agreed, I'm not entirely sure what's going on there. Also, I'd be happy to write all this up as an example and submit a pull request, if that's alright? |
Thanks for the follow up. I'd definitely like an example for using Tkinter with bundled Python (which is the default from Python 3.6). I'm not sure how best to do that, though - whether to include the DLLs in the repo, or a script to download them from somewhere. Points 2-4 are instances of the same sort of thing: you need to list all the packages that are used, including dependencies of dependencies. Maybe this could be clearer in the docs? I have also thought about making a tool where you can run the application and get a list of all the modules that were loaded. |
did you have any issue with pandas? it seems even with all the dependencies specified in installer.cfg the program still complains about missing numpy when importing pandas. I've tried various thing and am still unable to make it work |
What error are you seeing? And are you specifying numpy in |
Hello all, I'm hoping I can get some help on this issue here since Googling didn't return much in the way of answers. I'm trying to compile a GUI written with
tkinter
into an executable file. The directory structure is as follows:graphix.py
contains the code that opens/runs the GUI itself, whilesim_ui
andHistoricSimulator
are libraries that contain a variety of helper functions used in the GUI.My
installer.cfg
file looks like this:However, there seems to be an error with
tkinter
being compiled. Specifically, I get the following error when runningpython -i build/nsis/Historic_Simulator.launch.pyw
:Weirdly enough, removing the
_tkinter
line underPackages
allows the program to run when run withpython -i builds/nsis/Historic_Simulator.launch.pyw
, but the application still fails to open after installation.Any idea what the issue could be? Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: