django-cloud-tasks
django-cloud-tasks copied to clipboard
Can't deploy application on the AppEngine (Standard)
My requirements.txt
look like that:
[...]
django-background-tasks==1.2.5
-e [email protected]:rgutierrez-cotech/django-cloud-tasks.git@0caa1e771886eb2e827cb3552fb679e15352b62e#egg=django_cloud_tasks
[...]
When I run gcloud app deploy
I get error that Cloud Build is not able to clone the repository:
Step #1 - "builder": INFO `pip_download_wheels` had stderr output:
Step #1 - "builder": Running command git clone -q [email protected]:rgutierrez-cotech/django-cloud-tasks.git /env/src/django-cloud-tasks
Step #1 - "builder": Host key verification failed.
Step #1 - "builder": fatal: Could not read from remote repository.
Step #1 - "builder":
Step #1 - "builder": Please make sure you have the correct access rights
Step #1 - "builder": and the repository exists.
Do you have any suggestions?
I think I found out a solution:
First of all, you need to remove the normally installed lib
$ pip uninstall django_cloud_tasks
Then you need to install the lib locally (not perfect :) )
$ pip install --src vendor -e [email protected]:rgutierrez-cotech/django-cloud-tasks.git#egg=django_cloud_tasks
And, in the end, you need to create a __init__.py
file inside vendor
directory
Still, it's a workaround, it would be great to have the PyPi package.
I think I found out a solution:
First of all, you need to remove the normally installed lib
$ pip uninstall django_cloud_tasks
Then you need to install the lib locally (not perfect :) )
$ pip install --src vendor -e [email protected]:rgutierrez-cotech/django-cloud-tasks.git#egg=django_cloud_tasks
And, in the end, you need to create a
__init__.py
file insidevendor
directoryStill, it's a workaround, it would be great to have the PyPi package.
Since it appeared like the original author had not updated this library recently, I forked it, made the changes I needed, then threw it up on PyPi. It could use some tests for sure, but I needed it for a Django app I'm deploying on Google App Engine flexible.
I released the package (with the changes noted in my PR here and on my fork) under the name django-cloud-tasks-withcredentials
so as not to clash with the original name in case the original author decides to release their version