volttron icon indicating copy to clipboard operation
volttron copied to clipboard

Upgrade Bacpypes to latest version

Open bonicim opened this issue 4 years ago • 1 comments

Description of Issue

Volttron is currently pinned to use the dependency, Bacpypes == 0.16.7, which is not compatible with Python3. Since Python2.7 has already been sunset and Volttron requires Python 3.6, the Bacpypes dependency also needs to updated. More importantly, some of Volttron's Bacnet scripts, which use Bacpypes under the hood, can potentially fail because Volttron is calling those scripts using Python3. For example, grab_bacnet_config.py can fail because the script is executing incompatible Python 2.7 code from Bacpypes using Python 3. See #2818

UPDATE: For more guidance on updating the Bacpypes library, see Technology Robusness category in #2925.

There are two main places where bacpypes is used: BacnetProxyAgent and Volttron's BACnet scripts.

On a different note, what is to be gained from upgrading bacpypes to the latest release vis-a-vis the effort to upgrade it within the Volttron Driver Framework?

Affected Version

develop

bonicim avatar Oct 18 '21 17:10 bonicim

Hey @bonicim it looks like I was conflating conversations with Joel about what was coming down the pipe (pype?) with what's actually done, it looks like even the most recent release is still based on asyncore. Asyncore is not scheduled for deprecation until 3.12, but that's not too far away.

acedrew avatar Apr 29 '22 00:04 acedrew