Railway incompatible with Bokeh library? Couldn't build Django Project

codevanziHOBBY

a year ago

I'm working in a web market project that was running ok, but when I tried to implement a dashboard, the site crashed.. I was able to find a "solution" to the first problem I faced " /bin/bash: line 1: gunicorn: command not found" in the forum, and created a railway.json, and a new error appeared:

"5.098 ERROR: Could not find a version that satisfies the requirement bokeh==3.4.1 (from versions: 0.2, 0.3, 0.4, 0.4.1, 0.4.4, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.6.1, 0.7.0, 0.7.1, 0.8.0, 0.8.1, 0.8.2, 0.9.0, 0.9.1, 0.9.2, 0.9.3, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 0.12.6, 0.12.7, 0.12.9, 0.12.10, 0.12.11, 0.12.13, 0.12.14, 0.12.15, 0.12.16, 0.13.0, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1.0, 1.2.0, 1.3.0, 1.3.1, 1.3.2, 1.3.4, 1.4.0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0rc2, 2.1.0rc3, 2.1.0, 2.1.1, 2.2.0.dev4, 2.2.0.dev6, 2.2.0.dev7, 2.2.0.dev8, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0, 2.2.1, 2.2.2, 2.2.3, 2.3.0.dev1, 2.3.0.dev2, 2.3.0.dev3, 2.3.0.dev5, 2.3.0.dev7, 2.3.0.dev8, 2.3.0.dev9, 2.3.0.dev10, 2.3.0.dev11, 2.3.0.dev12, 2.3.0.dev13, 2.3.0.dev14, 2.3.0rc2, 2.3.0rc3, 2.3.0rc4, 2.3.0, 2.3.1.dev1, 2.3.1rc1, 2.3.1rc2, 2.3.1, 2.3.2rc1, 2.3.2, 2.3.3rc1, 2.3.3, 2.4.0.dev1, 2.4.0.dev2, 2.4.0.dev4, 2.4.0.dev5, 2.4.0.dev6, 2.4.0.dev7, 2.4.0.dev8, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0, 2.4.1rc1, 2.4.1, 2.4.2.dev1, 2.4.2rc1, 2.4.2, 2.4.3.dev1, 2.4.3.dev3, 2.4.3.dev4, 2.4.3rc1, 2.4.3, 3.0.0.dev1, 3.0.0.dev2, 3.0.0.dev3, 3.0.0.dev4, 3.0.0.dev5, 3.0.0.dev6, 3.0.0.dev7, 3.0.0.dev8, 3.0.0.dev9, 3.0.0.dev10, 3.0.0.dev11, 3.0.0.dev13, 3.0.0.dev14, 3.0.0.dev15, 3.0.0.dev16, 3.0.0.dev17, 3.0.0.dev18, 3.0.0.dev19, 3.0.0.dev20, 3.0.0rc1, 3.0.0rc2, 3.0.0rc3, 3.0.0rc4, 3.0.0rc5, 3.0.0rc6, 3.0.0, 3.0.1rc1, 3.0.1, 3.0.2rc1, 3.0.2, 3.0.3rc1, 3.0.3, 3.1.0.dev1, 3.1.0.dev2, 3.1.0.dev3, 3.1.0.dev4, 3.1.0.dev5, 3.1.0rc1, 3.1.0rc2, 3.1.0rc3, 3.1.0, 3.1.1rc1, 3.1.1)

5.099 ERROR: No matching distribution found for bokeh==3.4.1

Dockerfile:20

18 | ENV NIXPACKSPATH /opt/venv/bin:$NIXPACKSPATH

19 | COPY . /app/.

20 | >>> RUN --mount=type=cache,id=s/e3e42b89-f3d6-4d91-991b-ef402ae474de-/root/cache/pip,target=/root/.cache/pip python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt

21 |

22 | # npm:install phase

ERROR: failed to solve: process "/bin/bash -ol pipefail -c python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -r requirements.txt" did not complete successfully: exit code: 1

Error: Docker build failed"

I used the bokeh library to create a dashboard, is it possible it is not compatible with railway?

my runtime.txt is Python-3.12.2
my requirements.txt is "asgiref==3.7.2
bokeh==3.4.1
certifi==2023.7.22
cffi==1.16.0
charset-normalizer==3.3.0
cloudinary==1.39.1
contourpy==1.2.1
cryptography==42.0.5
defusedxml==0.7.1
distlib==0.3.8
dj-database-url==2.1.0
Django==4.2.6
django-admin-honeypot-updated-2021==1.2.0
django-allauth==0.61.1
django-cleanup==8.1.0
django-cloudinary-storage==0.3.0
django-environ==0.11.2
django-extensions==3.2.3
django-htmx==1.17.3
django-ipware==6.0.4
django-resized==1.0.2
filelock==3.13.3
gunicorn==21.2.0
idna==3.4
Jinja2==3.1.4
MarkupSafe==2.1.5
numpy==1.26.4
oauthlib==3.2.2
packaging==24.0
pandas==2.2.2
Pillow==10.1.0
platformdirs==4.2.0
psycopg2-binary==2.9.9
pycparser==2.22
PyJWT==2.8.0
python-dateutil==2.9.0.post0
python-ipware==2.0.2
python3-openid==3.2.0
pytz==2024.1
PyYAML==6.0.1
requests==2.31.0
requests-oauthlib==2.0.0
six==1.16.0
sqlparse==0.4.4
stripe==7.0.0
tornado==6.4
typingextensions==4.8.0 tzdata==2023.3 urllib3==2.0.7 virtualenv==20.25.1 whitenoise==6.6.0 xyzservices==2024.4.0" my Procfile is web: gunicorn marketplacesitio.wsgi
the railway.json is:
"{
"$schema": "https://schema.up.railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS",
"nixpacksPlan": {
"providers": ["python"],
"phases": {
"setup": {
"nixPkgs": ["…", "nodejs"]
},
"npm:install": {
"dependsOn": ["setup"],
"cmds": ["npm ci"]
}
}
}
},
"deploy": {
"startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn marketplacesitio.wsgi", "restartPolicyType": "ONFAILURE",
"restartPolicyMaxRetries": 10
}
}"

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

6 Replies


codevanziHOBBY

a year ago

done

Attachments


codevanziHOBBY

a year ago


a year ago

Try adding a runtime.txt file to your project with 3.11 In it.


Status changed to Solved railway[bot] about 1 year ago


codevanziHOBBY

a year ago

It worked! Thank You, Brody!!


a year ago

No problem!


Railway incompatible with Bokeh library? Couldn't build Django Project - Railway Help Station