Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pycairo python 3.9.7 Intel x64 Mac OS X 10.11.6 (macosx-10.9-x86_64) #241

Open
francisuk1989 opened this issue Aug 31, 2021 · 1 comment

Comments

@francisuk1989
Copy link

I have the following errors pyciso for 10.11.6 on a 2008 Mac Pro, Yes is outdated but is the only Mac that i own (for now)

  Using cached PyGObject-3.30.5.tar.gz (690 kB)
Collecting pycairo>=1.11.1
  Using cached pycairo-1.20.1.tar.gz (344 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: pygobject, pycairo
  Building wheel for pygobject (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s0/35n1fkk97gx2fx9q3fcvhygw0000gn/T/pip-install-vidzd3jw/pygobject_111a486e142c433f9391c5b812801d4c/setup.py'"'"'; __file__='"'"'/private/var/folders/s0/35n1fkk97gx2fx9q3fcvhygw0000gn/T/pip-install-vidzd3jw/pygobject_111a486e142c433f9391c5b812801d4c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/s0/35n1fkk97gx2fx9q3fcvhygw0000gn/T/pip-wheel-c0k9zvm1
       cwd: /private/var/folders/s0/35n1fkk97gx2fx9q3fcvhygw0000gn/T/pip-install-vidzd3jw/pygobject_111a486e142c433f9391c5b812801d4c/
  Complete output (43 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.9
  creating build/lib.macosx-10.9-x86_64-3.9/pygtkcompat
  copying pygtkcompat/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/pygtkcompat
  copying pygtkcompat/generictreemodel.py -> build/lib.macosx-10.9-x86_64-3.9/pygtkcompat
  copying pygtkcompat/pygtkcompat.py -> build/lib.macosx-10.9-x86_64-3.9/pygtkcompat
  creating build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_compat.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_constants.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_error.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_gtktemplate.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_option.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_ossighelper.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_propertyhelper.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/_signalhelper.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/docstring.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/importer.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/module.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/pygtkcompat.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  copying gi/types.py -> build/lib.macosx-10.9-x86_64-3.9/gi
  creating build/lib.macosx-10.9-x86_64-3.9/gi/repository
  copying gi/repository/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/gi/repository
  creating build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/Gdk.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/GdkPixbuf.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/GIMarshallingTests.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/Gio.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/GLib.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/GObject.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/Gtk.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/keysyms.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  copying gi/overrides/Pango.py -> build/lib.macosx-10.9-x86_64-3.9/gi/overrides
  running build_ext
  Package glib-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `glib-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'glib-2.0' found
  Command '('pkg-config', '--print-errors', '--exists', 'glib-2.0 >= 2.38.0')' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pygobject
  Running setup.py clean for pygobject
  Building wheel for pycairo (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/s0/35n1fkk97gx2fx9q3fcvhygw0000gn/T/tmpescjpxi3
       cwd: /private/var/folders/s0/35n1fkk97gx2fx9q3fcvhygw0000gn/T/pip-install-vidzd3jw/pycairo_252bf5f8473448da9904f15f9a468d6f
  Complete output (15 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.9
  creating build/lib.macosx-10.9-x86_64-3.9/cairo
  copying cairo/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/cairo
  copying cairo/__init__.pyi -> build/lib.macosx-10.9-x86_64-3.9/cairo
  copying cairo/py.typed -> build/lib.macosx-10.9-x86_64-3.9/cairo
  running build_ext
  Package cairo was not found in the pkg-config search path.
  Perhaps you should add the directory containing `cairo.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'cairo' found
  Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.15.10']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for pycairo
Failed to build pygobject pycairo
ERROR: Could not build wheels for pycairo which use PEP 517 and cannot be installed directly

This happens when installing brew also.

@francisuk1989 francisuk1989 changed the title pycairo python 3.6.9 x64 Mac OS X 10.11.6 (macosx-10.9-x86_64) pycairo python 3.9.6 Intel x64 Mac OS X 10.11.6 (macosx-10.9-x86_64) Aug 31, 2021
@francisuk1989 francisuk1989 changed the title pycairo python 3.9.6 Intel x64 Mac OS X 10.11.6 (macosx-10.9-x86_64) pycairo python 3.9.7 Intel x64 Mac OS X 10.11.6 (macosx-10.9-x86_64) Aug 31, 2021
@lazka
Copy link
Member

lazka commented Nov 28, 2022

Sorry for the late response.

The error indicates you don't have cairo installed. pycairo requires cairo to build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants