fwestenberg / reolink

Python Reolink package
MIT License
86 stars 24 forks source link

Install Issue #72

Closed ghost closed 3 years ago

ghost commented 3 years ago

How can i install the Api on a RaspberryPi? Please Show me the correct way. Thank you

cpainchaud commented 3 years ago

pip install reolink

ghost commented 3 years ago

aiohttp requires Python '>=3.4.2' but the running Python is 2.7.16

cpainchaud commented 3 years ago

Install et use python3.4+ then

ghost commented 3 years ago

pip3 install reolink My Code: import reolink from reolink.camera_api import Api if name == "main": api = reolink.camera_api.Api('192.168.178.xx', 80, 'admin', 'xxxxxx')

Result: pi@raspberrypi:~ $ python3 reo.py Traceback (most recent call last): File "reo.py", line 3, in from reolink.camera_api import Api File "/home/pi/.local/lib/python3.7/site-packages/reolink/camera_api.py", line 8, in from . import typings File "/home/pi/.local/lib/python3.7/site-packages/reolink/typings.py", line 3, in from typing import TypedDict ImportError: cannot import name 'TypedDict' from 'typing' (/usr/lib/python3.7/typing.py)

cpainchaud commented 3 years ago

Hi,

Use python 3.8 or install typing_extensions. You might want to google a bit your errors before asking for help.

ghost commented 3 years ago

Ok, Thank You