setup.py doesn't specify the utils package
hukka opened this issue · 2 comments
hukka commented
https://github.com/sensu-plugins/sensu-plugin-python/blob/master/setup.py#L8 doesn't list the utils subpackage, breaking importing SensuPlugin after pip install sensu-plugin
:
$ python sensu.py
Traceback (most recent call last):
File "sensu.py", line 2, in <module>
from sensu_plugin import SensuPlugin
File "/home/hukka/.pyenv/versions/browsertests/lib/python3.6/site-packages/sensu_plugin/__init__.py", line 7, in <module>
from sensu_plugin.handler import SensuHandler
File "/home/hukka/.pyenv/versions/browsertests/lib/python3.6/site-packages/sensu_plugin/handler.py", line 23, in <module>
from sensu_plugin.utils import get_settings
ModuleNotFoundError: No module named 'sensu_plugin.utils'
$ ls /home/hukka/.pyenv/versions/browsertests/lib/python3.6/site-packages/sensu_plugin
check.py exithook.py __init__.py plugin.py __pycache__
compat.py handler.py metric.py pushevent.py test
barryorourke commented
Thanks for highlighting this issue and the other one that you submitted, I'll hopefully have time later today to get these sorted out.
barryorourke commented
That's 0.4.1 uploaded to PyPI, thanks again for reporting this :)