Package not found though I am importing it

I am getting the below error
railway `rapidocr-onnxruntime` package not found, please install it with `pip install rapidocr-onnxruntime
railway `rapidocr-onnxruntime` package not found, please install it with `pip install rapidocr-onnxruntime
` Despite the fact that rapidocr-onnxruntime is in my requirements.txt (I tried both specifying and not specifying a version to check if that was the issue). Any suggestions on getting this fixed?
Solution:
sometimes nixpacks just doesnt cut it and you have to cut your losses and switch to a Dockerfile
Jump to solution
37 Replies
Percy
Percy4w ago
Project ID: N/A
ramuprasad
ramuprasad4w ago
N/A
Brody
Brody4w ago
do you have other package management types other than requirements.txt?
ramuprasad
ramuprasad4w ago
Nope just that and my nixpacks.toml that looks like the below
[phases.setup]
nixPkgs = ["...", "ffmpeg","chromium", "chromedriver"]
[phases.setup]
nixPkgs = ["...", "ffmpeg","chromium", "chromedriver"]
Brody
Brody4w ago
full build logs please, you have the bookmarklet right?
ramuprasad
ramuprasad4w ago
i dont think so, is there a way for me to export the build logs as like a txt?
Brody
Brody4w ago
you've exceeded the 1500 log line limit of that bookmarklet, instead send me a screenshot of the build table at the top of the build logs
ramuprasad
ramuprasad4w ago
No description
ramuprasad
ramuprasad4w ago
My requirements.txt looks like the below
langchain
langchain-community
rapidocr-onnxruntime
langchain-core==0.1.52
langchain-openai==0.1.6
langchainhub==0.1.14
fastapi==0.109.2
python-dotenv==1.0.0
bs4==0.0.1
urllib3==1.26.12
types-urllib3==1.26.25.14
uvicorn==0.27.1
pydub==0.25.1
ffmpeg-python==0.2.0
langchain-anthropic==0.1.13
selenium==4.4.3
webdriver-manager==4.0.1
firecrawl-py==0.0.14
pypdf==4.2.0
PyPDF2==3.0.1
langchain
langchain-community
rapidocr-onnxruntime
langchain-core==0.1.52
langchain-openai==0.1.6
langchainhub==0.1.14
fastapi==0.109.2
python-dotenv==1.0.0
bs4==0.0.1
urllib3==1.26.12
types-urllib3==1.26.25.14
uvicorn==0.27.1
pydub==0.25.1
ffmpeg-python==0.2.0
langchain-anthropic==0.1.13
selenium==4.4.3
webdriver-manager==4.0.1
firecrawl-py==0.0.14
pypdf==4.2.0
PyPDF2==3.0.1
Brody
Brody4w ago
it's definitely being installed
ramuprasad
ramuprasad4w ago
yeah, but for some reason i get this error,
No description
Brody
Brody4w ago
are you sure there aren't other errors?
ramuprasad
ramuprasad4w ago
yup, only looks to be this
Brody
Brody4w ago
send the deployment logs anyway
ramuprasad
ramuprasad4w ago
yup
ramuprasad
ramuprasad4w ago
anything useful?
Brody
Brody4w ago
I don't see the error?
ramuprasad
ramuprasad4w ago
No description
Brody
Brody4w ago
send the deploy logs please
ramuprasad
ramuprasad4w ago
its in the logs above
No description
Brody
Brody4w ago
oh it is, im blind
ramuprasad
ramuprasad4w ago
yeah i was thinking it could be related to using the wrog version of python ( i am using 3.10 locally, but 3.11 on railway ), any suggestions or im just not installing it for some reason
Brody
Brody4w ago
if you want railway to use 3.10 add a runtime.txt file with 3.10 in it
ramuprasad
ramuprasad4w ago
lemme try that rn huh my build fails when my runtime.txt has the below python-3.10.2
Brody
Brody4w ago
i did say 3.10 but logs please
ramuprasad
ramuprasad4w ago
ahh mb lemme change that
Brody
Brody4w ago
so how long are we going to keep messing about with nixpacks until you move to a Dockerfile?
ramuprasad
ramuprasad4w ago
lmao, u got me. Lemme switch
Solution
Brody
Brody4w ago
sometimes nixpacks just doesnt cut it and you have to cut your losses and switch to a Dockerfile
ramuprasad
ramuprasad4w ago
yea was hoping to avoid it for time being, but looks like not the case here
Brody
Brody4w ago
youll have a better experience in the end
ramuprasad
ramuprasad4w ago
yup just switched over, everything looks good man
Brody
Brody4w ago
awesome!
Want results from more Discord servers?
Add your server
More Posts