riverrun / genxword

Crossword generator written in Python.
GNU General Public License v3.0
162 stars 40 forks source link

Unable to install #24

Open zcribe opened 3 years ago

zcribe commented 3 years ago

Failed to build PyGObject ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly

Steps to reproduce: pip3 install genxword

riverrun commented 3 years ago

Thanks for raising the issue.

First of all, what OS are you using? For the rest of this comment, I will assume you are using Linux. It might be more difficult on macOS or Windows.

Looking at this issue, the recommendation is to run python3 -m pip install --no-use-pep517 genxword, and at this issue, they suggest running pip install --upgrade pip setuptools wheel.

I also wonder if it might work if you install the gtk dependencies (which are listed in the README) before trying to install genxword.

Let me know how you get on.

brlauuu commented 3 years ago

I'm experiencing same issues. I tried both on macOS (Catalina 10.15.6) and on Linux (CentOS 7). I also found suggestions you listed and they don't help me.

riverrun commented 3 years ago

Thanks for letting me know. I will look into it when I get the time.

riverrun commented 3 years ago

@brlauuu what error message are you getting when you try to install?

brlauuu commented 3 years ago

This is what I'm getting on CentOS 7 (Python 3.6.7, pip 20.2.4):

$ pip3 install genxword
Collecting genxword
  Using cached genxword-2.1.0-py3-none-any.whl (51 kB)
Collecting PyGObject
  Using cached PyGObject-3.38.0.tar.gz (712 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: pycairo in /scicore/home/nimwegen/reldor00/anaconda3/lib/python3.6/site-packages (from genxword) (1.20.0)
Building wheels for collected packages: PyGObject
  Building wheel for PyGObject (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /scicore/home/nimwegen/reldor00/anaconda3/bin/python /scicore/home/nimwegen/reldor00/anaconda3/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /scratch/tmpyeaf324m
       cwd: /scratch/pip-install-21rtqxik/pygobject
  Complete output (42 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/pygtkcompat
  copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.6/pygtkcompat
  copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.6/pygtkcompat
  copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.6/pygtkcompat
  creating build/lib.linux-x86_64-3.6/gi
  copying gi/__init__.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_constants.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_error.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_option.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/docstring.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/importer.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/module.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.6/gi
  copying gi/types.py -> build/lib.linux-x86_64-3.6/gi
  creating build/lib.linux-x86_64-3.6/gi/repository
  copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.6/gi/repository
  creating build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.6/gi/overrides
  copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.6/gi/overrides
  running build_ext
  Package gobject-introspection-1.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gobject-introspection-1.0' found
  Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.46.0')' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the '/scicore/home/nimwegen/reldor00/anaconda3/bin/python -m pip install --upgrade pip' command.

And this is what I'm getting on MacOS (Python 3.7.4, pip 20.3.3):

$ pip install genxword
Collecting genxword
  Using cached genxword-2.1.0-py3-none-any.whl (51 kB)
Requirement already satisfied: pycairo in /Users/reldor00/opt/anaconda3/lib/python3.7/site-packages (from genxword) (1.20.0)
Collecting PyGObject
  Using cached PyGObject-3.38.0.tar.gz (712 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Building wheels for collected packages: PyGObject
  Building wheel for PyGObject (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/reldor00/opt/anaconda3/bin/python /Users/reldor00/opt/anaconda3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/r6/nfyxbjn57sgclcdry2ty0h240000gn/T/tmp7nkwwhob
       cwd: /private/var/folders/r6/nfyxbjn57sgclcdry2ty0h240000gn/T/pip-install-882nozx6/pygobject_4cf352d783a74c57b5142317c4eba17a
  Complete output (42 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.7
  creating build/lib.macosx-10.9-x86_64-3.7/pygtkcompat
  copying pygtkcompat/pygtkcompat.py -> build/lib.macosx-10.9-x86_64-3.7/pygtkcompat
  copying pygtkcompat/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/pygtkcompat
  copying pygtkcompat/generictreemodel.py -> build/lib.macosx-10.9-x86_64-3.7/pygtkcompat
  creating build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_signalhelper.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_constants.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/pygtkcompat.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_ossighelper.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/importer.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_error.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_gtktemplate.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_propertyhelper.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/types.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/docstring.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/_option.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  copying gi/module.py -> build/lib.macosx-10.9-x86_64-3.7/gi
  creating build/lib.macosx-10.9-x86_64-3.7/gi/repository
  copying gi/repository/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/gi/repository
  creating build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/GIMarshallingTests.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/Gdk.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/Pango.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/GdkPixbuf.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/Gtk.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/__init__.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/GLib.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/GObject.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/Gio.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  copying gi/overrides/keysyms.py -> build/lib.macosx-10.9-x86_64-3.7/gi/overrides
  running build_ext
  Package gobject-introspection-1.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gobject-introspection-1.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gobject-introspection-1.0' found
  Command '('pkg-config', '--print-errors', '--exists', 'gobject-introspection-1.0 >= 1.46.0')' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly