katana icon indicating copy to clipboard operation
katana copied to clipboard

when i try to compile in ubuntu i get this error

Open balasid1404 opened this issue 4 years ago • 2 comments

Running pdftotext-2.1.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-viqui05x/pdftotext-2.1.5/egg-dist-tmp-gwl5jj4i /usr/lib/python3.7/distutils/dist.py:274: UserWarning: Unknown distribution option: 'long_description_content_type' warnings.warn(msg) pdftotext.cpp:1:10: fatal error: Python.h: No such file or directory #include <Python.h> ^~~~~~~~~~ compilation terminated. error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

can someone please help me when i try to use python3 install setup.py it runs and always stops at this place can anyone please help me with this

balasid1404 avatar Dec 31 '20 12:12 balasid1404

and also i use lubuntu 18 and python3.7 and also i tried both with virtual environment and dirsct compilation none works please help me

balasid1404 avatar Dec 31 '20 12:12 balasid1404

Have you tried Googling that error message?

Not finding Python.h indicates that you need to install the python3-dev library. sudo apt-get install python3-dev will do the trick on an Ubuntu/Debian based distro.

On Thu, Dec 31, 2020 at 7:44 AM balasid1404 [email protected] wrote:

and also i use lubuntu 18 and python3.7 and also i tried both with virtual environment and dirsct compilation none works please help me

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JohnHammond/katana/issues/28#issuecomment-752950054, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABP7KUQW6RWIYAZMEBYUYQ3SXRWZHANCNFSM4VPMJ5DQ .

JohnHammond avatar Jan 03 '21 03:01 JohnHammond