VeroFess / PalWorld-Server-Unoffical-Api

A PalWorld Server API like minecraft bukkit, not finish yet
275 stars 17 forks source link

Can you give me some examples of how to use this library? #31

Open acelan opened 9 months ago

acelan commented 9 months ago

I'm new to this kind of library and tried to load it from python, and encountered below error. Do you have any example references available, whether they are in C/C++ or Python? Thanks.

steam@c9860658a0fa:/palworld$ python3
Python 3.9.2 (default, Feb 28 2021, 17:03:44) 
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> 
>>> psua = cdll.LoadLibrary("./libpal-plugin-loader.so")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.9/ctypes/__init__.py", line 452, in LoadLibrary
    return self._dlltype(name)
  File "/usr/lib/python3.9/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: ./libpal-plugin-loader.so: undefined symbol: _ZN6google4base21CheckOpMessageBuilderC1EPKc