Python3 halmodule.cc
22 Jan 2021 17:20 - 22 Jan 2021 18:03 #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:
Debian Buster, Linuxcnc 2.9 ~pre0 built from source with
Am I doing something wrong?
I tried:
> . '/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
> ./autogen.sh
> ./configure --with-realtime=uspace
> make
Am I doing something wrong?
Last edit: 22 Jan 2021 18:03 by fixer.
Please Log in or Create an account to join the conversation.
22 Jan 2021 18:20 #196253
by cmorley
Replied by cmorley on topic Python3 halmodule.cc
Please Log in or Create an account to join the conversation.
22 Jan 2021 19:00 #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
Had to install python3-tk and configure with ./configure --with-python=python3 --with-boost-python=boost_python3-py37
Please Log in or Create an account to join the conversation.
Time to create page: 0.214 seconds