Here is a recipe that should get you through:

# check installed machinekit debs(from cloudsmith):
apt search machinekit

    machinekit-hal/buster,now 0.4.21003-1.git39389db84~buster arm64 
[installed]
#if not do:
    
sudo apt purge emcapplication machinekit-hal machinekit-hal-dev
sudo apt autoremove

sudo apt update
sudo apt install machinekit-hal

#double check:
apt search machinekit
    machinekit-hal/buster,now 0.4.21003-1.git39389db84~buster arm64 
[installed]

compile by copy pasting the instructions from the first post here(just 
ignore the rest of the thread):

https://github.com/machinekit/EMCApplication/issues/8#issue-728890843

#notice this line:
    debian/configure machinekit-hal=0.4.21003-1.git39389db84~$(lsb_release 
-cs) no-docs
#the machinekit-hal version that works with python3 

Best wishes
Michael B.

On Thursday, November 5, 2020 at 10:02:29 PM UTC+1 Michael Brown wrote:

> I can now replicate that error message reason:
> I just ran the python3 compiled version of EMCapplication with an/the 
> older python2 version of machinekit hal.
>
>
> On Thursday, November 5, 2020 at 6:56:13 PM UTC+1 Claudio Lorini wrote:
>
>> I'm running a bare to the bone configuration with 1 axis/joint, trivkins, 
>> simulated hw (attached)
>> the steps i do:
>>
>> *>  export DEBUG=5*
>> *> source /home/zus/EMCApplication/scripts/rip-environment*
>> *> linuxcnc*
>>
>> and select the 'singleaxis' configuration.
>>
>> running the first configuration (Sample configurations -> sim -> axis -> 
>> axis) i get:
>> ...
>> /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal:43: Function 
>> 'near_speed' added to thread 'servo-thread', rmb=0 wmb=0
>> /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal:44: Function 
>> 'sim_spindle' added to thread 'servo-thread', rmb=0 wmb=0
>> Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
>> 4:rtapi_app:2721:user pid=2721 flavor=rt-preempt gcc=8.3.0 git=unknown
>> Traceback (most recent call last):
>>   File "/usr/bin/hal_manualtoolchange", line 11, in <module>
>>     import linuxcnc, hal
>> ImportError: /home/zus/EMCApplication/lib/python/linuxcnc.so: *undefined 
>> symbol: PyUnicode_FromString*
>> /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal:1: 
>> hal_manualtoolchange exited without becoming ready
>> Shutting down and cleaning up LinuxCNC...
>> ....
>>
>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/machinekit/25721e06-735e-4d23-b29a-5f3276cd9b2dn%40googlegroups.com.

Reply via email to