You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught TypeError when importing PythonShell in TS linker file for running python script from Electron app. This also happens when using CommonJS with const PythonShell = require('python-shell').
Python code
No relevant python code. Error happens at the moment of import
Javascript code import { PythonShell } from 'python-shell';
and const PythonShell = require('python-shell');
Expected behaviour
No error. Allowing for creating python instance and running script in new process.
Actual behavior
Error message displayed in console.
Uncaught TypeError: (0 , util_1.promisify) is not a function
at node_modules/python-shell/index.js (index.ts:39)
at __require (chunk-OL3AADLO.js?v=3f0bc4c7:9)
at dep:python-shell:1
Other Information (please complete the following information):
Describe the bug
Uncaught TypeError when importing PythonShell in TS linker file for running python script from Electron app. This also happens when using CommonJS with
const PythonShell = require('python-shell')
.Python code
No relevant python code. Error happens at the moment of import
Javascript code
import { PythonShell } from 'python-shell';
and
const PythonShell = require('python-shell');
Expected behaviour
No error. Allowing for creating python instance and running script in new process.
Actual behavior
Error message displayed in console.
Other Information (please complete the following information):
Additional context
Package.json:
The text was updated successfully, but these errors were encountered: