سؤال

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?

هل كانت مفيدة؟

المحلول

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

نصائح أخرى

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?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top