apache / rocketmq-client-python

Apache RocketMQ python client
https://rocketmq.apache.org/
Apache License 2.0
271 stars 95 forks source link

Mac M2 装好环境后报以下错误 librocketmq.dylib是rocketmqV2.0.0版本下载的 #132

Open xzkzdx opened 1 year ago

xzkzdx commented 1 year ago

Mac M2 装好环境后报以下错误 librocketmq.dylib是rocketmqV2.0.0版本下载的

OSError: dlopen(/usr/local/lib/librocketmq.dylib, 0x0006): tried: '/usr/local/lib/librocketmq.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib/librocketmq.dylib' (no such file), '/usr/local/lib/librocketmq.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

xiang1030 commented 1 year ago

I am also MAC M2. Have you solved the problem

ifplusor commented 1 year ago

@xzkzdx @xiang1030 Are you install from pypi?

xzkzdx commented 1 year ago

pip install rocketmq-client-python, and then download rocketmq-client-cpp-2.0.0-bin

xiang1030 commented 1 year ago

Yes,All according to Readme.

ifplusor commented 1 year ago

I think the pre-compiled librocketmq binary in readme and pypi do not support M2 now, you can compile it from source and replace it. @xzkzdx @xiang1030