home-assistant-libs / netdisco

:mag_right: Python library to scan local network for services and devices.
Other
268 stars 147 forks source link

No module named 'netdisco.discovery'; #211

Closed sivai2i closed 6 years ago

sivai2i commented 6 years ago

Hi,

Installed netdisco using pip3 (ubuntu 16.04)

Getting the following error while running,

> Traceback (most recent call last):
>   File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
>     "__main__", mod_spec)
>   File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
>     exec(code, run_globals)
>   File "/home/ubuntu/siva/projects/I2I/netdisco_sample/netdisco.py", line 1, in <module>
>     from netdisco.discovery import NetworkDiscovery
>   File "/home/ubuntu/siva/projects/I2I/netdisco_sample/netdisco.py", line 1, in <module>
>     from netdisco.discovery import NetworkDiscovery
> ImportError: No module named 'netdisco.discovery'; 'netdisco' is not a package
balloob commented 6 years ago

This is not a problem with us, we publish it correctly. You have probably installed it incorrectly.