#26186: python25-2.5.5 NameError: name 'ctypes' is not defined ----------------------------------+----------------------------------------- Reporter: joe.paxton@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.1 Keywords: python25, ctypes | Port: python25 @2.5.5 ----------------------------------+----------------------------------------- Mac OS X 10.6.4 Xcode 3.2.2 When attempting to get a list of installed modules (help('modules')) in python25, I'm getting the following error message: NameError: name 'ctypes' is not defined The problem does not appear to be an upstream issue, as the version of python 2.5 that comes pre-installed in Snow Leopard doesn't The full traceback follows: {{{ Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site.py", line 346, in __call__ return pydoc.help(*args, **kwds) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py", line 1646, in __call__ self.help(request) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py", line 1683, in help elif request == 'modules': self.listmodules() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py", line 1804, in listmodules ModuleScanner().run(callback) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pydoc.py", line 1855, in run for importer, modname, ispkg in pkgutil.walk_packages(): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pkgutil.py", line 125, in walk_packages for item in walk_packages(path, name+'.', onerror): File "/opt/local/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/pkgutil.py", line 110, in walk_packages __import__(name) File "/opt/local/lib/python2.5/site- packages/PsychoPy-1.62.00-py2.5.egg/psychopy/ext/__init__.py", line 18, in <module> from darwin import * File "/opt/local/lib/python2.5/site- packages/PsychoPy-1.62.00-py2.5.egg/psychopy/ext/darwin.py", line 16, in <module> kCGLCPSwapInterval= ctypes.c_int(222) NameError: name 'ctypes' is not defined }}} -- Ticket URL: <http://trac.macports.org/ticket/26186> MacPorts <http://www.macports.org/> Ports system for Mac OS