Guillaume Pichard
2011-03-25 20:14:29 UTC
Hello,
I am trying to use pytables with python.net. It is working great with python
alone. What I am doing with python.net is:
PythonEngine.Initialize();
PythonEngine.AcquireLock();
PyObject sys = PythonEngine.ImportModule("sys");
PyObject path = sys.GetAttr("path");
PyObject append = path.GetAttr("append");
PyObject[] a = new PyObject[1];
a[0] = new PyString("C:\\Python27\\Lib\\site-packages");
append.Invoke(a);
PyObject pyTables = PythonEngine.ImportModule("tables");
if (pyTables == null)
throw new PythonException();
The exception message is "ImportError : DLL load failed: Specified module
not found."
What could be the differences between python.net and python ? Is there any
specific path to add ?
Thanks a lot,
Guillaume.
I am trying to use pytables with python.net. It is working great with python
alone. What I am doing with python.net is:
PythonEngine.Initialize();
PythonEngine.AcquireLock();
PyObject sys = PythonEngine.ImportModule("sys");
PyObject path = sys.GetAttr("path");
PyObject append = path.GetAttr("append");
PyObject[] a = new PyObject[1];
a[0] = new PyString("C:\\Python27\\Lib\\site-packages");
append.Invoke(a);
PyObject pyTables = PythonEngine.ImportModule("tables");
if (pyTables == null)
throw new PythonException();
The exception message is "ImportError : DLL load failed: Specified module
not found."
What could be the differences between python.net and python ? Is there any
specific path to add ?
Thanks a lot,
Guillaume.