[Tutor] ctypes question

Albert-Jan Roskam fomcl at yahoo.com
Mon Mar 7 16:02:44 CET 2011


I want to use a dll to read Spss data files. But when I use 
lib = ctypes.cdll.LoadLibary("d:/temp/spssio32.dll")
I get a WindowsError (cannot find module), even though the path exists. Why is 
that? Do I need to extend some environment variable (add another dir)? I am 
using Python 2.5 on Windows 2000, but I also unsuccessfully tried it using 
Python 2.7 on Ubuntu 10 (however, I don't want to write the program on a linux 
system because I'll be using it on windows only). I also got the same error when 
I tried some other dll's.

Thanks in advance!

All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a fresh water system, and public health, what have the 
Romans ever done for us?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110307/90e1c0d1/attachment.html>

More information about the Tutor mailing list