CameraEvents icon indicating copy to clipboard operation
CameraEvents copied to clipboard

Invalid Syntax on Raspbian

Open eporedieis opened this issue 5 years ago • 3 comments

I've HA working on Raspbian. I've copied your folder in the custom_components, created the config file, then installed the requirements from the virtual environment but...when I try to execute the py file that error happens: python CameraEvents.py File "CameraEvents.py", line 282 except Exception,ivsExcept: ^ SyntaxError: invalid syntax

I seen that at line 282 there's a debug line but I can't understand the error. What could be wrong? Could you help me? Thank you very much!

eporedieis avatar Dec 16 '19 16:12 eporedieis

Version of python is probably the issue. What version is your venv?

psyciknz avatar Dec 16 '19 17:12 psyciknz

I'm using Python 3.7.0 (and Home Assistant 0.100.3 on Raspbian Buster)

eporedieis avatar Dec 16 '19 18:12 eporedieis

SO that's most likely the issue then. Exceptions changed between 2.7 and 3.7

On Tue, 17 Dec 2019 at 07:13, eporedieis [email protected] wrote:

I'm using Python 3.7.0 (and Home Assistant 0.100.3 on Raspbian Buster)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/psyciknz/CameraEvents/issues/6?email_source=notifications&email_token=ABI2I46VWZLQCTAQVNV5OOTQY7AL5A5CNFSM4J3MVOS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEG7S4RI#issuecomment-566177349, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABI2I4YOWMI5NWPSI7QW3IDQY7AL5ANCNFSM4J3MVOSQ .

psyciknz avatar Dec 16 '19 18:12 psyciknz