Bug: Python Cannot Automatically Import JavaScript Functions Without Explicitly Importing metacall
Closed this issue ยท 7 comments
๐ Bug Report
In Python, when trying to import JavaScript functions, the import process fails unless we explicitly include import metacall at the top of the script. Without this explicit import, a "module not found" error occurs.
Expected Behavior
Python should be able to automatically import JavaScript functions without requiring the explicit inclusion of import metacall at the top of the script.
Current Behavior
Without writing import metacall at the beginning of the Python script, a "ModuleNotFoundError" is raised. If import metacall is added on top of the python script, the script work as expected.
Steps to Reproduce
In the Python script, do not include import metacall at the top.
Attempt to import and use JavaScript functions.
Observe the "ModuleNotFoundError."
- Add
import metacallat the top of the python script, and then It works smoothly.
Here is an example of the issue (see the screenshot below):
please assign this to me.
@vivekweb3 Sure, you can work on it. You can join our discord server as well to discuss.
Solved for windows: metacall/distributable-windows#30 (comment)
Linux solved: metacall/distributable-linux@cae5ed4
Windows seems to break the install: https://github.com/metacall/install/actions/runs/13041156256/job/36383111693
Testing Linux install: https://github.com/metacall/install/actions/runs/13058494320
Linux and windows work, only macos remaining: https://github.com/metacall/homebrew/actions/runs/13038778024/job/36375516377
