EniasCailliau / GirlfriendGPT

OSS AI Companion Chatbot - Build your own AI companion in Python using ChatGPT.
2.6k stars 441 forks source link

can't run deploy.py on ubuntu server #31

Closed Mikaeel-jl closed 1 year ago

Mikaeel-jl commented 1 year ago

Hi I can't run deploy

when i run command python3 deploy.py

I get this :

Could not launch browser to log in to Steamship.

If you are in Replit:

1) Get an API key at https://steamship.com/account/api
2) Set the STEAMSHIP_API_KEY Replit Secret
3) Close and reopen this shell so that secrets refresh

If you are in a different headless environment, visit https://docs.steamship.com/configuration/authentication.html
Aborted!
Traceback (most recent call last):
  File "/home/mike/GirlfriendGPT/deploy.py", line 15, in <module>
    client = Steamship(workspace=f"girlfriend-ai-{uuid.uuid1()}")
  File "/usr/local/lib/python3.10/dist-packages/steamship/client/steamship.py", line 59, in __init__
    super().__init__(
  File "/usr/local/lib/python3.10/dist-packages/steamship/base/client.py", line 84, in __init__
    config = config or Configuration(
  File "/usr/local/lib/python3.10/dist-packages/steamship/base/configuration.py", line 70, in __init__
    api_key = login(
  File "/usr/local/lib/python3.10/dist-packages/steamship/cli/login.py", line 38, in login
    raise SteamshipError(
steamship.base.error.SteamshipError: Could not launch browser to log in to Steamship.

If you are in Replit:

1) Get an API key at https://steamship.com/account/api
2) Set the STEAMSHIP_API_KEY Replit Secret
3) Close and reopen this shell so that secrets refresh

If you are in a different headless environment, visit https://docs.steamship.com/configuration/authentication.html
billyjbryant commented 1 year ago

Are you running headless?

Mikaeel-jl commented 1 year ago

idk what's headless i just install and get this result :(

EniasCailliau commented 1 year ago

Looks like your cli failed to open a web browser window for you to authenticate. Could you try following the Replit instructions?

1) Get an API key at https://steamship.com/account/api
2) Set the STEAMSHIP_API_KEY Replit Secret
3) Close and reopen this shell so that secrets refresh
EniasCailliau commented 1 year ago

@Mikaeel-js Did you try it out again?

Mikaeel-jl commented 1 year ago

I get api from steamship but idk what to do with

I create a .steamship.json in user directory and set it this way

{
  "apiKey": "mykey"
}

is this wrong ?

idk why I'm should sign up to replit and set STEAMSHIP_API_KEY Secret