R
Railway

✋|help

I cannot use opencv2 and received ImportError: libgl.so.1 cannot open shared object file no such fil

Ppedroo59378/25/2023
Can anyone help me with that ??
Solution:
use the headless version of the opencv package
Jump to solution
Ppedroo59378/25/2023
5a3e0b60-6df7-46d9-95dd-0dd4e2b53849
project id
Ppedroo59378/25/2023
 
Bbrody1928/25/2023
send your requirements.txt file please
Ppedroo59378/25/2023
yes
now
aiohttp==3.8.5
aiosignal==1.3.1
async-timeout==4.0.2
attrs==23.1.0
blinker==1.6.2
camelot-py==0.11.0
certifi==2023.7.22
cffi==1.15.1
chardet==5.1.0
charset-normalizer==3.2.0
click==8.1.6
colorama==0.4.6
cryptography==41.0.2
distro==1.8.0
et-xmlfile==1.1.0
flask==2.3.3
Flask-Cors==4.0.0
frozenlist==1.4.0
ghostscript==0.7
greenlet==2.0.2
idna==3.4
importlib-metadata==6.8.0
itsdangerous==2.1.2
Jinja2==3.1.2
lxml==4.9.3
MarkupSafe==2.1.3
multidict==6.0.4
numpy==1.25.2
openai==0.27.8
opencv-python==4.8.0.74
openpyxl==3.1.2
pandas==2.0.3
pdfminer.six==20221105
pdftopng==0.2.3
Pillow==10.0.0
psycopg2==2.9.7
pycparser==2.21
pypdf==3.14.0
pypdf2==3.0.1
python-dateutil==2.8.2
python-docx==0.8.11
pytz==2023.3
requests==2.31.0
six==1.16.0
SQLAlchemy==2.0.20
tabula-py==2.7.0
tabulate==0.9.0
tqdm==4.65.0
typing-extensions==4.7.1
tzdata==2023.3
Unidecode==1.3.6
urllib3==2.0.4
werkzeug==2.3.7
yarl==1.9.2
zipp==3.16.2
Bbrody1928/25/2023
are you using all of those packages?
Ppedroo59378/25/2023
most of is dependencys
of others
Bbrody1928/25/2023
side note, please enclose all code / code-like text blocks in triple back ticks
Ppedroo59378/25/2023
sorry, i don't understand, u need the code ?
Bbrody1928/25/2023
nevermind
aiohttp==3.8.5
aiosignal==1.3.1
async-timeout==4.0.2
attrs==23.1.0
blinker==1.6.2
camelot-py==0.11.0
certifi==2023.7.22
cffi==1.15.1
chardet==5.1.0
charset-normalizer==3.2.0
click==8.1.6
colorama==0.4.6
cryptography==41.0.2
distro==1.8.0
et-xmlfile==1.1.0
flask==2.3.3
Flask-Cors==4.0.0
frozenlist==1.4.0
ghostscript==0.7
greenlet==2.0.2
idna==3.4
importlib-metadata==6.8.0
itsdangerous==2.1.2
Jinja2==3.1.2
lxml==4.9.3
MarkupSafe==2.1.3
multidict==6.0.4
numpy==1.25.2
openai==0.27.8
opencv-python-headless==4.8.0.74
openpyxl==3.1.2
pandas==2.0.3
pdfminer.six==20221105
pdftopng==0.2.3
Pillow==10.0.0
psycopg2==2.9.7
pycparser==2.21
pypdf==3.14.0
pypdf2==3.0.1
python-dateutil==2.8.2
python-docx==0.8.11
pytz==2023.3
requests==2.31.0
six==1.16.0
SQLAlchemy==2.0.20
tabula-py==2.7.0
tabulate==0.9.0
tqdm==4.65.0
typing-extensions==4.7.1
tzdata==2023.3
Unidecode==1.3.6
urllib3==2.0.4
werkzeug==2.3.7
yarl==1.9.2
zipp==3.16.2

replace your requirements.txt with this
Ppedroo59378/25/2023
ah okay
i will test
oh men
u save my work
literally
thank u so much
Bbrody1928/25/2023
no problem!
Ppedroo59378/25/2023
[2023-08-25 15:20:17 +0000] [10] [INFO] Worker exiting (pid: 10)

