ChristianTremblay / BAC0

BAC0 - Library depending on BACpypes3 (Python 3) to build automation script for BACnet applications
GNU Lesser General Public License v3.0
174 stars 99 forks source link

Doesn't work with Python 3.12 since asyncore is removed #459

Closed yyli closed 1 month ago

yyli commented 3 months ago

aysncore was removed thus BACpypes library can't be imported.

BACpypes3 seems to move to asyncio and I monkey patched my use case for now.

It seems you're already working on a BACpypes3 version but just wanted to file an issue for visibility

https://github.com/ChristianTremblay/BAC0/issues/457#issuecomment-2217777934

ChristianTremblay commented 3 months ago

https://github.com/ChristianTremblay/BAC0/tree/async

yyli commented 3 months ago

Do you know how I can depend on this in my project. It is possible if you there’s no version published?

dechamps commented 3 months ago

@yyli

It's usually trivial to build and install a pip package yourself from source - just clone the repo, checkout the branch and then run pip install /path/to/source/directory.

For those who want to stick to officially released versions, the workaround for this is to create an isolated Python 3.11 venv and use BAC0 there.

ChristianTremblay commented 1 month ago

I'm slowly preparing the pip version BAC0 will now be async, based on BACpypes3 Users will need to migrate their code or stick with the Legacy tagged version

ChristianTremblay commented 1 month ago

This is fixed. If you pip install BAC0 now it will install the new version that works with BACpypes3, python 3.10+