It actually turns out that pip installing is not necessary at all. It will always download them automatically and cache. So will then also work with Docker. We are currently in the process of making that work correctly.
Hi, super interested in this also and running into the issue with adding modules, should these be added auto in the 1.0 release as I tried it and getting the same error shown by Valerian above. I’m running N8n via Cloudron if that info is anything valuable.
Got fixed with this PR 5 days ago, but it did not get released with a version yet. You can however get it via the experimental nightly build docker.n8n.io/n8nio/n8n:nightly
Hey there, with no intention to change the topic of the conversation, I was wondering. I recently upgraded to 1.0.5 to check on the python feature. If I go ahead and select Python as an language and leave or add new code I never get to see the param to add modules that was described above. Should I be doing something different?
@jespinoza Ah, yes, that is not necessary anymore in the production version (which you are using now). You can simply import them (as long as they are supported) and they will be downloaded automatically.
Hi @jan, thanks for the work, i have one question, as stated in the docs of pydiode, it is possible to import new libraries, even install packages from pip: Loading packages — Version 0.23.4
Is there any hope that this will be available in future versions? I’m now using an alternate n8n source where it has python available as a new node “python node”, and as i make available libraries using “pip3 install …” in the dockerfile i can use custom community python packages from pip, as for example pypsrp (a module to interact with winrm protocol). Because of this i cant migrate to the available code node with python support (v1.0) as it only support the preinstalled pydiode libraries and cant seem to import new ones.
Honestly wanted to check that out properly for a while now but never found time. That is why it is currently not officially supported also would we then still have to Witte docs for it. Theoretically should it however work. So you can give it a try.
Hi @jan , thanks for your response, but how theoretically should we import pydiode packages in n8n?
Running a nodejs node previous to the code-python node?
Could it be done generally available for all code-python node instances in n8n, like in a dockerfile deployment?