R
Railway10mo ago
Eminem

Could not find a version that satisfies the requirement python-magic-bin==0.4.14

I have a python api that uses a module called python-magic-bin (libmagic) . When i install it on my local environment using pip install python-magic-bin it works perfectly. The problem arises when i deploy the project on Railwayand put python-magic-bin in the requirements.txt. It says Could not find a version that satisfies the requirement python-magic-bin. I have googled around and the closest solution i found was this. According to this libmagic-dev package is not pre-installed on flex environment, so you will need to switch to custom runtime as described here.
After that just add libmagic-dev installation to the Dockerfile with: RUN apt-get update && apt-get install -y libmagic-dev
. I don't know how to install it as a package on railway. Please help
No description
3 Replies
Percy
Percy10mo ago
Project ID: 846c12e9-6034-470d-94f0-0a2b032e3204
Eminem
Eminem10mo ago
846c12e9-6034-470d-94f0-0a2b032e3204
Want results from more Discord servers?
Add your server