What I’m trying to do:
I am trying to install custom package from private Github repo on my app. Although the custom package installation as already been documented, I couldn’t find any documentation on using a private repo.
What I’ve tried and what’s not working:
I went to Settings>Python versions> “Edit requirements.txt directly”.
There I added the folowing line:
causalimpact_enhanced @ git+https://{user name}:{user token}@github.com/Datablaze-ai/causalimpact_enhanced.git@master_datablaze
Which works fine for the building of the image. But the problem arises when I try the following line in a server module:
import causalimpact_enhanced
When I run the app, it returns as error “ModuleNotFoundError: No module named ‘causalimpact_enhanced’” and suggest me to go to the Python version tab to include my package.
I am not sure why Anvil cannot recognize the package.
If anyone successfully imported a private repo in the app or if you have any clues, please let me know.