b0mbays opened a new issue, #15477:
URL: https://github.com/apache/pulsar/issues/15477

   **Describe the bug**
   Hi, we're experiencing an import error when using Python 3.10 on OSX 11 and 
12. We're installing the python pulsar-client-2.10.0 and having the same error 
on two machines:
   
   ```Traceback (most recent call last):
     File "my-username/my-file", line 33, in <module>
       sys.exit(load_entry_point('my-entrypoint', 'console_scripts')())
     File "my-username/my-file", line 25, in importlib_load_entry_point
       return next(matches).load()
     File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/metadata/__init__.py",
 line 171, in load
       module = import_module(match.group('module'))
     File 
"/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/importlib/__init__.py",
 line 126, in import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
     File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
     File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 883, in exec_module
     File "<frozen importlib._bootstrap>", line 241, in 
_call_with_frames_removed
     File "my-username/my-file", line 7, in <module>
       from my-package import runner
     File "my-username/my-file", line 5, in <module>
       from setup import Setup
     File "my-username/my-file", line 17, in <module>
       from packages.pulsar.pulsar_client import Pulsar  # noqa: F401
     File "my-username/my-file", line 8, in <module>
       from pulsar import MessageId, Timeout, ConnectError, ConsumerType
     File "/my-directory/lib/python3.10/site-packages/pulsar/__init__.py", line 
103, in <module>
       import _pulsar
   ImportError: 
dlopen(/my-directory/lib/python3.10/site-packages/_pulsar.cpython-310-darwin.so,
 0x0002): symbol not found in flat namespace 
'__ZN5boost6python6detail13current_scopeE'
   ```
   
   If we switch to Python 3.8 or 3.9 this issue is resolved but we would really 
like to use python 3.10.
   
   Thank you
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to