Python setup.py egg_info failed with error code 1

I am trying to install Let’s Encrypt with the letsencrypt-auto file:

./letsencrypt-auto

But I am getting the output:

Updating letsencrypt and virtual environment dependencies.....Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-D2TaBP/cffi

I’m sure I’m doing something wrong, but I can’t figure it out. Do I need to install any more requirements? I have installed python-setuptools using both apt-get and pip.

I am running Debian 8.0 jessie on a Raspberry Pi v2.

Verbose output:

    Complete output from command python setup.py egg_info:
    arm-linux-gnueabihf-gcc: internal compiler error: Illegal instruction (program as)
    Please submit a full bug report, with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
    arm-linux-gnueabihf-gcc: internal compiler error: Illegal instruction (program as)
    Please submit a full bug report, with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.9/README.Bugs for instructions.
    No working compiler found, or bogus compiler options passed to the compiler from Python's distutils module.
    See the error messages above. (If they are about -mno-fused-madd and you are on OS/X 10.8, see http://stackoverflow.com/questions/22313407/ .)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ve5RmD/cffi

Please tell me if you need any other information.

I get the same thing using CentOS 6.7

Updating letsencrypt and virtual environment dependencies…/root/.local/share/letsencrypt/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
./root/.local/share/letsencrypt/lib/python2.6/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-v6rbJ0/ConfigArgParse

python 2.6 support is in the process of being readded backed into Letsencrypt client https://github.com/letsencrypt/letsencrypt/pull/1257

Same here on ubuntu 14.04

I have narrowed the problem down to the installation of CFFI.
pip install cffi
Returns:

Collecting cffi
Using cached cffi-1.3.0.tar.gz
Complete output from command python setup.py egg_info:
arm-linux-gnueabihf-gcc: internal compiler error: Illegal instruction (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
arm-linux-gnueabihf-gcc: internal compiler error: Illegal instruction (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.

    No working compiler found, or bogus compiler options
    passed to the compiler from Python's distutils module.
    See the error messages above.
    (If they are about -mno-fused-madd and you are on OS/X 10.8,
    see http://stackoverflow.com/questions/22313407/ .)

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-YuJUia/cffi

1 Like

I am sorry, I have wasted your time. It appears that I cannot compile any C applications at all. I can probably solve this myself, thank you.

this worked, thanks.

I’m running into exactly the same problem on CentOS 7 on which I run a cPanel WHM server.

I enabled compilers for the user account I’m logged in as and no longer see the InsecurePlatformWarning.

I also installed Python’s setuptools 18.7.1; I believe successfully as no errors were returned.

However I’m still getting the following error when running letsencrypt-auto with the --server and --help flags:

"python setup.py egg_info" failed with error code 1 in /tmp/pip-build-pcMK_s/cffi

@PlanetMars Did installing CFFI solve your problem?

Are there other suggestions for fixing this?

Thanks for your help.

Jason

I get the error if I run as an ordinary user, but not if I elevate to root through sudo.

I now see that the letsencrypt client requires root privileges:

Hopefully my public pondering helps someone in the future.

Cheers, Jason

1 Like

Hi,dear
i think that you can “yum install gcc-c++.x86_64” to solve this question.
don’t care my english.
have a good day!