Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError #47

Open
eniak11 opened this issue May 31, 2020 · 1 comment
Open

AttributeError #47

eniak11 opened this issue May 31, 2020 · 1 comment

Comments

@eniak11
Copy link

eniak11 commented May 31, 2020

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'

@eniak11 eniak11 closed this as completed Jun 3, 2020
@eniak11 eniak11 reopened this Jun 3, 2020
@eniak11
Copy link
Author

eniak11 commented Jun 3, 2020

I decided to tinker with setting in Windows. I noticed I had 0.0.9 installed on Windows and the script was working without any problem. I pip uninstalled it. Then I installed 1.0.0. Now the same AttribueError in Windows as in Ubuntu. So it's not the OS problem. Thank you for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant