zerotier / libzt

Encrypted P2P sockets over ZeroTier

Home Page:https://zerotier.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python3.6.8 undefined symbol: _ZN8ZeroTier12LinuxNetLinkD1Ev

DarkiT opened this issue · comments

i'am trying to create a program to list all the nodes that are connected to my network

see below a simple code from the documentation , which doesn't work .

hereby what i've tried so far

sudo apt upgrade

sudo apt update

tried to install a different version on libzt

no good

here is the code:
`import libzt

n = libzt.ZeroTierNode()
n.node_start()
n.net_join(0x1234567890abcdef)
client = libzt.socket(libzt.ZTS_AF_INET, libzt.ZTS_SOCK_STREAM, 0)
client.connect((remote_ip, remote_port))`
and here is the error :

Traceback (most recent call last):

File "/home/igalc/barilan/PythonScrtips/ProjectHomework/test/test8.py", line 1, in

import libzt

File "/usr/local/lib/python3.9/dist-packages/libzt/init.py", line 1, in

from .libzt import *

File "/usr/local/lib/python3.9/dist-packages/libzt/libzt.py", line 13, in

from . import _libzt

ImportError: /usr/local/lib/python3.9/dist-packages/libzt/_libzt.cpython-39-x86_64-linux-gnu.so: undefined symbol: _ZN8ZeroTier12LinuxNetLinkD1Ev

I have the exact same error on Arch Linux Python 3.8.

Some attention on this please? I'm trying to develop an application and I can't even get started since I can't import this module in any way.

commented

Same Occured On python 3.9

commented

please use old version

pip uninstall libzt
pip install libzt==1.4.2