KonradIT / gopro-py-api

Unofficial GoPro API Library for Python - connect to GoPro via WiFi.
MIT License
1.38k stars 211 forks source link

Hero3+, error concatentating strings in overview #167

Open jimdavcon opened 3 years ago

jimdavcon commented 3 years ago

Describe the bug Using examples with Hero3+, getting TypeErrors in call to overview method. Seems to complete the wifi connect and infoCamera and getStatus both complete successfully.

To Reproduce Using this code with miniconda:

`from goprocam import GoProCamera from goprocam import constants

print("get object...") gpCam = GoProCamera.GoPro(constants.auth)

print("get overview...") gpCam.overview()`

Screenshots Above python script produces the following output..

python go2.py get object... Connected to 10.5.5.9 get overview... camera overview current mode: Video current video resolution: 720p current photo resolution: 5mp m Traceback (most recent call last): File "go2.py", line 8, in gpCam.overview() File "C:\Users\Jim\miniconda3\lib\site-packages\goprocam\GoProCamera.py", line 1512, in overview print("current timelapse interval: " + self.parse_value(constants.Hero3Status.TimeLapseInterval, TypeError: can only concatenate str (not "NoneType") to str

Desktop (please complete the following information):

pgregg88 commented 3 years ago

I get a similar error in a linux environment

from goprocam import GoProCamera from goprocam import GoProCamera print("get object...") get object... gpCam = GoProCamera.GoPro(constants.auth) Connected to 10.5.5.9 gpCam.overview() camera overview current mode: Photo current video resolution: WVGA current photo resolution: 7mp w Traceback (most recent call last): File "", line 1, in File "/home/ubuntu/.virtualenvs/goprocam/lib/python3.6/site-packages/goprocam/GoProCamera.py", line 1513, in overview TypeError: must be str, not NoneType