
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
- Functions Failing Due to Installed Depen...
Hi team! Before anything, I am on the so far while we're in the planning phase of the app, and will be upgrading to pro soon. If there's a possibility that this...
- The new Bulk API and Realtime updates
It seems that the new Bulk API doesn't actually send realtime updates which is making a huge problem for me. I also wanted to know different is it deleting mul...
- 413 Entity Too Large bucket file upload ...
Any file 2mb+, only been successful with uploading XXX KB sized files. Otherwise request returns 413. With a bucket max file size of 50mb
