-
Notifications
You must be signed in to change notification settings - Fork 593
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heroku model deployments: os.path.isfile(path_to_pickle) returns true, but client.deploy(...) returns FileNotFoundError #603
Comments
I found this comment on stackoverflow: I'm not sure how I would use Tabpy + Heroku if there was no way to use even the predeployed functions , so is there another way to deploy models? |
I tried to just copy the entire 'tabpy/tabpy_server/staging/' directory like this:
Also, I noticed that |
Environment information:
Describe the issue
I have Tabpy running on a Heroku server, but no models are deployed on launch. I tried to deploy a model like this:
But this returns the below error message:
Steps to reproduce
I clicked on the tabpy deploy button, cloned a tabpy repository into the (empty) https://git.heroku.com/xxx.git, and ran the above code.
Expected behavior
The model would be deployed, show as deployed in https://xxx.herokuapp.com/, and function properly in Tableau Cloud.
Additional context
I also ran this for context:
Then I tried this, following the code in tabpy/models/deploy_models.py:
which returned this error for each model:
on local machine (not heroku), tabpy-deploy-model succesfully creates the directory /opt/homebrew/lib/python3.10/site-packages/tabpy/tabpy_server/staging/endpoints... So I tried deploying to the heroku instance without entering the heroku shell:
but this returns an error:
Lastly, I noticed in deploy-to-heroku.md that the default port should be set to 443, but
port, auth_on, prefix = setup_utils.parse_config(file_path)
shows that the port is actually 9004. Furthermore, when the app is launched in Heroku, it fills out the procfile asexport TABPY_PORT=#random number# && export TABPY_PWD_FILE=./file.txt && tabpy-user add -u xxx -p xxx -f ./file.txt && tabpy
. So, is this a port-mismatch error?The text was updated successfully, but these errors were encountered: