IronPython doesn't support CPython's .pyd files, unfortunately.
Python modules not working
-
30-06-2022 - |
Вопрос
I'm currently writing a C# App which should use a Python script for some tasks.
I have some modules in my Python "site-packages" folder for controlling an Alebaran NAO robot, and copied them to the IronPython "site-packages" folder. But when I try to import the naoqi file, it says:
No module named _inaoqi
There is an _inaoqi.pyd in the folder, too.
Anybody any ideas on this?
Решение
Другие советы
Is the site-packages folder in the python path?. Open a python interpreter and write:
import sys
print sys.path
If the folder is not in the list you can add it following the instructions of this other answer: How to add to the pythonpath in windows 7?
Не связан с StackOverflow