Need some help understanding PyD

Saurabh Das via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jan 8 22:22:14 PST 2017


PS: Noticed something off. My python installation is 3.4.3:
Python 3.4.3 (default, Sep 14 2016, 12:36:27)
[GCC 4.8.4] on linux

However when I run:
     context.py_stmts("import sys");
     context.py_stmts("print(sys.version)");

I get:
3.4.0 (default, Apr 11 2014, 13:08:40)
[GCC 4.8.2]


Also, when I import numpy from python3, it works, but if I do:
     context.py_stmts("import numpy");

I get this error:
pyd.exception.PythonException at source/app.d(20):
ImportError: 
/usr/lib/python3.4/lib-dynload/_ctypes.cpython-34m-x86_64-linux-gnu.so: undefined symbol: _PyTraceback_Add
----------------



More information about the Digitalmars-d-learn mailing list