[MacPorts] #37105: pydoc2.7 -g fails due to a Tkinter error
MacPorts
noreply at macports.org
Thu Nov 22 13:17:32 PST 2012
#37105: pydoc2.7 -g fails due to a Tkinter error
------------------------------------+--------------------------------------
Reporter: victor.glazer@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: python tk pydoc | Port: python27 py27-tkinter tk
tkinter |
------------------------------------+--------------------------------------
`pydoc -g` fails for me with the following error:
{{{
Exception in thread Thread-1:
Traceback (most recent call last):
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
line 551, in __bootstrap_inner
self.run()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py",
line 504, in run
self.__target(*self.__args, **self.__kwargs)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py",
line 2081, in serve
DocServer(port, callback).serve_until_quit()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py",
line 2063, in __init__
self.base.__init__(self, self.address, self.handler)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py",
line 409, in __init__
self.server_activate()
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py",
line 2074, in server_activate
if self.callback: self.callback(self)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pydoc.py",
line 2164, in ready
text='Python documentation server at\n' + server.url)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/lib-tk/Tkinter.py", line 1202, in configure
return self._configure('configure', cnf, kw)
File
"/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/lib-tk/Tkinter.py", line 1193, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: out of stack space (infinite loop?)
}}}
I am running version 2.1.2 of MacPorts on OS X 10.6.8:
{{{
sudo port version
Version: 2.1.2
uname -a
Darwin Victors-MacBook-Pro.local 10.8.0 Darwin Kernel Version 10.8.0: Tue
Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
}}}
I have the following versions of `python27`, `py27-tkinter` and `tk`
installed:
{{{
sudo port installed python27 py27-tkinter tk
The following ports are currently installed:
py27-tkinter @2.7.3_0 (active)
python27 @2.7.3_1+universal (active)
tk @8.5.13_0+quartz (active)
}}}
Poking around online suggests that compiling `tk` from source with
`--enable-threads` might resolve the issue, but is there a better way?
Thank you for your help.
--
Ticket URL: <https://trac.macports.org/ticket/37105>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list