pdftotext library is a requirement in requirements.txt. While trying to
push to heroku, I get the following error:

remote:          Running setup.py install for pdftotext: started
remote:            Running setup.py install for pdftotext: finished
with status 'error'
remote:            Complete output from command
/app/.heroku/python/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-rnbekz45/pdftotext/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-o0if2tl3-record/install-record.txt
--single-version-externally-managed --compile:
remote:
/app/.heroku/python/lib/python3.6/distutils/dist.py:261: UserWarning:
Unknown distribution option: 'long_description_content_type'
remote:              warnings.warn(msg)
remote:            running install
remote:            running build
remote:            running build_ext
remote:            building 'pdftotext' extension
remote:            creating build
remote:            creating build/temp.linux-x86_64-3.6
remote:            gcc -pthread -Wno-unused-result -Wsign-compare
-DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPOPPLER_CPP_AT_LEAST_0_30_0=0
-I/app/.heroku/python/include/python3.6m -c pdftotext.cpp -o
build/temp.linux-x86_64-3.6/pdftotext.o -Wall
remote:            pdftotext.cpp:3:10: fatal error:
poppler/cpp/poppler-document.h: No such file or directory
remote:             #include <poppler/cpp/poppler-document.h>
remote:                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
remote:            compilation terminated.
remote:            error: command 'gcc' failed with exit status 1
remote:
remote:            ----------------------------------------
remote:        Command "/app/.heroku/python/bin/python -u -c "import
setuptools, 
tokenize;__file__='/tmp/pip-build-rnbekz45/pdftotext/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-o0if2tl3-record/install-record.txt
--single-version-externally-managed --compile" failed with error code
1 in /tmp/pip-build-rnbekz45/pdftotext/
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed

Normally I'd solve this by installing libpoppler-cpp-dev with apt. But on
heroku, I don't have root access to do that. Is there a solution for this?
Sincerely yours,

 Joel G Mathew

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAA%3Diw__jf69Dcd4QZAGQrSjbL51biA3kZq_LuV%3D6Vu6kHkYj1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to