-
Notifications
You must be signed in to change notification settings - Fork 171
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
Can't import RingEventListener #353
Comments
It looks like the Try to install again with |
There maybe something corrupted in those installs or with some of the dependencies. Could you trying installing ring_doorbell from scratch in a new virtual environment and then see if you can import RingEventListener from a python prompt? |
OK, I'll try that. Thanks. |
Hi, did this work in a virtual env? |
Sorry - got diverted to other stuff, so haven't yet had time to try this. Will let you know! |
I've upgraded to Python 3.9 and installed the [listen] version of the doorbell package, but I'm still not able to import the required class. Here are the first few lines of my code:
#!/usr/bin/env python
import sys
print("Here we go, version is ", sys.version_info)
import json
import getpass
import time
import asyncio
import struct
import RPi.GPIO as GPIO
import logging
from pathlib import Path
from pprint import pprint
from ring_doorbell import Ring, Auth
from ring_doorbell.exceptions import RingError
from oauthlib.oauth2 import MissingTokenError
from ring_doorbell.const import DINGS_ENDPOINT
from ring_doorbell.listen import can_listen
if can_listen:
print("Can listen")
else:
print("Can't listen")
from ring_doorbell.listen import RingEventListener
This is what I see in my Raspberry Pi terminal:
It's probably something really stupid that I'm doing, but I can't see it at the moment, and any help would be appreciated.
Jon
The text was updated successfully, but these errors were encountered: