pip3 install pycryptodome failing on IBM i
Hi,
trying to install pycryptodome on IBM i (V7R2) with python
getting among a long list:
Testing support for clang
Target does not support clang
Testing support for gcc
Target does not support gcc
Testing support for stdint.h header
Target does not support stdint.h header
Testing support for 128-bit integer
Target does not support 128-bit integer
Testing support for cpuid.h header
Target does not support cpuid.h header
Testing support for intrin.h header
Target does not support intrin.h header
Testing support for posix_memalign
Target does not support posix_memalign
…
it copied a bunch of files & then when it was time to run gcc,
gcc -pthread -Wno-unused-result -DNDEBUG -D__PASE__ -DPASE -std=c99 -DPYCRYP
enSys/QIBM/ProdData/OPS/Python3.4/include/python3.4m -c src/MD2.c -o build/tem
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
[31m Failed building wheel for pycryptodome [0m
[?25h Running setup.py clean for pycryptodome
Failed to build pycryptodome
Can you please assist?
Thank you
Comments (7)
-
-
@Kevin Adler recommendation is a good one, to join the Ryver chat and pursue any questions there.
That being said, I was able to install
pycryptodome
without issue. It’s important to NOT use the Python shipped in 5733-OPS, though (we in fact recommendDLTLICPGM 5733OPS
if no production code is using it). You will want to install thepython3*
RPMs.
To get compilers and related tools, you can simply runyum group install “Developer Tools”
which will give you gcc among other things. You may also need to set your PATH appropriately. -
reporter Looking at Ryver, I saw the same issue with somebody else.
@Jesse G : Thank you. I am installing from the “Open Source Package Manager” in ACS.
does it make a diff?
Thanks again,
Roger
Bill GravelleMon Aug 29, 2016 at 10:48am
TRANSCRIPT:
AndresMon Aug 29 at 4:29pm
Hi, Maybe this is not the forum to post this. I tried to install pycrypto (pip) and get an compile error ( running build_ext
running build_configure
checking for gcc... no )TRANSCRIPT:
AndresMon Aug 29, 2016 at 10:29am
I dont understand yet gcc.. do i need to setup a gcc enviroment to be able to compile pycrypto?
Jack WoehrFri Sep 9 at 1:12pm
Install gcc. Make sure it's in your path. If you have multiple gcc installations be sure various env vars are set up correctly.
-
reporter Hi again,
I added the PATH as suggested by your link, same result.
Quote:
gcc -pthread -Wno-unused-result -DNDEBUG -D__PASE__ -DPASE -std=c99 -DPYCRYPTO_BIG_ENDIAN -DSYS_BITS=32 -DLTC_NO_ASM -Isrc/ -I/QOpenSys/QIBM/ProdData/OPS/Python3.4/include/python3.4m -c src/MD2.c -o build/temp.os400-powerpc-3.4/src/MD2.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
Command "/QOpenSys/QIBM/ProdData/OPS/Python3.4/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ukynw0vv/pycryptodome/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-bi7gill8-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ukynw0vv/pycryptodome/
Unquote
However, when I tried to execute the same command manually & I got:
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -O2 -g -maix64 -O2 -g -maix64 -fPIC -DPYCRYPTO_BIG_
NDIAN -DSYS_BITS=64 -DLTC_NO_ASM -Isrc/ -I/QOpenSys/pkgs/include/python3.6m -c src/MD2.c -o build/temp.os400-powerpc64-3.6/src/M
2.o
gcc.bin: error: src/MD2.c: No such file or directory
gcc.bin: fatal error: no input files
compilation terminated.
Thank you again
Roger
-
-
You will need to stop using 5733OPS Python (the
QOpenSys/QIBM/ProdData/OPS/Python3.4/bin/python
is the OPS version). Switch to using RPM python3 and pip3 and it should work (both commands are in the RPM location,/QOpenSys/pkgs/bin
)
If you run
which python3
orwhich pip3
it should return the RPM path -
reporter Jesse,
I removed 5733OPS pythons (2 & 3) & the pip3 install worked.Thank you very much
Roger
-
reporter - changed status to resolved
Thank you Jesse
- Log in to comment
Sorry, pycroptodome is not a package we ship as an RPM and not something we’ve tried building before. Perhaps the Python community over on our Ryver forum (use http://ibm.biz/ibmioss-chat to sign up if you haven’t already).