Ask Your Question
0

How do I get python-axolotl-curve25519 to install with pip successfully?

asked 2018-05-31 16:46:54 -0500

johntate gravatar image

I need the python-axolotl module for the Gajim OMEMO plugin. However, I can't get it to install, here is the output:

# pip install python-axolotl
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting python-axolotl
  Using cached https://files.pythonhosted.org/packages/27/99/3b905f0061aba53526408d286e53cee3b00c9fd256eed7d21d5d41033690/python-axolotl-0.1.42.tar.gz
Requirement already satisfied: cryptography in /usr/lib64/python2.7/site-packages (from python-axolotl)
Collecting python-axolotl-curve25519 (from python-axolotl)
  Using cached https://files.pythonhosted.org/packages/59/ca/c8111718bcc8da18e9b9868e784293232a58c57159a5ea18f00ee967258f/python-axolotl-curve25519-0.4.1.post2.tar.gz
Collecting protobuf>=3.0.0.b2 (from python-axolotl)
  Using cached https://files.pythonhosted.org/packages/9d/61/54c3a9cfde6ffe0ca6a1786ddb8874263f4ca32e7693ad383bd8cf935015/protobuf-3.5.2.post1-cp27-cp27mu-manylinux1_x86_64.whl
Requirement already satisfied: idna>=2.1 in /usr/lib/python2.7/site-packages (from cryptography->python-axolotl)
Requirement already satisfied: asn1crypto>=0.21.0 in /usr/lib/python2.7/site-packages (from cryptography->python-axolotl)
Requirement already satisfied: six>=1.4.1 in /usr/lib/python2.7/site-packages (from cryptography->python-axolotl)
Requirement already satisfied: cffi>=1.7 in /usr/lib64/python2.7/site-packages (from cryptography->python-axolotl)
Requirement already satisfied: enum34 in /usr/lib/python2.7/site-packages (from cryptography->python-axolotl)
Requirement already satisfied: ipaddress in /usr/lib/python2.7/site-packages (from cryptography->python-axolotl)
Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from protobuf>=3.0.0.b2->python-axolotl)
Requirement already satisfied: pycparser in /usr/lib/python2.7/site-packages (from cffi>=1.7->cryptography->python-axolotl)
Installing collected packages: python-axolotl-curve25519, protobuf, python-axolotl
  Running setup.py install for python-axolotl-curve25519 ... error
    Complete output from command /usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fQYfYD/python-axolotl-curve25519/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-i6PkjR-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python2.7/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '0.4.1-2' to '0.4.1.post2'
      normalized_version,
    running install
    running build
    running build_ext
    building 'axolotl_curve25519' extension
    creating build
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/curve
    creating build/temp.linux-x86_64-2.7/curve/ed25519
    creating build/temp.linux-x86_64-2.7/curve/ed25519/additions
    creating build/temp.linux-x86_64-2.7/curve/ed25519/nacl_sha512
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Icurve/ed25519/nacl_includes -Icurve/ed25519/additions -Icurve/ed25519 -I/usr/include/python2.7 -c curve/curve25519-donna.c -o build/temp.linux-x86_64-2.7/curve/curve25519-donna.o
    gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fQYfYD/python-axolotl-curve25519/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-05-31 16:51:50 -0500

johntate gravatar image

I solved it by installing the package redhat-rpm-config and you need python-devel as well. Basically it seems python-pip has missing dependencies.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-05-31 16:46:54 -0500

Seen: 1,233 times

Last updated: May 31 '18