NeuroBench / neurobench

Benchmark harness and baseline results for the NeuroBench algorithm track.
https://neurobench.readthedocs.io
Apache License 2.0
46 stars 11 forks source link

Make sure installation doesnt fail in a PyEnv environment #173

Closed V0XNIHILI closed 5 months ago

V0XNIHILI commented 6 months ago

The error I got beforehand:

Obtaining file:///Users/dmjdenblanken/Projects/neurobench
  Installing build dependencies ... [?25ldone
[?25h  Checking if build backend supports build_editable ... [?25ldone
[?25h  Getting requirements to build editable ... [?25ldone
[?25h  Preparing editable metadata (pyproject.toml) ... [?25lerror
  error: subprocess-exited-with-error

  × Preparing editable metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]
      Traceback (most recent call last):
        File "/Users/dmjdenblanken/Environments/ml_env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/dmjdenblanken/Environments/ml_env/lib/python3.11/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/dmjdenblanken/Environments/ml_env/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 181, in prepare_metadata_for_build_editable
          return hook(metadata_directory, config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/g8/qfv7ys8j53z59nwlxzs74nnxx2xvcz/T/pip-build-env-46gpywz6/overlay/lib/python3.11/site-packages/poetry/core/masonry/api.py", line 43, in prepare_metadata_for_build_wheel
          builder = WheelBuilder(poetry)
                    ^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/g8/qfv7ys8j53z59nwlxzs74nnxx2xvcz/T/pip-build-env-46gpywz6/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/wheel.py", line 62, in __init__
          super().__init__(poetry, executable=executable)
        File "/private/var/folders/g8/qfv7ys8j53z59nwlxzs74nnxx2xvcz/T/pip-build-env-46gpywz6/overlay/lib/python3.11/site-packages/poetry/core/masonry/builders/builder.py", line 50, in __init__
          self._meta = Metadata.from_package(self._package)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/private/var/folders/g8/qfv7ys8j53z59nwlxzs74nnxx2xvcz/T/pip-build-env-46gpywz6/overlay/lib/python3.11/site-packages/poetry/core/masonry/metadata.py", line 58, in from_package
          with readme.open(encoding="utf-8") as f:
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/dmjdenblanken/.pyenv/versions/3.11.6/lib/python3.11/pathlib.py", line 1044, in open
          return io.open(self, mode, buffering, encoding, errors, newline)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      FileNotFoundError: [Errno 2] No such file or directory: '/Users/dmjdenblanken/Projects/neurobench/README.md'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
[?25herror: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.