Python3 halmodule.cc

More
5 years 9 months ago #196246 by fixer
Python3 halmodule.cc was created by fixer
Can I use Python HAL interface with Python 3 yet? I can see some py3c headers and version checking in src/hal/halmodule.cc, but it doesn't seem to work for me.

I tried:
Code:
> . '/rip-environment' > python3 Python 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import hal Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/linuxcnc-master/lib/python/hal.py", line 30, in <module> import _hal ImportError: /linuxcnc-master/lib/python/_hal.so: undefined symbol: _Py_ZeroStruct >>>

Debian Buster, Linuxcnc 2.9 ~pre0 built from source with
Code:
> ./autogen.sh > ./configure --with-realtime=uspace > make

Am I doing something wrong?

Please Log in to join the conversation.

More
5 years 9 months ago #196253 by cmorley
Replied by cmorley on topic Python3 halmodule.cc

Please Log in to join the conversation.

More
5 years 9 months ago #196261 by fixer
Replied by fixer on topic Python3 halmodule.cc
Thanks!
Had to install python3-tk and configure with ./configure --with-python=python3 --with-boost-python=boost_python3-py37

Please Log in to join the conversation.

Time to create page: 0.138 seconds
Powered by Kunena Forum