cffi-1.15.0 for Python 2.7.x

Request a package to be made here. Make sure you have searched before requesting.

cffi-1.15.0 for Python 2.7.x

Postby venkatmarepalli » Sat Mar 09, 2024 7:22 pm

I am trying to move my application to Graviton machine. My Application run Python 2.7.x and Django framework.

I was able to create a Docker image with centos:7 and openresty libraries but when I am trying to install my requirements I am facing issue with cffi package. Unable to install this on arm64 with python 2.7.x

Is there a fork of this package which I can use or can someone help me resolve this with a new package ? Unfortunately I cannot upgrade my application to 3.x at this time.

Error I am seeing is below:

[b]pip install cffi==1.11.5
[/b]

[quote]ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1oIv64/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1oIv64/cffi/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-record-VEei7i/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/cffi
cwd: /tmp/pip-install-1oIv64/cffi/
Complete output (55 lines):
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libffi' found
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-2.7
creating build/lib.linux-aarch64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/model.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/error.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/api.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/c
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-aarch64-2.7/c/_cffi_backend.o
c/_cffi_backend.c:15:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1oIv64/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1oIv64/cffi/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-record-VEei7i/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/cffi Check the logs for full command output.[/quote]
venkatmarepalli
 
Posts: 1
Joined: Sat Mar 09, 2024 7:13 pm

Return to Package Requests

Who is online

Users browsing this forum: No registered users and 4 guests