site: http://www.stoq.com.br/
De acordo com os desenvolvedores a forma mais facil seria atravez do pip, sendo que este software se utiliza do python 2, então
usei o comando:
- Código: Selecionar todos
pip2 install stoq
e recebi o erro no final:
- Código: Selecionar todos
[[email protected] stoq-1.0.0]$ sudo pip2 install stoq
Collecting stoq
Using cached stoq-1.11.2-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): weasyprint>=0.15 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): reportlab>=2.4 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): Twisted>=0.2.5 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): xlwt>=0.7.2 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=1.4.1 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): psycopg2>=2.0.5 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): storm>=0.19 in /usr/lib/python2.7/site-packages (from stoq)
Collecting pypoppler>=0.12.1 (from stoq)
Using cached pypoppler-0.12.2.tar.gz
Collecting raven>=5.1.1 (from stoq)
Using cached raven-5.23.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): Pillow>=1.1.5 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): zope.interface>=3.0 in /usr/lib/python2.7/site-packages (from stoq)
Collecting stoqdrivers>=1.1 (from stoq)
Using cached stoqdrivers-1.1.1-py2-none-any.whl
Collecting kiwi-gtk>=1.10 (from stoq)
Using cached kiwi_gtk-1.10.3-py2-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): Mako>=0.2.5 in /usr/lib/python2.7/site-packages (from stoq)
Requirement already satisfied (use --upgrade to upgrade): lxml>=3.0 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): html5lib>=0.999 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): tinycss==0.3 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): cssselect>=0.6 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): cffi>=0.6 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): cairocffi>=0.5 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): Pyphen>=0.8 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): CairoSVG<2,>=1.0.20 in /usr/lib/python2.7/site-packages (from weasyprint>=0.15->stoq)
Requirement already satisfied (use --upgrade to upgrade): pip>=1.4.1 in /usr/lib/python2.7/site-packages (from reportlab>=2.4->stoq)
Requirement already satisfied (use --upgrade to upgrade): setuptools>=2.2 in /usr/lib/python2.7/site-packages (from reportlab>=2.4->stoq)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in /usr/lib/python2.7/site-packages (from python-dateutil>=1.4.1->stoq)
Collecting contextlib2 (from raven>=5.1.1->stoq)
Using cached contextlib2-0.5.3-py2.py3-none-any.whl
Collecting pyserial>=2.2 (from stoqdrivers>=1.1->stoq)
Using cached pyserial-3.1.1-py2.py3-none-any.whl
Collecting qrcode>=4.0.1 (from stoqdrivers>=1.1->stoq)
Using cached qrcode-5.3-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe>=0.9.2 in /usr/lib/python2.7/site-packages (from Mako>=0.2.5->stoq)
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/lib/python2.7/site-packages (from cffi>=0.6->weasyprint>=0.15->stoq)
Installing collected packages: pypoppler, contextlib2, raven, kiwi-gtk, pyserial, qrcode, stoqdrivers, stoq
Running setup.py install for pypoppler ... error
Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9WY_w_/pypoppler/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-40WAP_-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'poppler' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fPIC -DPYPOPPLER_MAJOR_VERSION=0 -DPYPOPPLER_MINOR_VERSION=12 -DPYPOPPLER_MICRO_VERSION=2 -DPYCAIRO_MAJOR_VERSION=1 -DPYCAIRO_MINOR_VERSION=10 -DPYCAIRO_MICRO_VERSION=0
-I/usr/include/poppler/glib -I/usr/include/poppler -I/usr/include/pygtk-2.0 -I/usr/lib/libffi-3.2.1/include -I/usr/include/pycairo -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/python2.7 -c poppler.c -o build/temp.linux-x86_64-2.7/poppler.o
poppler.c: In function ‘py_poppler_add_constants’:
poppler.c:4504:53: error: ‘POPPLER_TYPE_ORIENTATION’ undeclared (first use in this function)
pyg_enum_add(module, "Orientation", strip_prefix, POPPLER_TYPE_ORIENTATION);
^~~~~~~~~~~~~~~~~~~~~~~~
poppler.c:4504:53: note: each undeclared identifier is reported only once for each function it appears in
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-9WY_w_/pypoppler/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-40WAP_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-9WY_w_/pypoppler/
Seria alguma dependencia que está faltando?