Deployment Failed - requirement google-generativeai==0.5.2

tgoribasTRIAL

a year ago

Hello! I'm new here, and I always get an error when deploying. I suspect it's related to google-generativeai. Has anyone worked with google-generativeai along with Railway?

"5.439 ERROR: Could not find a version that satisfies the requirement google-generativeai==0.5.2 (from versions: 0.1.0rc1, 0.1.0rc2)
5.440 ERROR: No matching distribution found for google-generativeai==0.5.2"

4 Replies

a year ago

Add a runtime.txt file to your project with just 3.11 in it.


tgoribasTRIAL

a year ago

Thank you, it worked! But now it's returning CRASHED:

You reached the start of the range → May 11, 2024 9:57 PM

[2024-05-12 00:57:37 +0000] [7] [INFO] Starting gunicorn 22.0.0

[2024-05-12 00:57:37 +0000] [7] [INFO] Listening at: http://0.0.0.0:7388 (7)

[2024-05-12 00:57:37 +0000] [7] [INFO] Using worker: sync

[2024-05-12 00:57:37 +0000] [10] [INFO] Booting worker with pid: 10

Failed to parse '' as an attribute name or function call.

[2024-05-12 00:57:38 +0000] [10] [INFO] Worker exiting (pid: 10)

[2024-05-12 00:57:38 +0000] [7] [ERROR] Worker (pid:10) exited with code 4

[2024-05-12 00:57:38 +0000] [7] [ERROR] Shutting down: Master

[2024-05-12 00:57:38 +0000] [7] [ERROR] Reason: App failed to load.

Do you know what it could be?


a year ago

Unfortunately that does not give me enough information, please attach your deployment logs using this -

https://bookmarklets.up.railway.app/log-downloader/


tgoribasTRIAL

a year ago

Attached log.

Attachments


Deployment Failed - requirement google-generativeai==0.5.2 - Railway Help Station