Skip to content

Instantly share code, notes, and snippets.

@RawrBear
Created April 2, 2020 23:06
Show Gist options
  • Save RawrBear/ee597629a22f0d13255bdafb0b48e124 to your computer and use it in GitHub Desktop.
Save RawrBear/ee597629a22f0d13255bdafb0b48e124 to your computer and use it in GitHub Desktop.
OpenSuse 15.1 Error building Beeware
'''
I think I fixed the libcairo2-dev error by running zypper install cairo-devel. Now getting this:
'''
(beeware37) rawrbear@linux:~/sandbox/beeware> python -m pip install --pre beeware
Collecting beeware
Using cached beeware-0.3.0.dev3-py2.py3-none-any.whl (3.1 kB)
Collecting briefcase>=0.3.0.dev3
Using cached briefcase-0.3.0.dev8-py2.py3-none-any.whl (53 kB)
Collecting toga>=0.3.0.dev17
Using cached toga-0.3.0.dev19-py3-none-any.whl (3.7 kB)
Requirement already satisfied: pip>=19.0 in /home/rawrbear/miniconda3/envs/beeware37/lib/python3.7/site-packages (from briefcase>=0.3.0.dev3->beeware) (20.0.2)
Collecting Jinja2<3.0
Using cached Jinja2-2.11.1-py2.py3-none-any.whl (126 kB)
Collecting toml>=0.10.0
Using cached toml-0.10.0-py2.py3-none-any.whl (25 kB)
Collecting GitPython>=3.0.8
Using cached GitPython-3.1.0-py3-none-any.whl (450 kB)
Collecting requests>=2.22.0
Using cached requests-2.23.0-py2.py3-none-any.whl (58 kB)
Collecting cookiecutter>=1.0
Using cached cookiecutter-1.7.0-py2.py3-none-any.whl (40 kB)
Collecting toga-gtk==0.3.0.dev19; sys_platform == "linux"
Using cached toga_gtk-0.3.0.dev19-py3-none-any.whl (38 kB)
Collecting MarkupSafe>=0.23
Using cached MarkupSafe-1.1.1-cp37-cp37m-manylinux1_x86_64.whl (27 kB)
Collecting gitdb<5,>=4.0.1
Using cached gitdb-4.0.2-py3-none-any.whl (63 kB)
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Using cached urllib3-1.25.8-py2.py3-none-any.whl (125 kB)
Collecting idna<3,>=2.5
Using cached idna-2.9-py2.py3-none-any.whl (58 kB)
Requirement already satisfied: certifi>=2017.4.17 in /home/rawrbear/miniconda3/envs/beeware37/lib/python3.7/site-packages (from requests>=2.22.0->briefcase>=0.3.0.dev3->beeware) (2019.11.28)
Collecting chardet<4,>=3.0.2
Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB)
Collecting jinja2-time>=0.1.0
Using cached jinja2_time-0.2.0-py2.py3-none-any.whl (6.4 kB)
Collecting whichcraft>=0.4.0
Using cached whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting binaryornot>=0.2.0
Using cached binaryornot-0.4.4-py2.py3-none-any.whl (9.0 kB)
Collecting future>=0.15.2
Using cached future-0.18.2.tar.gz (829 kB)
Collecting click>=7.0
Using cached click-7.1.1-py2.py3-none-any.whl (82 kB)
Collecting poyo>=0.1.0
Using cached poyo-0.5.0-py2.py3-none-any.whl (10 kB)
Collecting pygobject>=3.14.0
Using cached PyGObject-3.36.0.tar.gz (714 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /home/rawrbear/miniconda3/envs/beeware37/bin/python /home/rawrbear/miniconda3/envs/beeware37/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-lf5hrtfz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --pre -- setuptools wheel pycairo
cwd: None
Complete output (48 lines):
Collecting setuptools
Using cached setuptools-46.1.3-py3-none-any.whl (582 kB)
Collecting wheel
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting pycairo
Using cached pycairo-1.19.1.tar.gz (205 kB)
Building wheels for collected packages: pycairo
Building wheel for pycairo (setup.py): started
Building wheel for pycairo (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/rawrbear/miniconda3/envs/beeware37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qass3t8p/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qass3t8p/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ebfbldmd
cwd: /tmp/pip-install-qass3t8p/pycairo/
Complete output (11 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.7/cairo
running build_ext
error: [Errno 2] No such file or directory: 'gcc': 'gcc'
----------------------------------------
ERROR: Failed building wheel for pycairo
Running setup.py clean for pycairo
Failed to build pycairo
Installing collected packages: setuptools, wheel, pycairo
Running setup.py install for pycairo: started
Running setup.py install for pycairo: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /home/rawrbear/miniconda3/envs/beeware37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qass3t8p/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qass3t8p/pycairo/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-record-182q40ba/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-lf5hrtfz/overlay --compile --install-headers /tmp/pip-build-env-lf5hrtfz/overlay/include/python3.7m/pycairo
cwd: /tmp/pip-install-qass3t8p/pycairo/
Complete output (11 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.7/cairo
running build_ext
error: [Errno 2] No such file or directory: 'gcc': 'gcc'
----------------------------------------
ERROR: Command errored out with exit status 1: /home/rawrbear/miniconda3/envs/beeware37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qass3t8p/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-qass3t8p/pycairo/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-record-182q40ba/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-lf5hrtfz/overlay --compile --install-headers /tmp/pip-build-env-lf5hrtfz/overlay/include/python3.7m/pycairo Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/rawrbear/miniconda3/envs/beeware37/bin/python /home/rawrbear/miniconda3/envs/beeware37/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-lf5hrtfz/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --pre -- setuptools wheel pycairo Check the logs for full command output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment