Heroku to railway, plotly-dash, deployment crash

I am following the migrating guide / blog to host my python plotly-dash interface on railway. This setup worked fine on heroku but deployment here is failing and it does not make a lot of sense to me. Procfile: web: gunicorn app:server Requirements.txt has all the necessary python modules and worked fine for heroku Script is called app.py (Running at https://signs-of-2b2t.herokuapp.com/) Build logs: look good Deploy logs: posted below Thanks in advance for any help
43 Replies
JustJake
JustJake3y ago
ProjectID please
Negative_Entropy
Negative_EntropyOP3y ago
63a98ccd-078d-491b-99ac-4f3b72535986
JustJake
JustJake3y ago
You using like pandas or numpy or something?
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
JustJake
JustJake3y ago
GitHub
ImportError: libstdc++.so.6: cannot open shared object file: No suc...
I'm new to nix,How to solve this problem,thanks!!! code : #!/usr/bin/python import sys from PyQt5.QtWidgets import QWidget, QApplication app = QApplication(sys.argv) widget = QWidget() widg...
Negative_Entropy
Negative_EntropyOP3y ago
yes im using both
JustJake
JustJake3y ago
Do you have an example repo we could go off of?
Negative_Entropy
Negative_EntropyOP3y ago
Brotli==1.0.9 certifi==2021.5.30 charset-normalizer==2.0.6 chart-studio==1.1.0 click==8.0.1 colorama==0.4.4 dash==2.6.1 dash-core-components==2.0.0 dash-html-components==2.0.0 dash-table==5.0.0 Flask==2.0.1 Flask-Compress==1.10.1 Flask-SeaSurf==0.3.1 gunicorn==20.1.0 idna==3.2 itsdangerous==2.0.1 Jinja2==3.0.1 MarkupSafe==2.0.1 pandas==1.3.3 plotly==5.3.1 python-dateutil==2.8.2 pytz==2021.1 requests==2.26.0 retrying==1.3.3 six==1.16.0 tenacity==8.0.1 ua-parser==0.10.0 urllib3==1.26.6 Werkzeug==2.0.1 . i will make a tiny version to test
JustJake
JustJake3y ago
Need the whole repo sorry fam
JustJake
JustJake3y ago
GitHub
Support Pandas/Numpy · Issue #462 · railwayapp/nixpacks
Feature request Various errors seem to occur with Pandas/Numpy, related to the following error ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory Related Threads...
JustJake
JustJake3y ago
GH issue to track this
Negative_Entropy
Negative_EntropyOP3y ago
do you still want me to provide a repo
JustJake
JustJake3y ago
Yea would love that If you could link it on GitHub that would be great
Negative_Entropy
Negative_EntropyOP3y ago
okok will do epic i managed to reproduce
Negative_Entropy
Negative_EntropyOP3y ago
GitHub
GitHub - Entropy5/plotly-test
Contribute to Entropy5/plotly-test development by creating an account on GitHub.
Negative_Entropy
Negative_EntropyOP3y ago
https://pandas-test-railway.herokuapp.com/ Railway id c45c16f9-2821-4bd8-8322-f14a9f83b6b5
angelo
angelo3y ago
Bumping here: we are noticing Pandas are giving us an issue on Nixpacks. You can attempt to switch build solutions on the platform.
Negative_Entropy
Negative_EntropyOP3y ago
deprecated heroku build pack works... https://signs-of-2b2t.up.railway.app/
JustJake
JustJake3y ago
Ye You can use that, we're just phasing them out
Negative_Entropy
Negative_EntropyOP3y ago
pandas is quite an important package lol i hope you get it figured out some time
JustJake
JustJake3y ago
Definitely. Checking to reproduce it now But I mean this is why we've only deprecated it not fully removed it 🙂
JustJake
JustJake3y ago
Works for me on this repo
JustJake
JustJake3y ago
Just cloned it
Negative_Entropy
Negative_EntropyOP3y ago
yes i only ever ran it from the site
JustJake
JustJake3y ago
The site uses that exact same distribution Nothing different
Negative_Entropy
Negative_EntropyOP3y ago
nix packs build ?
JustJake
JustJake3y ago
Yep
Negative_Entropy
Negative_EntropyOP3y ago
i tried it two hours ago lol ok ill send you the logs
JustJake
JustJake3y ago
Very weird.....
Negative_Entropy
Negative_EntropyOP3y ago
lol i cant copy the whole thing
JustJake
JustJake3y ago
ProjectID would suffice And it's this exact same repo? Verbatim?
Negative_Entropy
Negative_EntropyOP3y ago
19aa29d7-94bf-4813-b70f-b76fbf4299fd . File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 850, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/app/app.py", line 1, in <module> import dash File "/opt/venv/lib/python3.9/site-packages/dash/init.py", line 36, in <module> from .dash import ( # noqa: F401,E402 File "/opt/venv/lib/python3.9/site-packages/dash/dash.py", line 21, in <module> from flask_compress import Compress File "/opt/venv/lib/python3.9/site-packages/flask_compress/init.py", line 1, in <module> from .flask_compress import Compress File "/opt/venv/lib/python3.9/site-packages/flask_compress/flask_compress.py", line 14, in <module> import brotli File "/opt/venv/lib/python3.9/site-packages/brotli.py", line 8, in <module> import _brotli ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory [2022-08-31 00:12:49 +0000] [7] [INFO] Worker exiting (pid: 7) [2022-08-31 00:12:49 +0000] [1] [INFO] Shutting down: Master [2022-08-31 00:12:49 +0000] [1] [INFO] Reason: Worker failed to boot.
JustJake
JustJake3y ago
wtf
Negative_Entropy
Negative_EntropyOP3y ago
yes im just doing a brand new deploy from that repo
jr
jr3y ago
Can you try redeploying again. I was just able to successfully deploy on Railway using the latest (0.3.12) version of Nixpacks
Negative_Entropy
Negative_EntropyOP3y ago
yea idk how this isnt working lol
File "/opt/venv/lib/python3.9/site-packages/dash/__init__.py", line 36, in <module>
from .dash import ( # noqa: F401,E402
File "/opt/venv/lib/python3.9/site-packages/dash/dash.py", line 21, in <module>
from flask_compress import Compress
File "/opt/venv/lib/python3.9/site-packages/flask_compress/__init__.py", line 1, in <module>
from .flask_compress import Compress
File "/opt/venv/lib/python3.9/site-packages/flask_compress/flask_compress.py", line 14, in <module>
import brotli
File "/opt/venv/lib/python3.9/site-packages/brotli.py", line 8, in <module>
import _brotli
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
[2022-08-31 06:41:49 +0000] [7] [INFO] Worker exiting (pid: 7)
[2022-08-31 06:41:49 +0000] [1] [INFO] Shutting down: Master
[2022-08-31 06:41:49 +0000] [1] [INFO] Reason: Worker failed to boot.
File "/opt/venv/lib/python3.9/site-packages/dash/__init__.py", line 36, in <module>
from .dash import ( # noqa: F401,E402
File "/opt/venv/lib/python3.9/site-packages/dash/dash.py", line 21, in <module>
from flask_compress import Compress
File "/opt/venv/lib/python3.9/site-packages/flask_compress/__init__.py", line 1, in <module>
from .flask_compress import Compress
File "/opt/venv/lib/python3.9/site-packages/flask_compress/flask_compress.py", line 14, in <module>
import brotli
File "/opt/venv/lib/python3.9/site-packages/brotli.py", line 8, in <module>
import _brotli
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
[2022-08-31 06:41:49 +0000] [7] [INFO] Worker exiting (pid: 7)
[2022-08-31 06:41:49 +0000] [1] [INFO] Shutting down: Master
[2022-08-31 06:41:49 +0000] [1] [INFO] Reason: Worker failed to boot.
JustJake
JustJake3y ago
I wonder if it's now cached a bunk version Can you delete the project and recreate it?
Negative_Entropy
Negative_EntropyOP3y ago
JustJake
JustJake3y ago
Or just the service
Negative_Entropy
Negative_EntropyOP3y ago
i mean i just created a new project
JustJake
JustJake3y ago
o wtf
Negative_Entropy
Negative_EntropyOP3y ago
b2aff5cf-87e0-4a27-9724-eed0a04d6cbc
jr
jr3y ago
I've just discovered what the issue is. Can you remove the start command on the service settings page. It slightly changes the behaviour (we will be fixing this on Railway)
Negative_Entropy
Negative_EntropyOP3y ago
well youre right it works now on nix packs thanks for the help guys you can probably close this one
Want results from more Discord servers?
Add your server