-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
dynamic module does not define module export function (PyInit_commands) #62
Comments
Hello @nonimportant, thanks for submitting this! If you add the the import browsers
proc youtube* {.exportpy.} =
openDefaultBrowser("https://www.youtube.com/") Nimporter builds upon Nimpy to expose Nim to the Python interpreter. There's a lot of useful unit tests that show the full capabilities of Nimpy! I'll close this for now but please let me know if you encounter any other issues! 🙂 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to make a simple program using Python and Nim where the Python file calls a procedure that opens YouTube from the Nim file. And I get this error when importing the Nim file:
commands.nim:
main.py:
And I get this error when importing the Nim file:
Error Message:
Python Version:
Nim Version:
CC Version:
Installed CCs:
Also, if I just call something simple like an echo, or anything else, it throws the same error! In addition, this might not be important but I installed pipwin before running this code and nimporter used to work before so i wonder if those two are connected.
The text was updated successfully, but these errors were encountered: