Thank you for your fast reply! I'm trying to import the PyNacl library (https://github.com/pyca/pynacl). When I use your suggested method, I get an error message saying, that PyNacl cannot find its own imports anymore. For instance, in the public.py file of the module, it calls "import nacl.bindings". But after I imported the modul in my project, I get an error message stating "No module named 'nacl'". Does that mean the PyNacl library is not compatible?
Thanks and Cheers
Recommended Posts
ahoeben 2,011
You can - in most cases - include the module with your plugin and import it from there. It depends a bit on what module it is how much work it is to include it with your plugin.
The OctoPrint plugin contains two pure-Python modules, and here is how they are imported:
https://github.com/fieldOfView/Cura-OctoPrintPlugin/blob/3.5/OctoPrintOutputDevicePlugin.py#L27
Link to post
Share on other sites