Treffy
Treffy
RRailway
Created by Treffy on 8/13/2023 in #✋|help
Pytesseract project setup: How do I get the package install location?
Hello, I'm struggling with making a discord bot using Pytesseract, I got it running but I don't know how to get the installation path of the tesseract to fix the message: /app/.apt/usr/bin/tesseract is not installed or it's not in your PATH. See README file for more information.. I read in an overflow question how to deploy using pytesseract but the instructions are from Heroku, the answer tells me to: - Add a build pack. ✅ https://discord.com/channels/713503345364697088/1139391639232712734 - Create an Aptfile. ✅ - Find the tessdata folder to set the variable. ❔ link: https://stackoverflow.com/a/56457594 What I've tried: - Run bash with railway. (only runs locally) - Tried to create a docker to see if I can get a path or some clue. Project ID: bf07da5c-d35e-4b6d-a262-c39207f4488c nixpacks.toml
[phases.setup]
nixPkgs = ["...", "tesseract"]
[phases.setup]
nixPkgs = ["...", "tesseract"]
Procfile
web: python main.py
web: python main.py
requirements.txt
discord.py==2.3.1
imutils==0.5.4
numpy
opencv-contrib-python-headless
pytesseract==0.3.10
python-dotenv==1.0.0
discord.py==2.3.1
imutils==0.5.4
numpy
opencv-contrib-python-headless
pytesseract==0.3.10
python-dotenv==1.0.0
Sorry if this question sounds stupid, I'm coming from front-end and I'm totally stupid with it. 😦
20 replies