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 <k.dovr...@gmail.com> wrote: > 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 start $python instead and try to *>>> > import hal* within python, I get no complaints about missing hal module. > > Regards > Klemen > > -------------------------- > My system: > $uname -a > Linux beaglebone 4.19.120-bone-rt-r50 #1stretch PREEMPT RT Fri May 8 > 22:45:31 UTC 2020 armv7l GNU/Linux > > $ python -V > Python 2.7.13 > > passthrough.py module: > https://linuxcnc.org/docs/html/hal/halmodule.html > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to machinekit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/CAAD%3DYA%3DBgg04jEsnaRkF5aXhnjrskbEjALgAuCpnr0iDSmt%2BOg%40mail.gmail.com.