Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for arch64 (macOS -M1) #39

Closed
neodino opened this issue Dec 31, 2023 · 5 comments · Fixed by #38
Closed

Support for arch64 (macOS -M1) #39

neodino opened this issue Dec 31, 2023 · 5 comments · Fixed by #38
Assignees

Comments

@neodino
Copy link

neodino commented Dec 31, 2023

Describe the bug

Getting error bellow. Tried to build but got same error. Any idea?

ile "/bytewax/.venv/lib/python3.11/site-packages/proton_driver/__init__.py", line 2, in <module>
    from .client import Client
  File "/bytewax/.venv/lib/python3.11/site-packages/proton_driver/client.py", line 9, in <module>
    from .block import ColumnOrientedBlock, RowOrientedBlock
  File "/bytewax/.venv/lib/python3.11/site-packages/proton_driver/block.py", line 1, in <module>
    from .reader import read_varint, read_binary_uint8, read_binary_int32
  File "/bytewax/.venv/lib/python3.11/site-packages/proton_driver/reader.py", line 3, in <module>
    from .varint import read_varint
ImportError: dlopen(/bytewax/.venv/lib/python3.11/site-packages/proton_driver/varint.cpython-311-darwin.so, 0x0002): tried: '/bytewax/.venv/lib/python3.11/site-packages/proton_driver/varint.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/bytewax/.venv/lib/python3.11/site-packages/proton_driver/varint.cpython-311-darwin.so' (no such file), '/bytewax/.venv/lib/python3.11/site-packages/proton_driver/varint.cpython-311-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64'))

To Reproduce
Using the byte wax example from the repo
Expected behavior
Run ok.
Versions

  • Version of package with the problem. 0.2.10
  • Proton server version. Version can be obtained by running SELECT version() query. 1.3.29 revision 54459.
  • Python version. 3.11
@chenziliang
Copy link
Contributor

Thanks for reporting this. We will look into this.

@gangtao
Copy link
Collaborator

gangtao commented Jan 10, 2024

I made a quick test using mac m2 pro and I did not hit any error , maybe need to check it using m1 cpu specifically

python --version
Python 3.11.7
(.venv) gangtao@Gangs-MacBook-Pro timeplus % sysctl -n machdep. cpu. brand_string
12
12
12
12
Apple M2 Pro
0

@neodino
Copy link
Author

neodino commented Jan 11, 2024

@jovezhong
Copy link
Collaborator

BTW, @neodino I just updated the bytewax example, now you can simply start the docker compose to get a working live dashboard in Grafana to visualize the hackernews live feed. Please check https://github.com/timeplus-io/proton-python-driver/tree/develop/example/bytewax for details and let us know your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants