ERROR: Could not build wheels for tcod which use PEP 517 and cannot be installed directly
vscala opened this issue · 1 comments
vscala commented
Can't install tcod
Collecting tcod
Using cached tcod-11.13.1.tar.gz (2.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Collecting cffi<2,>=1.12.0
Using cached cffi-1.14.0-cp35-cp35m-manylinux1_x86_64.whl (399 kB)
Requirement already satisfied: numpy<2,>=1.10 in /usr/lib/python3/dist-packages (from tcod) (1.11.0)
Requirement already satisfied: pycparser in /usr/lib/python3/dist-packages (from cffi<2,>=1.12.0->tcod) (2.14)
Building wheels for collected packages: tcod
Building wheel for tcod (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /home/vincent/.local/lib/python3.5/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpkyx1afh3
cwd: /tmp/pip-install-bz5zu4aa/tcod
Complete output (134 lines):
fatal: Not a git repository (or any of the parent directories): .git
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
copying libtcodpy.py -> build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/tdl
copying tdl/event.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/style.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/__init__.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/map.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/noise.py -> build/lib.linux-x86_64-3.5/tdl
copying tdl/version.py -> build/lib.linux-x86_64-3.5/tdl
creating build/lib.linux-x86_64-3.5/tcod
copying tcod/event.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/tileset.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/color.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/console.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/loader.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/path2.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/libtcodpy.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/context.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/image.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/event_constants.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/bsp.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/random.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/__init__.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/map.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/constants.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/sdl.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/path.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/noise.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/version.py -> build/lib.linux-x86_64-3.5/tcod
copying tcod/_internal.py -> build/lib.linux-x86_64-3.5/tcod
copying tdl/terminal8x8.png -> build/lib.linux-x86_64-3.5/tdl
copying tcod/py.typed -> build/lib.linux-x86_64-3.5/tcod
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.5/tcod._libtcod.c'
creating build/temp.linux-x86_64-3.5
building 'tcod._libtcod' extension
creating build/temp.linux-x86_64-3.5/build
creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/tcod
creating build/temp.linux-x86_64-3.5/libtcod
creating build/temp.linux-x86_64-3.5/libtcod/src
creating build/temp.linux-x86_64-3.5/libtcod/src/libtcod
creating build/temp.linux-x86_64-3.5/libtcod/src/vendor
creating build/temp.linux-x86_64-3.5/libtcod/src/vendor/utf8proc
creating build/temp.linux-x86_64-3.5/libtcod/src/vendor/zlib
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/tcod._libtcod.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/tcod._libtcod.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c tcod/tcod.c -o build/temp.linux-x86_64-3.5/tcod/tcod.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c tcod/noise.c -o build/temp.linux-x86_64-3.5/tcod/noise.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
tcod/noise.c: In function ‘NoiseSampleMeshGrid’:
tcod/noise.c:20:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
# pragma omp parallel
^
tcod/noise.c:23:0: warning: ignoring #pragma omp for [-Wunknown-pragmas]
# pragma omp for schedule(static)
^
tcod/noise.c: In function ‘NoiseSampleOpenMeshGrid’:
tcod/noise.c:60:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
# pragma omp parallel
^
tcod/noise.c:64:0: warning: ignoring #pragma omp for [-Wunknown-pragmas]
# pragma omp for schedule(static)
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c tcod/tdl.c -o build/temp.linux-x86_64-3.5/tcod/tdl.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c tcod/path.c -o build/temp.linux-x86_64-3.5/tcod/path.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
tcod/path.c:59:13: warning: ‘array2d_in_range’ defined but not used [-Wunused-function]
static bool array2d_in_range(const struct NArray* arr, int i, int j)
^
tcod/path.c:140:13: warning: ‘set_array2d_int’ defined but not used [-Wunused-function]
static void set_array2d_int(struct NArray* arr, int i, int j, int value)
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/sys_sdl_img_bmp.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/sys_sdl_img_bmp.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/tileset_bdf.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/tileset_bdf.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
libtcod/src/libtcod/tileset_bdf.c: In function ‘load_binary_file’:
libtcod/src/libtcod/tileset_bdf.c:62:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, 1, fsize, file);
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/context.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/context.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/wrappers.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/wrappers.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/tileset_truetype.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/tileset_truetype.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
libtcod/src/libtcod/tileset_truetype.c: In function ‘alloc_read_whole_file’:
libtcod/src/libtcod/tileset_truetype.c:62:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
fread(buffer, 1, fsize, file);
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/color.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/color.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/console_printing.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/console_printing.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/renderer_gl1.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/renderer_gl1.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/console_init.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/console_init.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/parser_c.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/parser_c.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/list_c.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/list_c.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/zip_c.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/zip_c.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
libtcod/src/libtcod/zip_c.c: In function ‘TCOD_zip_put_int’:
libtcod/src/libtcod/zip_c.c:97:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
TCOD_list_push(zip->buffer,(void *)val);
^
libtcod/src/libtcod/zip_c.c: In function ‘TCOD_zip_put_float’:
libtcod/src/libtcod/zip_c.c:112:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
TCOD_zip_put_int(pzip,* (int *)(&val) );
^
libtcod/src/libtcod/zip_c.c: In function ‘TCOD_zip_get_int’:
libtcod/src/libtcod/zip_c.c:268:9: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int i=(int)TCOD_list_get(zip->buffer,zip->offset);
^
libtcod/src/libtcod/zip_c.c: In function ‘TCOD_zip_get_float’:
libtcod/src/libtcod/zip_c.c:287:2: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return *(float *)(&i);
^
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/pathfinder_frontier.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/pathfinder_frontier.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPy_LIMITED_API=50659328 -I. -Ilibtcod/src/vendor/ -Ilibtcod/src/vendor/zlib/ -I/usr/include/python3.5m -c libtcod/src/libtcod/renderer_sdl2.c -o build/temp.linux-x86_64-3.5/libtcod/src/libtcod/renderer_sdl2.o -I/usr/include/SDL2 -D_REENTRANT -std=c99 -flto -O3 -g -fPIC -Wno-deprecated-declarations
libtcod/src/libtcod/renderer_sdl2.c: In function ‘prepare_sdl2_atlas’:
libtcod/src/libtcod/renderer_sdl2.c:113:9: error: ‘SDL_PIXELFORMAT_RGBA32’ undeclared (first use in this function)
SDL_PIXELFORMAT_RGBA32,
^
libtcod/src/libtcod/renderer_sdl2.c:113:9: note: each undeclared identifier is reported only once for each function it appears in
libtcod/src/libtcod/renderer_sdl2.c: In function ‘TCOD_sdl2_render_texture’:
libtcod/src/libtcod/renderer_sdl2.c:365:9: error: ‘SDL_PIXELFORMAT_RGBA32’ undeclared (first use in this function)
SDL_PIXELFORMAT_RGBA32,
^
libtcod/src/libtcod/renderer_sdl2.c: In function ‘sdl2_accumulate’:
libtcod/src/libtcod/renderer_sdl2.c:470:27: warning: implicit declaration of function ‘SDL_CreateRGBSurfaceWithFormat’ [-Wimplicit-function-declaration]
SDL_Surface* canvas = SDL_CreateRGBSurfaceWithFormat(
^
libtcod/src/libtcod/renderer_sdl2.c:471:39: error: ‘SDL_PIXELFORMAT_RGBA32’ undeclared (first use in this function)
0, tex_width, tex_height, 32, SDL_PIXELFORMAT_RGBA32);
^
libtcod/src/libtcod/renderer_sdl2.c: In function ‘sdl2_save_screenshot’:
libtcod/src/libtcod/renderer_sdl2.c:545:7: error: ‘SDL_PIXELFORMAT_RGBA32’ undeclared (first use in this function)
SDL_PIXELFORMAT_RGBA32,
^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for tcod
Failed to build tcod
ERROR: Could not build wheels for tcod which use PEP 517 and cannot be installed directly
HexDecimal commented
You'll need SDL 2.0.5 or later. Your current version is too old.