Page MenuHomeSolus

python3-devel should be a dependency of python3-gobject
Closed, InvalidPublic

Description

I have been meaning to submit this for a while. Attempting to run a pygobject program returns this error if python3-devel is not installed.

build/temp.linux-x86_64-3.5/_openssl.c:18:20: fatal error: Python.h: No such file or directory
     #include <Python.h>
                        ^
    compilation terminated.
    error: command 'x86_64-solus-linux-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-46kg6ffo/cryptography/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-o8ko9gv5-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-46kg6ffo/cryptography/

I may be wrong, but after I install python3-devel, the problem is fixed.

Event Timeline

What are you doing? Output suggests it is building/installing a python program through pip, you will need the python headers for that, but it shouldn't be a dependency for run-time.

/tmp/pip-build-46kg6ffo/cryptography/setup.py install --record /tmp/pip-o8ko9gv5-record/install-record.txt --single-version-externally-managed --compile
JoshStrobl added a subscriber: JoshStrobl.

Closing due to lack of response.

Weird my response never went through. I'll do some testing on my basically fresh system soon and I will notify you of any findings