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

Orjson, requires a 64-bit Python with>3.8.5+and<3.9 #439

Open
fwebcc opened this issue Apr 26, 2023 · 13 comments
Open

Orjson, requires a 64-bit Python with>3.8.5+and<3.9 #439

fwebcc opened this issue Apr 26, 2023 · 13 comments

Comments

@fwebcc
Copy link

fwebcc commented Apr 26, 2023

Orjson, requires a 64-bit Python with>3.8.5+and<3.9
Cannot be used on embedded devices such as routers and some ARM devices
You can remove this library and use Json directly?

@bdraco
Copy link
Contributor

bdraco commented Apr 26, 2023

Json is too slow to meet iOS 16 requirements

orjson builds just fine on 32bit. Home assistant is using it.

@bdraco
Copy link
Contributor

bdraco commented Apr 26, 2023

There are 32 bit wheels at:

https://pypi.org/project/orjson/#files
And musl ones here
https://wheels.home-assistant.io/musllinux/

@fwebcc
Copy link
Author

fwebcc commented Apr 26, 2023

Thank you for your reply. I have tried, but I am using Asus88u CPU with armhf architecture, which unfortunately does not support it. They only support armv7 and armv6

@bdraco
Copy link
Contributor

bdraco commented Apr 27, 2023

armhf can mean different things depending on the os vendor. If its ARMv6 + musl you can use https://wheels.home-assistant.io/musllinux/orjson-3.8.10-cp311-cp311-musllinux_1_2_armv6l.whl

@fwebcc
Copy link
Author

fwebcc commented Apr 27, 2023

loog@RT-AC88U-2C70:/tmp/mnt/fwebcc/tmp# pip3 install orjson-3.8.10-cp311-cp311-musllinux_1_2_armv6l.whl
ERROR: orjson-3.8.10-cp311-cp311-musllinux_1_2_armv6l.whl is not a supported wheel on this platform.

@bdraco
Copy link
Contributor

bdraco commented Apr 27, 2023

Are you using glibc?

@bdraco
Copy link
Contributor

bdraco commented Apr 27, 2023

That wheel is for musl + python 3.11

@bdraco
Copy link
Contributor

bdraco commented Apr 27, 2023

@fwebcc
Copy link
Author

fwebcc commented Apr 27, 2023

Thank you. I'll try upgrading to Python 3.10 later now python3.9

@fwebcc
Copy link
Author

fwebcc commented Apr 27, 2023

libc-2.23.so

@bdraco
Copy link
Contributor

bdraco commented Apr 27, 2023

You need glibc wheels. It doesn't look like anyone is already building thoose

You can fork orjson and add whatever qemu arch you want here
https://github.com/ijl/orjson/blob/c2514ab9ecdb9d42945f3fc6e18475b88bef8ec2/.github/workflows/linux.yaml#L213

And than use github actions to build them or send them a PR

@fwebcc
Copy link
Author

fwebcc commented Apr 27, 2023

@bdraco
Copy link
Contributor

bdraco commented Apr 27, 2023

I opened a test PR to see if armv6 can be built that way as well
bdraco/orjson#1
It will take a few hours to get a result

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

No branches or pull requests

2 participants