Comments (22)
Hi !
Which distro you're using ? Did you have any error while running the Makefile ?
And could you give me the return of the following command please ?
which gunicorn
from opencapture.
Hello, i am on debian 10, the which gunicorn return nothing.
I did have some errors while running the make file indeed.
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-cx5q3ikk/pyocr/setup.py'"'"'; __file__='"'"'/tmp/pip-install-cx5q3ikk/pyocr/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-ciia38eo
cwd: /tmp/pip-install-cx5q3ikk/pyocr/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'setuptools'
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Failed to start OCForInvoices-web.service: Unit OCForInvoices-web.service has a bad unit file setting.
See system logs and 'systemctl status OCForInvoices-web.service' for details.
Here are the errors, i got.
Regards.
P.S: if i want to use it with maarch, which module of maarch is it ? ( RM, mail, editor or capture ).
from opencapture.
There is an issue on the 0.7.5 caused by an apt package. It will be fixed on the next version. On the bin/install/apt-requirements.txt
could you remove the libmagickwand-dev line ?
To start fresh, I recommand you to restart the installation from scratch, and remove the line just before running the Makefile.
Open-Capture For Invoices could be connected to Maarch Courrier for now
from opencapture.
I will start again from scratch, and i will remove that line.
from opencapture.
I still have the same error. Maybe i should install an older version of it.
from opencapture.
Could you please use the following command and send me the file after ?
sudo ./Makefile > makefile_out.log
(you just have to press enter after launching the command to answer the first question about systemd or supervisor)
from opencapture.
here is the file.
makefile_out.log
P.S: is it possible to make it work with apache2 instead of nginx ?
Because Maarch courrier is installed with apache2 and on the same machine, nginx and apache2 can't work at the same time.
from opencapture.
Did you wait for the end of the script ? Because I see it stopped after collecting pyocr..
I think it could works with apache2 but I dont test it
from opencapture.
It stopped indeed, i will try again and send you the log file tomorrow, probably.
Thank you.
from opencapture.
Hello,
I tired the installation again and i got this error this time:
Running setup.py install for psycopg2 ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7awuzvf/psycopg2/setup.py'"'"'; file='"'"'/tmp/pip-install-p7awuzvf/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-b_9i83if/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/psycopg2
cwd: /tmp/pip-install-p7awuzvf/psycopg2/
Complete output (36 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/psycopg2
copying lib/_lru_cache.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/errorcodes.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/extensions.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/compat.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/sql.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/extras.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/_range.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/errors.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/_json.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/pool.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/init.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/tz.py -> build/lib.linux-x86_64-3.7/psycopg2
copying lib/_ipaddress.py -> build/lib.linux-x86_64-3.7/psycopg2
running build_ext
building 'psycopg2._psycopg' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/psycopg
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSYCOPG_VERSION=2.8.6 (dt dec pq3 ext lo64) -DPG_VERSION_NUM=110009 -DHAVE_LO64=1 -I/usr/include/python3.7m -I. -I/usr/include/postgresql -I/usr/include/postgresql/11/server -c psycopg/psycopgmodule.c -o build/temp.linux-x86_64-3.7/psycopg/psycopgmodule.o -Wdeclaration-after-statement
unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
It appears you are missing some prerequisite to build the package from source.
You may install a binary package by installing 'psycopg2-binary' from PyPI.
If you want to install psycopg2 from source, please install the packages
required for the build and try again.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-p7awuzvf/psycopg2/setup.py'"'"'; file='"'"'/tmp/pip-install-p7awuzvf/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-b_9i83if/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.7/psycopg2 Check the logs for full command output.
from opencapture.
Which debian version do you use ?
I just try on debian 10.6, following the README and there is no issue while launching the Makefile.
From what I see on the error, try sudo pip3 install psycopg2-binary
from opencapture.
Hello,
My apologies for the delay, but I am also using debian 10.6, I also tried on new Debian 10.6 VM and it is working perfectly fine indeed. Is it possible it happened because I also installed Maarch courrier on the same machine. Wouldn't it be better to install Opencaptureforinvoices on a machine and Opencaptureforinvoices on another one ?
Thank you.
from opencapture.
Glad to hear that you manage to get it works !
Basing on the test I've done, I also have errors with Maarch installed in the same machine because apache and nginx create conflicts :/
from opencapture.
Do you have errors like mine or other errors ? So i think my guess is right and have the two softwares installed on two different machine.
from opencapture.
I don't remember the errors I had..
from opencapture.
I manage to fix my errors with this :
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
I will try to force apache to listen to another port than 80 to see if I can run apache2 and nginx at the same time and use maarchcourrier and opencaptureforinvoices on the same machine.
Thanks for your help.
P.S: Can i change the server name in .conf file in nginx from 127.0.0.1 to opencapture ?
from opencapture.
Okay, do not hesitate to write a tutorial on how you do it (with the package you need etc...) if you have the time 👍
Thanks in advance
(the wiki is under construction, in French for now)
from opencapture.
If i manage to make it work i will try to write a good tutorial. Opencapture works fine but Maarch is bugging since I change the port of apache2.
from opencapture.
Which version of Maarch do you use ?
from opencapture.
Hello, I am using maarchcourrier 19.04 and everything is working ( opencapture and maarch ) fine.
But now, I don't know how opencapture work. Is there documentation ? Because i wasn't able to find it, but once i am logged into opencapture, i upload a facture but that is all.
Regards
from opencapture.
A documentation will be out by the 01/01/2021
from opencapture.
Here is the start of the document, Maybe you could find some help. You'll have some informations about the interface in the "demo" chapter. The installation is not finished, same for the technical tutorial (about config files etc...)
If you need more help, do not hesitate. Some informations are also available into the README (for example to process automatically files after Open-Capture Splitter)
from opencapture.
Related Issues (19)
- [BUG] 502 Bad Gateway HOT 15
- HTTP Error 500 after clicking on an uploaded invoice from http://localhost/list/lot/TODAY/NEW HOT 6
- Is it possible to detect custom values ? HOT 3
- Error 500 control panel HOT 22
- Save changes KO
- Erro 500 when validate an invoice HOT 7
- Installation problem HOT 2
- Error 500 after validation of a merged batch
- Brand new installation failed HOT 3
- How to start AI HOT 3
- vat_number pour un supplier HOT 3
- Erreur lors de la configuration du SMTP HOT 9
- Erreur lors de l'affichage de la liste des comptes clients dans le Vérifier HOT 3
- error server 500 HOT 27
- 500: Internal Server Error
- again the 500 errer internal servor HOT 1
- move files anbd settings HOT 7
- position mask HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencapture.