Skip to content

AttributeError #47

Open
Open
@eniak11

Description

I am setting up a script in a server to notify me the status of the controller. The following is the beginning of the program:

#!/usr/bin/python3

import time
import smtplib, ssl
import os
import sys

from raincloudy.core import RainCloudy
raincloudy = RainCloudy(my_email, my_password)
status = raincloudy.controller.faucet.status
battery = raincloudy.controller.faucet.battery

I first did this in Windows, Python 3.8.3 and it ran without any issue. Then, I tested it in Ubuntu 20.04 LTS on a Raspberry Pi, Python 3.8.2 but got the error:

raincloudy.controllers
[<RainCloudyController: 5*********>]
status=raincloudy.controller.faucet.status
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'RainCloudy' object has no attribute 'controller'
battery=raincloudy.controller.faucet.status
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'RainCloudy' object has no attribute 'controller'

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions