How to use a .pyd

  • Thread starter Liu Kun, SLC ICM (BJ)
  • Start date
L

Liu Kun, SLC ICM (BJ)

Hello,

I want to use a method from _xxx_yyy.pyd, but I can not use import to load this file, how to use .pyd in python interpreter?

Best Regards
Liu Kun
 
J

John Roth

Liu Kun said:
Hello,

I want to use a method from _xxx_yyy.pyd, but I can not use import to
load this file, how to use .pyd in python interpreter?

What happens when you try to use import? Please tell
us the exact statement you used, and the error traceback.

John Roth
 
D

Daniel Dittmar

Liu said:
I want to use a method from _xxx_yyy.pyd, but I can not use
import to load this file, how to use .pyd in python interpreter?

You *have* to import the .pyd file. If this fails, then probably the .pyd
file has been compiled for a different Python version.

On Windows, a typical error message for this would beFatal Python error: PyThreadState_Get: no current thread

abnormal program termination

If you can't import te .pyd file because it's location isn't in sys.path,
then simply append the directory to sys.path.

Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top