-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Python Cannot Automatically Import JavaScript Functions Without Explicitly Importing metacall #539
Comments
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 |
🐛 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
import metacall
at the top of the python script, and then It works smoothly.Here is an example of the issue (see the screenshot below):
The text was updated successfully, but these errors were encountered: