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

import myfile.pyd

, 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

4
Contributors
7
Replies
9
Views
8 Years
Discussion Span
Last Post by tsmets
0

I've tried that and I get the same error message. Any thoughts?

0

It could be an issue with the python versions, but that isn't usually the error you get when that is the case.

0

Excellent - it's now working. Thanks very much for your help, guys

0

what was the solution?

The pyd file must be somewhere in the PYTHONPATH.
So adding the folder like suggested above, did actually added the "DLL" folder to the python path :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.