quatanium / python-onvif

ONVIF Client Implementation in Python
MIT License
470 stars 319 forks source link

I cannot start #71

Open ferrusqui opened 5 years ago

ferrusqui commented 5 years ago

Hi guys,

I'm sorry for my question, but I cannot start using the onvif library.

I use python 2.7, I installed onvif with pip, but I have problems with the very first line of my test:

from onvif import ONVIFcamera 

ImportError: cannot import name ONVIFcamera

I using Windows 10, I hope this is a stupid problem with a very simple solution, but I have no idea how to solve it.

Thanks

BR

Ferruccio

clickworkorange commented 5 years ago

Python 3 here, on Raspbian. I pip3 installed onvif-zeep (0.2.12) and am getting the same error. I checked that /usr/local/lib/python3.5/dist-packages/onvif/client.py defines the ONVIFCamera class, so I'm not sure what's going on.

ilsme commented 3 years ago

For those who faced the same problem, most probably you named your file 'onvif.py' which leads to importing itself not the original onvif.py from this library's module, just rename your file.

aectarine commented 3 years ago

ilsme. Are you genius?