| | |
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 |
address advanced aliased anydbm bash beginner bits calling casino changecolor clear command conversion convert corners count csv cturtle cursor curves definedlines dictionary digital dynamic dynamically events examples excel external file float format frange function gui handling hints homework i/o iframe import input java line linux list lists loan loop matching mouse multiple number numbers obexftp output parsing path port prime programming projects py py2exe pygame python random rational raw_input recursion recursive return scrolledtext searchingfile shebang signal singleton string strings tails terminal text threading time tkinter tlapse tooltip tuple tutorial type ubuntu unicode urllib urllib2 valueerror variable web-scrape whileloop word wxpython






