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

Error when importing the ssl library #3

Open
bytedreamer opened this issue Aug 28, 2017 · 2 comments
Open

Error when importing the ssl library #3

bytedreamer opened this issue Aug 28, 2017 · 2 comments

Comments

@bytedreamer
Copy link

I receive the following error when my python module attempts to import ssl.

zabbix_agentd [1890]: Error: error calling zabbix_module.zbx_module_init
zabbix_agentd [1890]: Error: /usr/lib/python3.4/lib-dynload/_ssl.cpython-34m-x86_64-linux-gnu.so: undefined symbol: PyExc_OSError
zabbix_agentd [1890]: Error: failed to initialize zabbix_module python module
zabbix_agentd [1890]: ERROR: cannot initialize module "libzbxpython3.so"
zabbix_agentd [1890]: ERROR: loading modules failed, exiting...

I ran the 'import ssl' from the python command prompt, and there is no error.

@hudecof
Copy link

hudecof commented Apr 6, 2018

I have got the same problem.
Actually this is more generic. When I try to load the PyCRL I have

zabbix_agentd [14220]: Error: error calling zabbix_module.zbx_module_init
zabbix_agentd [14220]: Error: /usr/local/lib/python3.5/dist-packages/pycurl.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyExc_ImportError
zabbix_agentd [14220]: Error: failed to initialize zabbix_module python module
zabbix_agentd [14220]: ERROR: cannot initialize module "python3.so"
zabbix_agentd [14220]: ERROR: loading modules failed, exiting...
[TEST] root@ditlcm09: /etc/zabbix/scripts # python3

Seems that there are some restrictions what could be used.

@paixaop
Copy link

paixaop commented Jun 17, 2018

Same for me, i get

Error: HTTPSConnectionPool(host='my.test.com', port=443): Max retries exceeded with url: /simple (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",))
zabbix_agentd [11027]: Error: failed to initialize zabbix_module python module
zabbix_agentd [11027]: ERROR: cannot initialize module "python3.so"
zabbix_agentd [11027]: ERROR: loading modules failed, exiting...

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

3 participants