My main function is named main.py but I also have a utility.py (in the same directory) for my function.
For testing, my utility.py only contains: def simple_test(): print("Simple test function in utility.py")
In my main.py, I am trying to import with: from utility import simple_test
But it fails during exectution with: File "/usr/local/server/src/function/main.py", line 18, in <module> from utility import simple_test ModuleNotFoundError: No module named 'utility'
What is the correct syntax for importing from a separate file?
Recommended threads
- Error: Trying to install appwrite on sub...
``` [Error] Method: POST appwrite | [Error] URL: /v1/account appwrite | [Error] Type: Appwrite\Extend\Exce...
- JavaScript heap out of memory during bui...
I am running into heap out of memory when I am trying to build an Appwrite site. Usually this can be fixed by modifying the `max-old-space-size` configuration, ...
- client.ping() does not appear to work.
After upgrading to 1.8.0, I ran the `starter_for_flutter` and tested the ping. It failed with a "Server Error". I tried this again on my production instance (1...