Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79362 > unrolled thread
| Started by | Noble Bell <noblebell@gmail.com> |
|---|---|
| First post | 2014-10-20 18:29 -0700 |
| Last post | 2014-10-21 08:37 -0500 |
| Articles | 4 — 3 participants |
Back to article view | Back to comp.lang.python
Py2App - Could not import Tkinter error from resulting app Noble Bell <noblebell@gmail.com> - 2014-10-20 18:29 -0700
Re: Py2App - Could not import Tkinter error from resulting app Terry Reedy <tjreedy@udel.edu> - 2014-10-21 00:07 -0400
Re: Py2App - Could not import Tkinter error from resulting app Noble Bell <noblebell@gmail.com> - 2014-10-21 06:20 -0700
Re: Py2App - Could not import Tkinter error from resulting app Skip Montanaro <skip.montanaro@gmail.com> - 2014-10-21 08:37 -0500
| From | Noble Bell <noblebell@gmail.com> |
|---|---|
| Date | 2014-10-20 18:29 -0700 |
| Subject | Py2App - Could not import Tkinter error from resulting app |
| Message-ID | <3b3f0e97-0633-4aa0-be53-ec2ddd799ce2@googlegroups.com> |
I have just created a python 3.4 application and created the setup.py file and then created an app with py2app. When I ran the resulting application I get an error in the console telling me that it could not import tkinter. Any ideas on how to correct this? Did I do something wrong?
[toc] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-10-21 00:07 -0400 |
| Message-ID | <mailman.15023.1413864459.18130.python-list@python.org> |
| In reply to | #79362 |
On 10/20/2014 9:29 PM, Noble Bell wrote: > I have just created a python 3.4 application and created the setup.py file and then created an app with py2app. > > When I ran the resulting application I get an error in the console telling me that it could not import tkinter. > > Any ideas on how to correct this? Did I do something wrong? tkinter imports _tkinter _tkinter connects with tclx.dll and tkx.dll (x is variable) So one possibility is no accessible tcl/tx. I have no idea how py2app is supposed to handle this on your undisclosed system. -- Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | Noble Bell <noblebell@gmail.com> |
|---|---|
| Date | 2014-10-21 06:20 -0700 |
| Message-ID | <a273f272-4434-48e8-97cd-1da0f834b2ba@googlegroups.com> |
| In reply to | #79366 |
On Monday, October 20, 2014 11:07:51 PM UTC-5, Terry Reedy wrote: > tkinter imports _tkinter > > _tkinter connects with tclx.dll and tkx.dll (x is variable) > > So one possibility is no accessible tcl/tx. I have no idea how py2app > > is supposed to handle this on your undisclosed system. > -- > > Terry Jan Reedy Thanks for the reply. I am using a Mac. The problem turns out that for some reason when I installed the py2app utility it got installed under python 2.7 instead of python 3, which I am using, and that caused it to create the bundle under 2.x instead of 3.x. The result was it was trying to use python 2.x instead of 3.x syntax. I realized this problem shortly after I posted the question and tried to go back to google groups and delete my post before anyone had seen it. NB
[toc] | [prev] | [next] | [standalone]
| From | Skip Montanaro <skip.montanaro@gmail.com> |
|---|---|
| Date | 2014-10-21 08:37 -0500 |
| Message-ID | <mailman.15031.1413898662.18130.python-list@python.org> |
| In reply to | #79380 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Oct 21, 2014 at 8:20 AM, Noble Bell <noblebell@gmail.com> wrote: > I realized this problem shortly after I posted the question and tried to > go back to google groups and delete my post before anyone had seen it. In general, that won't work, as lots of people use email ( python-list@python.org) or Usenet (comp.lang.python) to read the group. In fact, Google Groups is very much a latecomer to the party. More importantly, just because you made a mistake doesn't mean you should delete your message. Other people might make the same mistake and learn from your post what the solution is. Skip
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web