Package not found though I am importing it

anirudhramooPRO

a year ago

I am getting the below error

``railwayrapidocr-onnxruntimepackage not found, please install it withpip 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?

0 Replies

anirudhramooPRO

a year ago

N/A


a year ago

do you have other package management types other than requirements.txt?


anirudhramooPRO

a year ago

Nope just that and my nixpacks.toml that looks like the below

[phases.setup]
nixPkgs = ["...", "ffmpeg","chromium", "chromedriver"]

a year ago

full build logs please, you have the bookmarklet right?


anirudhramooPRO

a year ago

i dont think so, is there a way for me to export the build logs as like a txt?


a year ago


anirudhramooPRO

a year ago


a year 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


anirudhramooPRO

a year ago

1250530539392467000


anirudhramooPRO

a year 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

a year ago

it's definitely being installed


anirudhramooPRO

a year ago

yeah, but for some reason i get this error,

1250532533460799700


a year ago

are you sure there aren't other errors?


anirudhramooPRO

a year ago

yup, only looks to be this


a year ago

send the deployment logs anyway


anirudhramooPRO

a year ago

yup


anirudhramooPRO

a year ago


anirudhramooPRO

a year ago

anything useful?


a year ago

I don't see the error?


anirudhramooPRO

a year ago

1250587719919472600


a year ago

send the deploy logs please


anirudhramooPRO

a year ago

its in the logs above

1250588088862904300


a year ago

oh it is, im blind


anirudhramooPRO

a year 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


anirudhramooPRO

a year ago

or im just not installing it for some reason


a year ago

if you want railway to use 3.10 add a runtime.txt file with 3.10 in irt


anirudhramooPRO

a year ago

lemme try that rn


anirudhramooPRO

a year ago

huh my build fails when my runtime.txt has the below

python-3.10.2


a year ago

i did say 3.10 but logs please


anirudhramooPRO

a year ago

ahh mb lemme change that


anirudhramooPRO

a year ago


a year ago

so how long are we going to keep messing about with nixpacks until you move to a Dockerfile?


anirudhramooPRO

a year ago

lmao, u got me. Lemme switch


a year ago

sometimes nixpacks just doesnt cut it and you have to cut your losses and switch


anirudhramooPRO

a year ago

yea was hoping to avoid it for time being, but looks like not the case here


a year ago

youll have a better experience in the end


anirudhramooPRO

a year ago

yup just switched over, everything looks good man


a year ago

awesome!


Package not found though I am importing it - Railway Help Station