open-paperless icon indicating copy to clipboard operation
open-paperless copied to clipboard

Error when running run.sh

Open zwka opened this issue 6 years ago • 6 comments

Encountered an exception when trying to execute the run.sh. (please refer to attached screenshot)

Running on Linux Mint 18.3

image

Any help will be appreciated. Thank you

zwka avatar Mar 18 '18 20:03 zwka

Me too on Ubuntu 16.04.

mrhalyang avatar Mar 21 '18 11:03 mrhalyang

Idem ditto on Ubuntu desktop 16.04 and Server 17.10.1

AlexisJAnderson avatar Mar 23 '18 15:03 AlexisJAnderson

I reproduced this error by setting up a clean host with Ubuntu 16.04, bringing it up to date, then following the install instructions.

This is connected to a change in one of the dependencies, tornado, when it's upgraded to 5 or above. The requirements for circus sets the tornado version to tornado>=3 so new installs automatically pick up e.g. tornado==5.0.1. (see also: https://github.com/circus-tent/circus/pull/1052)

I'm able to fix it by simply downgrading the tornado version; from the open-paperless directory I ran:

source venv/bin/activate
pip install tornado==4.5.3
deactivate

and then I was able to start and use open-paperless.

the-other-foot avatar Mar 23 '18 18:03 the-other-foot

Confirmed @the-other-foot 's solution works. Then again can't upload documents once it started, looking into it.

AlexisJAnderson avatar Mar 23 '18 18:03 AlexisJAnderson

I solve the problem by following @the-other-foot's method, thanks.

mrhalyang avatar Mar 29 '18 07:03 mrhalyang

Encountered an directory not found when trying to execute the ./setup.sh & ./run.sh.

root@DESKTOP-5Q4Q8QF:/mnt/c/Users/Saad/open-paperless# ./setup.sh -bash: ./setup.sh: /bin/sh^M: bad interpreter: No such file or directory root@DESKTOP-5Q4Q8QF:/mnt/c/Users/Saad/open-paperless# ./run.sh -bash: ./run.sh: /bin/sh^M: bad interpreter: No such file or directory

saadmajeed01 avatar Feb 02 '24 11:02 saadmajeed01