Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
3.10
-
None
Description
I've tried to run zk-smoktest.py on latest Ubuntu 24.04 and with Python 3.12 and run into the following issue:
$ python zk-smoketest.py -h Traceback (most recent call last): File "/home/andor/git/zk-smoketest/zk-smoketest.py", line 22, in <module> import zkclient File "/home/andor/git/zk-smoketest/zkclient.py", line 17, in <module> import zookeeper, time, threading ImportError: /usr/local/lib/python3.12/dist-packages/ZooKeeper-0.4-py3.12-linux-x86_64.egg/zookeeper.cpython-312-x86_64-linux-gnu.so: undefined symbol: PyIOBase_Type
It turned out that PyIOBase_Type is deprecated and not available in Python 3.12.
Found the following workaround in a different project which might be useful for zkpython too.
https://github.com/inspired-solutions/pygraphviz/pull/1/files
Attachments
Issue Links
- links to