Git Product home page Git Product logo

Comments (7)

bdraco avatar bdraco commented on June 16, 2024

from hap-python.

timchurches avatar timchurches commented on June 16, 2024

According to this post orjson will not work with 32-bit python on a 32-bit linux OS: https://medium.com/geekculture/python-orjson-cb046b47ab8c

If that is true, it means the current version of HAP-python can't be deployed on Raspberry Pi 2 or Pi Zero W hardware, of which there are a lot still in use. It should work using 64-bit Raspberry Pi OS on Pi 3 or 4 or Pi Zero 2 (I'll test that when my Pi Zero 2 arrives).

from hap-python.

timchurches avatar timchurches commented on June 16, 2024

Would it be possible to substitute UltraJSON (json - see https://pypi.org/project/ujson/ ) for 32-bit deployment of HAP-python? ujson supports 32-bit builds, and although not as fast as orjson, it is still many, many times faster than the standard json in python, and faster than most other fast json libraries (with the exception of orjson).

from hap-python.

bdraco avatar bdraco commented on June 16, 2024

There did used to be a problem with 32bit but Home assistant has 1000+ of deployments with it on 32bit Linux so I think that link is outdated.

from hap-python.

bdraco avatar bdraco commented on June 16, 2024

orjson has been adding additional wheel builds lately, so they might accept a PR to add your arch to their build CI

ijl/orjson@3de9685

from hap-python.

bdraco avatar bdraco commented on June 16, 2024

32 bit support was added via ijl/orjson#220

from hap-python.

bdraco avatar bdraco commented on June 16, 2024

There is an issue that might help you build wheels on github instead ijl/orjson#278

from hap-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.