Skip to content

Getting requirements to build wheel... error #17

@alexbisias

Description

@alexbisias

Hello, I've been trying to install gat per the instructions in https://gat.readthedocs.io/en/latest/installation.html but have been getting the following error when running pip install gat:

`Collecting gat
Using cached gat-1.3.6.tar.gz (88 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
Traceback (most recent call last):
File "", line 23, in
ModuleNotFoundError: No module named 'numpy'

  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "/Users/alexbisia/env_gat/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/Users/alexbisia/env_gat/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/alexbisia/env_gat/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/private/var/folders/qy/0918mg313jl6tv_knh60fgkc0000gn/T/pip-build-env-uaia8yk_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "/private/var/folders/qy/0918mg313jl6tv_knh60fgkc0000gn/T/pip-build-env-uaia8yk_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
      self.run_setup()
    File "/private/var/folders/qy/0918mg313jl6tv_knh60fgkc0000gn/T/pip-build-env-uaia8yk_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 497, in run_setup
      super().run_setup(setup_script=setup_script)
    File "/private/var/folders/qy/0918mg313jl6tv_knh60fgkc0000gn/T/pip-build-env-uaia8yk_/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 313, in run_setup
      exec(code, locals())
    File "<string>", line 25, in <module>
  ImportError: GAT requires numpy to be installed before running setup.py (pip install numpy)
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.`

The error message says "No module named 'numpy'" but I have just installed it. Do you have any idea why this error is appearing? Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions