-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Bug Report: Appwrite Cloud Python 3.9 function module not found in tarball #6051
Comments
Hi @tripolskypetr , just to be sure, for requests, have you used this? https://pypi.org/project/requests/ |
Also, @tripolskypetr , about the second thing related to error logs, yes, we are aware of it and this should be fixed in 1.4. Adding PR here: #5725 |
Nope, just used appwrite sdk for requests |
Ok cool, I just confirmed and that is also fixed in 1.4, here is a relevant PR: open-runtimes/open-runtimes#137 |
Closing this issue following the above comments. |
馃憻 Reproduction steps
I am trying to import
repository.py
fromindex.py
It works on a local mock environment
But when I deploy that function to appwrite cloud It fails with
ModuleNotFoundError
馃憤 Expected behavior
Looks like python function container bootstrap contains these files
If I
listdir
theuserlib
folder I will get my actual tarball containmentUsing
sys.path.append("userlib")
fixed the import problem. That should be done by default inserver.py
馃憥 Actual Behavior
Please add
sys.path.append("userlib")
inserver.py
to allow code spit between multiple filesPlease fix empty logs for module import error in python functions
馃幉 Appwrite version
Appwrite Cloud
馃捇 Operating system
Linux
馃П Your Environment
cloud.appwrite.io version 1.1.2
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: