zhoubear / open-paperless

Scan, index, and archive all of your paper documents (acquired by Mayan EDMS)
https://openpaperless.com
Other
2.56k stars 220 forks source link

Error when running run.sh #18

Open zwka opened 6 years ago

zwka commented 6 years ago

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

mrhalyang commented 6 years ago

Me too on Ubuntu 16.04.

AlexisJAnderson commented 6 years ago

Idem ditto on Ubuntu desktop 16.04 and Server 17.10.1

the-other-foot commented 6 years ago

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.

AlexisJAnderson commented 6 years ago

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

mrhalyang commented 6 years ago

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

saadmajeed01 commented 7 months ago

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