Skip to content
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

Open
RohanKrMahato opened this issue Dec 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@RohanKrMahato
Copy link

🐛 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 metacall at the top of the python script, and then It works smoothly.

Here is an example of the issue (see the screenshot below):

Screenshot 2024-12-17 004332

@RohanKrMahato RohanKrMahato added the bug Something isn't working label Dec 18, 2024
@vivekweb3
Copy link

please assign this to me.

@RohanKrMahato
Copy link
Author

RohanKrMahato commented Dec 19, 2024

@vivekweb3 Sure, you can work on it. You can join our discord server as well to discuss.

@viferga
Copy link
Member

viferga commented Jan 29, 2025

Solved for windows: metacall/distributable-windows#30 (comment)

@viferga
Copy link
Member

viferga commented Jan 30, 2025

@viferga
Copy link
Member

viferga commented Jan 30, 2025

@viferga
Copy link
Member

viferga commented Jan 31, 2025

Linux and windows work, only macos remaining: https://github.com/metacall/homebrew/actions/runs/13038778024/job/36375516377

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants