Error while importing local python file
Hi I was doing some experiements with python and mojo but when I tried to import the local file I got the following error:
Here is the code:
Python file (python_curl.py)
4 Replies
@Hammad Ali Have you tried adding the absolute path? I'm also not sure you need the
.py
on the end of module name. So something like:
I'm basing that on the sample code found here:: https://docs.modular.com/mojo/manual/python/#import-a-local-python-module
Python integration | Modular Docs
Using Python and Mojo together.
Thanks! That worked perfectly
Awesome! 👍