[BUG Report] libzt python bug

Hi There. Currently i am using Ubuntu 22.04 with python 3.9.5.
When i use Libzt on python. It occurs import error

And Same issues happend on github issues.

I thought it may be a bug, i tried to fix it but it depends on C/C++ so i gave up.
I wonder if u can check these bug .
Here are the logs and some relevant links.

root@localhost:~# python3.9
Python 3.9.5 (default, Nov 23 2021, 15:27:38) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libzt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.9/dist-packages/libzt/__init__.py", line 1, in <module>
    from .libzt import *
  File "/usr/local/lib/python3.9/dist-packages/libzt/libzt.py", line 13, in <module>
    from . import _libzt
ImportError: /usr/local/lib/python3.9/dist-packages/libzt/_libzt.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN8ZeroTier12LinuxNetLinkD1Ev
>>> 

Python3.6.8 undefined symbol: _ZN8ZeroTier12LinuxNetLinkD1Ev #180
Python: Circular import error #185

The Libzt version i use is libzt1.8.4
Thanks for ur attention.

1 Like

Use old version

pip install libzt==1.4.2