Opened 14 years ago

Closed 14 years ago

#26185 closed defect (duplicate)

NameError: name 'ctypes' is not defined

Reported by: joe.paxton@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: python25, ctypes Cc: joe.paxton@…
Port: python25 @2.5.5

Description

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 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

Change History (1)

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.