Hi there. I tried installing pypotrace on my computer and got the error below. It gives a warning regarding numpy and finally an error related to potrace itself. Here are the versions of the programs installed in my computer.
agg 2.5-9
potrace 1.16
numpy 1.18.4
I am able to use numpy and potrace without problems, so I guess their installations are correct. I also made sure to ignore the pip cache with --no-cache-dir, in case it was reusing files from a previous failed compilation.
My computer runs Manjaro Linux 20.0.1 Lysia.
ERROR: Command errored out with exit status 1:
command: /home/user/.anaconda3/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-j7b2pxgk/pypotrace/setup.py'"'"'; __file__='"'"'/tmp/pip-install-j7b2pxgk/pypotrace/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-69h483eu
cwd: /tmp/pip-install-j7b2pxgk/pypotrace/
Complete output (47 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/potrace
copying potrace/__init__.py -> build/lib.linux-x86_64-3.7/potrace
creating build/lib.linux-x86_64-3.7/potrace/agg
copying potrace/agg/__init__.py -> build/lib.linux-x86_64-3.7/potrace/agg
running build_ext
building 'potrace._potrace' extension
creating build/temp.linux-x86_64-3.7
creating build/temp.linux-x86_64-3.7/potrace
gcc -pthread -B /home/user/.anaconda3/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/user/.anaconda3/lib/python3.7/site-packages/numpy/core/include -I/home/user/.anaconda3/include/python3.7m -c potrace/_potrace.c -o build/temp.linux-x86_64-3.7/potrace/_potrace.o
In file included from /home/user/.anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832,
from /home/user/.anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/user/.anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from potrace/_potrace.c:622:
/home/user/.anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
potrace/_potrace.c: In function ‘__pyx_f_7potrace_8_potrace_path_from_ptr’:
potrace/_potrace.c:8452:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
8452 | __pyx_t_3 = __Pyx_PyInt_From_int(((int)__pyx_v_cur_path)); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 382, __pyx_L1_error)
| ^
potrace/_potrace.c: In function ‘__pyx_f_7potrace_8_potrace_init_curves_tree’:
potrace/_potrace.c:8598:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
8598 | __pyx_t_2 = __Pyx_PyInt_From_int(((int)__pyx_v_cur_path)); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 397, __pyx_L1_error)
| ^
potrace/_potrace.c: In function ‘__Pyx_PyInt_As_bool’:
potrace/_potrace.c:17590:54: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
17590 | return (bool) (((bool)-1)*(((((bool)digits[1]) << PyLong_SHIFT) | (bool)digits[0])));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
potrace/_potrace.c:17608:54: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
17608 | return (bool) (((bool)-1)*(((((((bool)digits[2]) << PyLong_SHIFT) | (bool)digits[1]) << PyLong_SHIFT) | (bool)digits[0])));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
potrace/_potrace.c:17626:54: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
17626 | return (bool) (((bool)-1)*(((((((((bool)digits[3]) << PyLong_SHIFT) | (bool)digits[2]) << PyLong_SHIFT) | (bool)digits[1]) << PyLong_SHIFT) | (bool)digits[0])));
| ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pthread -shared -B /home/user/.anaconda3/compiler_compat -L/home/user/.anaconda3/lib -Wl,-rpath=/home/user/.anaconda3/lib -Wl,--no-as-needed -Wl,--sysroot=/ build/temp.linux-x86_64-3.7/potrace/_potrace.o -lpotrace -o build/lib.linux-x86_64-3.7/potrace/_potrace.cpython-37m-x86_64-linux-gnu.so
/home/user/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/potrace/_potrace.o: unable to initialize decompress status for section .debug_info
/home/user/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/potrace/_potrace.o: unable to initialize decompress status for section .debug_info
/home/user/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/potrace/_potrace.o: unable to initialize decompress status for section .debug_info
/home/user/.anaconda3/compiler_compat/ld: build/temp.linux-x86_64-3.7/potrace/_potrace.o: unable to initialize decompress status for section .debug_info
build/temp.linux-x86_64-3.7/potrace/_potrace.o: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pypotrace
Hi there. I tried installing pypotrace on my computer and got the error below. It gives a warning regarding numpy and finally an error related to potrace itself. Here are the versions of the programs installed in my computer.
I am able to use numpy and potrace without problems, so I guess their installations are correct. I also made sure to ignore the pip cache with
--no-cache-dir
, in case it was reusing files from a previous failed compilation.My computer runs Manjaro Linux 20.0.1 Lysia.