I'm coming across a sh: 1: permission denied error while running a python script (both with and without sudo),
but can't seem to resolve it using chmod or chown on the relevant directories and the script itself. Is there something I'm missing?
As seen in below, I have all the read/write/execute rights and ownership of the relevant directories and script (train.py and tesseract directory), but still get permission denied.
I'm new to linux (currently using Ubuntu 16.04), and have tried googling on this problem for the past couple of days to no avail, any help would be greatly appreciated!
1 Answer 1
From your first screenshot (don't post images of text), it looks as if you are using /usr/local/src/tesseract
as a command, but from the second screenshot it's clear that this is a directory.
Your Python script train.py
probably needs updating with the proper path to the tesseract
executable (which I presume must live somewhere within the /usr/local/src/tesseract
dierctory).
/usr/local/src/tesseract
as a program to execute, but your text shows it is a directory.