WeasyPrint could not import some external libraries. Please carefully follow the installation steps
I don’t know what to do. I’ve tried to read the docs I don’t know if there’s a terminal I could use to install the dependencies myself.
42 Replies
@Real_PyGod is this still an issue?
Yes. It’s still an issue
I'm just curious, may I ask why you ignored Percy's message?
I dont know what I’m supposed to respond
Please what could I have done instead? 🤲🏽
what's your current start command
For my project right?
for your service
gunicorn myshop.wsgi
what version of python do you use locally
3.11
add this as a
Dockerfile
to your project
untested, but lets see where this takes usOh. Ok I’d have to convert my project to docker first.
no you dont
I should create a docker file and add these and upload?
I’m hosting on railway.app
yes please try what ive asked
no need to overthink anything
Ok. Thank you. Let me do that right away.
Wow.
It worked. Thank you so much.
🙇🏽♂️🙇🏽♂️
I’m really grateful
Please do you mind if I asked some questions?
sure, ask away
Please how did you know that would work?
And please can you be my coach/mentor. I’d love to be as knowledgeable as you are so that I could also help others.
ive looked at the docs for weasyprint, and wrote that dockerfile for someone else here in the past, so its nearly the same dockerfile i wrote for them, just needed to have your start command
Wow. I never knew that Docker file could work on railway like that.
I would have to take my time and learn docker properly.
But please can you be my coach?
unfortunately i cant, but this page can be your coach, get reading 😉
https://docs.docker.com/engine/reference/builder/
Thank you.
How about like a guide u probably use for Python I want to be a really good backend developer
im not a python dev lol
Oh wow.
I want to be a really good backend developerdont use python then
I cant send you a request.
jokes, kinda
Wow.
That’s a shocker
How about FastApi?
thats still python
im only half joking, use what you want
Yes. I was asking if it wasn’t good enough.
I feel like there’s some reason u said that.
I’d love to know so I can be on my best and gain knowledge
not language bashing, but python has a significantly higher resource footprint compared to rust or go, aka python will cost more to run
i run golang web services on railway for sub 20 cents a month
That’s a fact.
An I intend learning go next
love to hear that
i went from python to go a while ago
Oh wow. 😁😁
I might be following your lead sir
awsome!
Thank you
no problem!
🙌🙌
You made my day sir.
I really appreciate
I’d learn so I can be as knowledgeable as you are and help others.
thats very nice to hear, love the enthusiasm
🙌🙌
Yes sir.
Please one more question. Is it possible to have an smtp set up on railway just like in a Cpanel?
it might be possible, but I would not recommend it, you would have to manage it yourself
just use Zoho mail for business
Thank you so much.