I have certainly had success with the link that you quoted. You will need to add all the packages that you need, including any pre-reqs / co-reqs.
Subject: |
RE: Zenoss 4.2.5 - install extra libraries for use in a zenpack |
Author: |
Pheripheral Pheripheral |
Posted: |
2019-03-20 06:22 |
Thanks
I gave the 'include libraries in the zenpack' a go but did not quite get it working as still ran into some issues where code was pulling in the wrong version of things, mostly the six.py stuff.
Eventually rewoked the code to use a different encryption library and found a cleaner solution that needed less dependencies/ dependencies that did not interfer with the existing zenoss code (essentially using pycryptodome library instead of cryptography)
------------------------------
Pheripheral Pheripheral
------------------------------
Subject: |
RE: Zenoss 4.2.5 - install extra libraries for use in a zenpack |
Author: |
Jay Stanley |
Posted: |
2019-04-03 08:23 |
I always add my libs to my ZenPack under a directory lib, then import that copy. Then I never have to worry about the lib being installed or not, everything needed is contained in the ZenPack.
For example, if I needed python requests, I would snag the repo and then add it to ZenPacks.jstanley.MyZenPack/ZenPacks/jstanley/MyZenPack/lib
------------------------------
jstanley
------------------------------