Python module not found in Node Code

I read this 1 article Python Support and Release Versions but why when i deploy it doesn’t have that feature

Information n8n setup

  • n8n version: 1.0.5
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via Docker
  • Operating system:Ubuntu

Welcome to the community @Hoang_Vu !

Not sure I understand. The screenshot you posted shows the Python option.

Hey @Hoang_Vu,

In the 1.0 release we made a change so that it automatically imports the module if you include it in an imports in your code.

You can find the list of supported here: Packages built in Pyodide — Version 0.23.4

Here is an example module not included in pyodide

Hi @jan
This is a picture from an article i attached above and i see there is support for declaring modules for python.

Hey @Hoang_Vu,

We removed the python modules field as they are now imported automatically if they are supported, You can find the support list here: Packages built in Pyodide — Version 0.23.4

Request is not on the supported list so I would expect that to fail.

Hi @Jon ,
It’s a bit inconvenient when Pyodide only supports a few modules

Hey @Hoang_Vu,

Even with the previous Python Modules field it would only pull in what Pyodide supports so the functionality itself has not really changed.

We use Pyodide because it sandboxes the code and protects the instance, While this may not be ideal for everyone it does allow python to be used and you were after any specific modules you could ask the maintainer of the module to support pyodide.

Alternatively if you didn’t care about the python sandbox you could build your own docker image that includes python and the modules you want to use then use them from the execute command node.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.