[Machinekit] Re: python - ImportError: No module named 'hal'

2024-01-20 Thread klemen dovrtel
Hello everybody, I think I found the problem myself :) That particular python script was run from python3 (#!/usr/bin/env python3). I changed this to #!/usr/bin/env python2.7 and now I don't get this error message any more. Regards Klemen On Sat, 20 Jan 2024 at 17:55, klemen dovrtel wrote

[Machinekit] python - ImportError: No module named 'hal'

2024-01-20 Thread klemen dovrtel
Hello everybody, I am testing a simple passthrough python module. When I start $halrun and *halcmd: loadusr passthrough.py* I get an error message: *import halImportError: No module named 'hal'* Does anybody have an idea what is the problem when I try to load the python module from hal? When I

Re: [Machinekit] pru_generic.so: cannot open shared object file: No such file or directory

2023-05-12 Thread klemen dovrtel
>> shows the HAL system trying to load the HAL driver named: >> >> "prucode=/usr/lib/linuxcnc/rt-preempt/hal_pru_generic" >> >> ...you need something like: >> >> loadrt hal_pru_generic >> >> >> On 5/12/2023 1:06 PM, klemen dovrtel wrote:

Re: [Machinekit] pru_generic.so: cannot open shared object file: No such file or directory

2023-05-12 Thread klemen dovrtel
This is what i get: $ ldd /usr/lib/linuxcnc/rt-preempt/hal_pru_generic.so linux-vdso.so.1 (0xbeb23000) libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb6f2b000) libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e3d000) /lib/ld-linux-armhf.so.3 (0xb6f71000) But i am not sure what

Re: [Machinekit] pru_generic.so: cannot open shared object file: No such file or directory

2023-05-12 Thread klemen dovrtel
Thank you for your reply, I tried both options, but with no luck: 1. loadrt prucode=/usr/lib/linuxcnc/rt-preempt/hal_pru_generic pru=0 halname=hpg returns msgd:0 stopped rtapi:0 stopped rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --debug=1