Question

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?

Était-ce utile?

La solution

IronPython doesn't support CPython's .pyd files, unfortunately.

Autres conseils

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?

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top