[2023-08-25 15:20:18 +0000] [1] [INFO] Shutting down: Master

[2023-08-25 15:20:18 +0000] [1] [INFO] Reason: App failed to load.

[2023-08-25 15:20:21 +0000] [1] [INFO] Starting gunicorn 20.0.4

[2023-08-25 15:20:21 +0000] [1] [INFO] Listening at: http://0.0.0.0:6210 (1)

[2023-08-25 15:20:21 +0000] [1] [INFO] Using worker: sync

[2023-08-25 15:20:21 +0000] [10] [INFO] Booting worker with pid: 10

Failed to find attribute 'app' in 'main'.

only code error now, but i solve
thank u sooooooooo much ❤️
Bbrody1928/25/2023
do you have a main.py?
Ppedroo59378/25/2023
yees
Bbrody1928/25/2023
flask?
Ppedroo59378/25/2023
i think is this the error
Ppedroo59378/25/2023
Ppedroo59378/25/2023
Bbrody1928/25/2023
yeah move all that stuff outside of the main() function
Ppedroo59378/25/2023
okaay
Bbrody1928/25/2023
and make sure you have this thing
https://github.com/railwayapp-templates/flask/blob/main/main.py#L12-L13
that if statement is very important
Ppedroo59378/25/2023
Ppedroo59378/25/2023
i will modify
for equal than your
Bbrody1928/25/2023
yeah make it look like the template
Ppedroo59378/25/2023
yeeeeeeeeeeees 😄
this go up
Ops, already did, thank u so much meen <3, i will apresentate this project today haha
Bbrody1928/25/2023
I will just mark as solved, this question was far too specific to your app to mark a solution
Ppedroo59378/25/2023
A okaaay
Thanks for all support.
Bbrody1928/25/2023
oh wait I can just do this
Solution
Bbrody1928/25/2023
use the headless version of the opencv package
Bbrody1928/25/2023
there we go, happy I could help

Looking for more? Join the community!

Recommended Posts
LibreofficeHi I need libreoffice installed to use in my code. I attempted using the below nixpacks.toml ``` [Random app crash, no logs or other indicatorWhen trying my healtcheck I get random crashes, no recent deploy was made, I don't see any logs on mModify build commandHow would I modify the build command so it does a pip install of `psycopg2` ? I was told to remove tPayment method removalHey, how do I remove my payment method? I opted in for a credit subscriptions but still see my crediDeploying crashedHello, i'm facing a problem when deploying my spring boot application to railway, my application worInternal server error when accessing TypebotI noticed that since yesterday the new installations with the Typebot template present the error IntRAILWAY_PUBLIC_DOMAIN replaces RAILWAY_STATIC_URLHi team, we've been hunting down a bug with our app today, occurring on many PR Environments and it'My Subscription issueHello dear support guys: I found that I have been downgraded to No Subscription.. If my memory is rIs it normal for hello world json to return in 600ms? - GO FIBERHelp setting up a monorepoI'm getting this error when deploying my project. I made sure no other deployments are running, but Deployment and logging issues (Maven)Hello, My program is running fine locally, but when I deploy it with Railway, I start seeing issuesIssues with Postgres DBI don't really understand why I am not seeing any tables in my DB. Seeding works, but the database sversion 'GLIBC 2.29' not foundweird error that seems to be because of my code, but it works on my computer <:bing_shrug:5837915814Use rust nightlyidk how docker works but i cant use the nightly rust dockerfile image for some reasonFix Missing libuuid LibraryHey, I am currently runnig into problems deploying my FastAPI backend after adding a new dependency I can no longer connect to my MySQL database, even after restarting the databaseI'm not sure what my project id is. My link is this: https://railway.app/project/31b9ee92-06cc-44c1-RPC showing forbidden access 403Hi. I've got some crypto related script which pings an RPC server - it works fine locally but on raiHow would I connect my project with the SQL database ?I have a model for users and I would like to populate my production DB with them. How can I do that?Hipaa/socI wanted to confirm if the information on https://railway.app/help is current as the email listed boMemory consumption differenceSame app deployed in docker local and Hw(M1 16gb) consumes 52 mb with no load railway took 74mb can