Hello Team,
I upgraded n8n from 1.94.x to the latest version 1.98.1 and then today to 1.98.2
A workflow who was currently running without issue is now throwing an error about a python module that I’m not loading.
ModuleNotFoundError: Module 'os' is blocked The module 'os' is removed from the Python standard library in the Pyodide distribution due to browser limitations. See https://pyodide.org/en/stable/usage/loading-packages.html for more details.
The node having the issue is :
The fullstack error
{
"errorMessage": "ModuleNotFoundError: Module 'os' is blocked\nThe module 'os' is removed from the Python standard library in the Pyodide distribution due to browser limitations.\nSee https://pyodide.org/en/stable/usage/loading-packages.html for more details.\n",
"errorDetails": {},
"n8nDetails": {
"nodeName": "Extract eml",
"nodeType": "n8n-nodes-base.code",
"nodeVersion": 2,
"n8nVersion": "1.98.2 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"Error: ModuleNotFoundError: Module 'os' is blocked",
"The module 'os' is removed from the Python standard library in the Pyodide distribution due to browser limitations.",
"See https://pyodide.org/en/stable/usage/loading-packages.html for more details.",
"",
" at PythonSandbox.getPrettyError (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Code/PythonSandbox.ts:101:11)",
" at PythonSandbox.runCodeInPython (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Code/PythonSandbox.ts:85:15)",
" at PythonSandbox.runCodeEachItem (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Code/PythonSandbox.ts:51:27)",
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_12b981d6b49d407a163f4d5244314033/node_modules/n8n-nodes-base/nodes/Code/Code.node.ts:182:14)",
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1187:9)",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1536:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@[email protected][email protected][email protected]_/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2100:11"
]
}
}
I supposed that it was due to a community node I installed, I removed it and removed the ./.n8n/nodes/node_modules/aws-sdk/
Now I’m running out of ideas