==> Deploying... self.app.wsgi() ~~~~~~~~~~~~~^^ File "/opt/render/project/src/.venv/lib/python3.13/site-packages/gunicorn/app/base.py", line 66, in wsgi self.callable = self.load() ~~~~~~~~~^^ File "/opt/render/project/src/.venv/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 57, in load return self.load_wsgiapp() ~~~~~~~~~~~~~~~~~^^ File "/opt/render/project/src/.venv/lib/python3.13/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp return util.import_app(self.app_uri) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ File "/opt/render/project/src/.venv/lib/python3.13/site-packages/gunicorn/util.py", line 370, in import_app mod = importlib.import_module(module) File "/opt/render/project/python/Python-3.13.4/lib/python3.13/importlib/init.py", line 88, in import_module return _bootstrap._gcd_import(name[level:], package, level) ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1387, in _gcd_import File "<frozen importlib._bootstrap>", line 1360, in _find_and_load File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 935, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 1026, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/opt/render/project/src/app.py", line 9, in <module> from appwrite.services.tables_db import TablesDB ModuleNotFoundError: No module named 'appwrite.services.tables_db' ==> Exited with status 1
Hey everyone, I am trying to deploy a small website on Render. I have a Github repository that has the code I'm trying to deploy. For some reason, I can't import the TablesDB. I even had this issue while working on my laptop.
Flask>=3.0.0,<4.0.0 python-dotenv>=1.0.0,<2.0.0 appwrite==11.0.0 gunicorn>=22.0.0
Sorry, I'm not super technical. Please help! Thx
Yes <@1298414953895825432> . This error is obvious as you are using older version of Appwrite's Python SDK, which supported the collection-based database only and didn't included appwrite.services.tables_db. For the new TablesDB (which you're trying to use within your project), you must switch to latest version i.e. Version: 13.6.1 of Appwrite's Python SDK. And for that, run this command: pip install --upgrade appwrite
It's working now! I think Appwrite needs to update their documentation :/ for Python π
Thank you so much Devika!
Yes. I've made a pull request to make changes about the same: https://discord.com/channels/564160730845151244/636852860709240842/1438106808966451281
i appreciate it, our team has been working on making these changes and already put in a PR. Very thoughtful of you to put in the work, just make sure to ask a team member first so there isn't any wasted efforts β€οΈ
Surely! And sorry I didn't asked earlier
Recommended threads
- Urgent Help
Hello Appwrite team, I urgently need your help. I am the founder of OnBuch, an EdTech application used by around 10,000 users in Cameroon. In the last two day...
- Projects can't be accessed
It's been like 2 weeks and I can't access my projects. After clicking any, it loads, then stops and nothing happens. No error is displayed. The projects are o...
- login is broken
even used VPN not working, searched for a reason didn't found any used email not working brave browser