View: 8946|Reply: 9

pip install fails [SOLVED] :-D

[Copy link]

17

threads

48

posts

251

credits

Intermediate member

Rank: 3Rank: 3

credits
251
Published in 2017-6-19 21:20:43 | Show all floors |Read mode
Edited by liderbug at 2017-6-20 01:55

rangepipc2 4.11.1-sun50iw2 #19



I'm trying to install "butterfly", a terminal via the browser.
# python3 -V
Python 3.5.2


# apt-get install -y python3-pip
ran OK


# pip install butterfly
Collecting butterfly
  Using cached butterfly-3.1.5-py2.py3-none-any.whl
Collecting pyOpenSSL (from butterfly)
  Using cached pyOpenSSL-17.0.0-py2.py3-none-any.whl
Collecting tornado>=3.2 (from butterfly)
  Using cached tornado-4.5.1.tar.gz
Requirement already satisfied: six>=1.5.2 in /usr/local/lib/python2.7/dist-packages (fr
om pyOpenSSL->butterfly)
Collecting cryptography>=1.7 (from pyOpenSSL->butterfly)
  Using cached cryptography-1.9.tar.gz
Collecting singledispatch (from tornado>=3.2->butterfly)
  Using cached singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting certifi (from tornado>=3.2->butterfly)
  Using cached certifi-2017.4.17-py2.py3-none-any.whl
Collecting backports_abc>=0.4 (from tornado>=3.2->butterfly)
  Using cached backports_abc-0.5-py2.py3-none-any.whl
Requirement already satisfied: idna>=2.1 in /usr/local/lib/python2.7/dist-packages (fro
m cryptography>=1.7->pyOpenSSL->butterfly)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/local/lib/python2.7/dist-pack
ages (from cryptography>=1.7->pyOpenSSL->butterfly)
Requirement already satisfied: enum34 in /usr/local/lib/python2.7/dist-packages (from c
ryptography>=1.7->pyOpenSSL->butterfly)
Requirement already satisfied: ipaddress in /usr/local/lib/python2.7/dist-packages (fro
m cryptography>=1.7->pyOpenSSL->butterfly)
Collecting cffi>=1.7 (from cryptography>=1.7->pyOpenSSL->butterfly)
  Using cached cffi-1.10.0.tar.gz
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/dist-packages (fro
m cffi>=1.7->cryptography>=1.7->pyOpenSSL->butterfly)
Installing collected packages: cffi, cryptography, pyOpenSSL, singledispatch, certifi,
backports-abc, tornado, butterfly
  Running setup.py install for cffi ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__f
ile__='/tmp/pip-build-isrEa_/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__)
;code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" i
nstall --record /tmp/pip-482f3d-record/install-record.txt --single-version-externally-m
anaged --compile:
    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/recompiler.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/verifier.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/__init__.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/lock.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/api.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/cparser.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/error.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/model.py -> build/lib.linux-aarch64-2.7/cffi
    copying cffi/vengine_cpy.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
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-aarch64-2.7
    creating build/temp.linux-aarch64-2.7/c
    aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -f
no-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat
-Werror=format-security -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.linu
x-aarch64-2.7/c/_cffi_backend.o
    c/_cffi_backend.c:2:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'aarch64-linux-gnu-gcc' failed with exit status 1   
   

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-is
rEa_/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
-482f3d-record/install-record.txt --single-version-externally-managed --compile" failed
with error code 1 in /tmp/pip-build-isrEa_/cffi/

----------------------------------------
I've installed on another SBC without a problem. Have I missed something?  Is there a
system build problem?  How to fix?
Thanks
bug

17

threads

48

posts

251

credits

Intermediate member

Rank: 3Rank: 3

credits
251
 Author| Published in 2017-6-20 01:49:33 | Show all floors

17

threads

48

posts

251

credits

Intermediate member

Rank: 3Rank: 3

credits
251
 Author| Published in 2017-6-20 01:54:02 | Show all floors
[SOLVED]
I had missed the no Python.h in the output (it was late and I was tired - my excuse and...)
anyhow, tracked that down Python.h then apt-get install build-essential libssl-dev libffi-dev python-dev
and uninstall bf and install bf and then find out it's
/usr/local/bin/butterfly.server.py and not
/usr/bin/bf...

It's working.
Published in 2025-10-7 19:40:39 | Show all floors
I assumed it is usually a preview to post in case others appeared to be having problems getting acquainted with nonetheless We're a little bit hesitant merely i'm permitted to decide to put companies plus covers for listed here.        đá gà cpc1 – trường đấu đẳng cấp bậc nhất tại đông nam á đá gà cpc2 – đấu trường gà campuchia đỉnh cao năm 2025
Published in 2025-10-7 22:43:20 | Show all floors
Thanks for the post and great tips.. even I also think that hard work is the most important area of getting success.        IPTV GERMAN
Published in 2025-10-23 21:57:46 | Show all floors
Excellent publish, Thanks with regard to discussing This particular understanding. Wonderfully created post, if perhaps just about all writers provided exactly the same degree of content material while you, the web will be a far better location. Make sure you continue the good work!        Lithium Battery Fire Safety
Published in 2025-10-25 19:37:34 | Show all floors
I've got not long ago started off some sort of blog site, the internet people produce here possesses served everyone enormously. Appreciate it intended for all of your current time period & do the job.        halte4d

11

threads

224

posts

1271

credits

Gold member

Rank: 6Rank: 6

credits
1271
Published in 2025-10-27 19:57:38 | Show all floors
I've got not long ago started off some sort of blog site, the internet people produce here possesses served everyone enormously. Appreciate it intended for all of your current time period & do the job.        Quelles sont les compétences marketing clés pour réussir en Drop Shipping ?

11

threads

224

posts

1271

credits

Gold member

Rank: 6Rank: 6

credits
1271
Published in 5 daybefore | Show all floors
I’m influenced using the surpassing as well as preachy itemizing that you simply provide such small timing.        veiligheids hekke
Published in 3 daybefore | Show all floors
You could be allowed to put up manufacturers, except for shortcuts, in the event that they've been recognized not to mention concerning content.        bride underwear
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list