alexandriajvt
alexandriajvt

Reputation: 1

Why am I getting the error that BAC0 has no attribute 'connect'

I am getting started with trying to retrieve information from BACnet/IP devices. I found out that the BAC0 module in python can be used for this. These 3 lines should return information but instead, I get an error that "module BAC0 has no attribute 'connect'. But I know for sure that the BAC0 modules does have this attribute. This error also occurs when I leave the .connect() arguments list blank. What am I doing wrong? I also have bacpypes module installed and I'm using python3.

enter image description here

I was expecting information about BACnet devices on my network.

Upvotes: 0

Views: 861

Answers (2)

NewCoder123
NewCoder123

Reputation: 1

You can try,

pip install pytz

Simply run your python script after installing pytz library.

Upvotes: 0

Steven Smethurst
Steven Smethurst

Reputation: 4614

It looks like you have imported the BAC0 library but you have not instantiated the class as "BACnet".

This is a programing language issue not a BACnet or BAC0 library issue

Upvotes: 0

Related Questions