JoelBender / bacpypes

BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces.
MIT License
302 stars 129 forks source link

Python 3.9.9 issue #439

Closed ELASHALL closed 2 years ago

ELASHALL commented 2 years ago

i got this error!

File "bacnet/bacpypes/setup.py", line 26, in raise EnvironmentError("unsupported version of Python") OSError: unsupported version of Python python -V
Python 3.9.9 would you please help me how to fix this? should i downgrade my python to older version?

JoelBender commented 2 years ago

Check out (clone) the project and create a symlink (alias) to the py34 directory:

$ ln -s py34 py39

And then run python3 setup.py install. There shouldn't be anything that prevents it from working, but it has an "old school" socket event loop (in the run() function in the core module) and doesn't use async/await. The next version, BACpypes3, is asyncio based, Python3.8+.

ELASHALL commented 2 years ago

the same error still show up please , how to download BACpypes3?

JoelBender commented 2 years ago

Ah! I forgot that there is a version to directory dictionary in setup.py because I'm accustomed to using symlinks. Edit that and you should be good to go. BACpypes3 has not been released yet.

ELASHALL commented 2 years ago

thank you i add this: (3, 9): 'py39', it works fine thank you sir