Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-zabbix and pyzabbix conflict #149

Open
AkvenJan opened this issue Apr 18, 2022 · 0 comments
Open

py-zabbix and pyzabbix conflict #149

AkvenJan opened this issue Apr 18, 2022 · 0 comments

Comments

@AkvenJan
Copy link

AkvenJan commented Apr 18, 2022

Why both of your modules use the same pip install folders? I have server with several running scripts. Some of the scripts use pyzabbix module, and another ones py-zabbix module (scripts from the internet, I don't have time to review every one of them). And one bunch of them is always not working because of using the same name from another module.

Modules installation paths:
py-zabbix (https://github.com/adubkov/py-zabbix)
/usr/local/lib/python3.8/dist-packages/py_zabbix-1.1.7.dist-info/*
/usr/local/lib/python3.8/dist-packages/pyzabbix/*
/usr/local/lib/python3.8/dist-packages/zabbix/*
pyzabbix (https://github.com/lukecyca/pyzabbix)
/usr/local/lib/python3.8/dist-packages/pyzabbix-1.0.0.dist-info/*
/usr/local/lib/python3.8/dist-packages/pyzabbix/*

I was able to fix it by installing pyzabbix, renaming its folder to pyzabbix2 and uninstalling and then installing py-zabbix and using "from pyzabbix2 import ZabbixAPI" for the first module
But this is fundamentally wrong!
Maybe you should somehow cooperate and use you own names/folders to avoid such conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant