flupke / pypotrace

Python bindings for potrace library
Other
165 stars 43 forks source link

Ubuntu installation fails due to wrong dependency installation #41

Open hdpz opened 3 years ago

hdpz commented 3 years ago

Following github documentation on ubuntu installation, the dependencies are listed as the following build-essential python-dev libagg-dev libpotrace-dev pkg-config

However running sudo apt install python-dev actually installs dependencies for python 2 as following logs tell us Note, selecting 'python-dev-is-python2' instead of 'python-dev'

This in turn results in the following error when trying to install pypotrace x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/tmp/pip-build-env-3rpejndj/overlay/lib/python3.8/site-packages/numpy/core/include -I/tmp/pip-build-env-3rpejndj/overlay/lib/python3.8/site-packages/numpy/core/include -I/home/hugo/coding/clipdrop-deploy/venv/include -I/usr/include/python3.8 -c potrace/_potrace.c -o /tmp/pip-req-build-_actguqn/build/temp.linux-x86_64-3.8/potrace/_potrace.o potrace/_potrace.c:31:10: fatal error: Python.h: No such file or directory 31 | #include "Python.h" | ^~~~~~~~~~

Doing PR to move documentation to python3 if that is ok with you

hdpz commented 3 years ago

Created a PR, happy to discuss