Rennbon / pyhikvision

hikvision-sdk for Python3 in action
MIT License
286 stars 47 forks source link

callback error #4

Closed jakkritz closed 3 years ago

jakkritz commented 4 years ago

When I ran face_captured.py on Ubuntu, I got this:

Traceback (most recent call last):
  File "face_captured.py", line 33, in <module>
    data = adapter.setup_alarm_chan_v31(callbacks.msg_callback_v31(face_captured_cb), None)
TypeError: argument must be callable or integer function address

Also instant_preview.py

Traceback (most recent call last):
  File "face_captured.py", line 33, in <module>
    data = adapter.setup_alarm_chan_v31(callbacks.msg_callback_v31(face_captured_cb), None)
TypeError: argument must be callable or integer function address

Any idea what went wrong?

Thanks,

PS. I'm forking to translate it into English. Hope it's ok with you.

Rennbon commented 4 years ago

It's ok now, I didn't debug it well before.

ghost commented 4 years ago

When I ran sdk_state.py on Ubuntu, I got this error:

loop[2] find 2 mac and 2 ip ERROR:root:NET_DVR_Login_V40 用户登录失败: the error code is 29 ERROR:root:common_start 失败: the error code is29 ERROR:root:初始化Adapter失败

Any idea what went wrong?

Thanks

Rennbon commented 4 years ago

When I ran sdk_state.py on Ubuntu, I got this error:

loop[2] find 2 mac and 2 ip ERROR:root:NET_DVR_Login_V40 用户登录失败: the error code is 29 ERROR:root:common_start 失败: the error code is29 ERROR:root:初始化Adapter失败

Any idea what went wrong?

Thanks

The offical SDK support for Ubuntu is not very friendly.