| | |
importing PYD files
![]() |
•
•
Join Date: Jan 2008
Posts: 4
Reputation:
Solved Threads: 0
You'll have to excuse me, I'm a complete python newbie, but am trying to import a pyd file that I've been sent by a friend. He assures me the file works fine on his computer but when I run , after having placed the pyd file in the c:\Python\DLLs folder and added the directory to the environment variable, I get the following error
"ImportError: DLL load failed: The specified module could not be found."
I've tried other PYD files from the same directory and they work, so I don't think it's a problem with the directory. Would it matter if my friend compiled this on a different version of Python?
Thanks
Python Syntax (Toggle Plain Text)
import myfile.pyd
"ImportError: DLL load failed: The specified module could not be found."
I've tried other PYD files from the same directory and they work, so I don't think it's a problem with the directory. Would it matter if my friend compiled this on a different version of Python?
Thanks
•
•
Join Date: Oct 2008
Posts: 45
Reputation:
Solved Threads: 6
try this before the import
Python Syntax (Toggle Plain Text)
import sys sys.path.append("c:\Python\DLLs")
I wish I had something cool to put here...
![]() |
Other Threads in the Python Forum
- Previous Thread: C to Python Translation anyone?
- Next Thread: WX.ID - Anywhere to get list?
| Thread Tools | Search this Thread |
accessdenied advanced aliased argv beginner bits calling casino change command convert count csv cturtle cursor def dictionary digital dynamic dynamically enter event examples external file float format frange function google gui hints homework i/o iframe import input jaunty java keyboard lapse line linux list lists loop microphone mouse movingimageswithpygame multiple newb number numbers obexftp output parameters parsing path port prime programming projects py py2exe pygame pygtk pyopengl python random recursion remote return reverse scrolledtext session signal simple skinning sprite string strings syntax terminal text threading time tkinter tlapse tuple tutorial ubuntu unicode unit urllib urllib2 variable voip web-scrape whileloop wxpython






