ReolinkCameraAPI / reolinkapipy

Reolink Camera API written in Python 3.6
GNU General Public License v3.0
207 stars 46 forks source link

Get_snap error #41

Closed socpl425 closed 3 years ago

socpl425 commented 3 years ago

Hi, Running on windows, python3.9.1 I got an issue when using get_snap. I dont have the error message handy, but it produced error on random.choices function. I changed the AppData\Roaming\Python\Python39\site-packages\reolinkapi\mixins\stream.py file:

from random import random

import random And now its downloading snapshot.

Benehiko commented 3 years ago

PR's are welcome :)

chripell commented 3 years ago

PR sent :-)