diff --git a/setup.py b/setup.py index ecccb71..e4c63e5 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def read_requirements(): setup( name='gptdeploy', - version='0.18.13', + version='0.18.14', description='Use natural language interface to create, deploy and update your microservice infrastructure.', long_description=open('README.md', 'r', encoding='utf-8').read(), long_description_content_type='text/markdown', diff --git a/src/__init__.py b/src/__init__.py index 52fadec..1fbea55 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1,2 +1,2 @@ -__version__ = '0.18.13' +__version__ = '0.18.14' from src.cli import main \ No newline at end of file diff --git a/src/jina_cloud.py b/src/jina_cloud.py index 58e3db7..5f2466e 100644 --- a/src/jina_cloud.py +++ b/src/jina_cloud.py @@ -11,6 +11,7 @@ from hubble.executor.helper import upload_file, archive_package, get_request_hea from jcloud.flow import CloudFlow from src.utils.io import suppress_stdout +from src.utils.string_tools import print_colored def redirect_callback(href): @@ -25,6 +26,12 @@ def jina_auth_login(): try: hubble.Client(jsonify=True).get_user_info(log_error=False) except hubble.AuthenticationRequiredError: + print('You need login to Jina first to use GPTDeploy') + print_colored('', ''' +If you just created an account, it can happen that the login callback is not working. +In this case, please cancel this run, rerun your gptdeploy command and login into your account again. +''', 'green' + ) hubble.login(prompt='login', redirect_callback=redirect_callback)