posit-dev / posit-dev/connect-extensions
bug(fastapitableau-example): error on dogfood
Open
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 10
- Forks
- 8
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 1
Description
The tableau python extension throws the following error when deployed to dogfood:
Error while loading Python API: Could not import module 'app'. Connect expected to find a file in the application directory named 'app.py'. Please check the entrypoint specified in the manifest.json file or on the rsconnect-python command line. Reason: cannot import name 'GenerateJsonSchema' from 'fastapi._compat' (/opt/rstudio-connect/mnt/app/python/env/lib/python3.13/site-packages/fastapi/_compat/__init__.py).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the tableau Python extension's manifest.json entrypoint and the expected app.py location, then reproduce the dogfood deployment using the reported rsconnect-python setup. Investigate the FastAPI version compatibility around fastapi._compat.GenerateJsonSchema; done means the extension deploys and loads without the reported import error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fastapi, python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100