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

Error in subprocess while pip install #33

Closed
Anibalfermandois opened this issue Apr 1, 2024 · 0 comments
Closed

Error in subprocess while pip install #33

Anibalfermandois opened this issue Apr 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Anibalfermandois
Copy link

Anibalfermandois commented Apr 1, 2024

While installing the package in mac M2, I found an error. The steps to recreate are the following:
python:

python3 -m venv myvenv
source myvenv/bin/activate
python3 -m pip install -U pointers.py

The output of the instalation is the following:

python3 -m pip install -U pointers.py
Collecting pointers.py
Using cached pointers.py-2.0.0.tar.gz (21 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
╰─> [57 lines of output]
/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:76: _MissingDynamic: license defined outside of pyproject.toml is ignored.
!!

          ********************************************************************************
          The following seems to be defined outside of `pyproject.toml`:
  
          `license = 'MIT'`
  
          According to the spec (see the link below), however, setuptools CANNOT
          consider this value unless `license` is listed as `dynamic`.
  
          https://packaging.python.org/en/latest/specifications/pyproject-toml/#declaring-project-metadata-the-project-table
  
          To prevent this problem, you can list `license` under `dynamic` or alternatively
          remove the `[project]` table from your file and rely entirely on other means of
          configuration.
          ********************************************************************************
  
  !!
    _handle_missing_dynamic(dist, project_table)
  /private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:83: SetuptoolsWarning: `install_requires` overwritten in `pyproject.toml` (dependencies)
    corresp(dist, value, root_dir)
  Traceback (most recent call last):
    File "/Users/anibalfermandois/Desktop/Tech_proyects/python/learning_venv/myvenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
      main()
    File "/Users/anibalfermandois/Desktop/Tech_proyects/python/learning_venv/myvenv/lib/python3.12/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/anibalfermandois/Desktop/Tech_proyects/python/learning_venv/myvenv/lib/python3.12/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/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
      self.run_setup()
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
      exec(code, locals())
    File "<string>", line 7, in <module>
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 104, in setup
      return distutils.core.setup(**attrs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 159, in setup
      dist.parse_config_files()
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 631, in parse_config_files
      pyprojecttoml.apply_configuration(self, filename, ignore_option_errors)
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/config/pyprojecttoml.py", line 69, in apply_configuration
      return _apply(dist, config, filepath)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 57, in apply
      _apply_project_table(dist, config, root_dir)
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 83, in _apply_project_table
      corresp(dist, value, root_dir)
    File "/private/var/folders/st/h3c3v7wj6wsbzw4c3gd11s380000gn/T/pip-build-env-c341qnvc/overlay/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py", line 184, in _license
      _set_config(dist, "license", val["text"])
                                   ~~~^^^^^^^^
  KeyError: 'text'
  [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.

@ZeroIntensity ZeroIntensity added the bug Something isn't working label Apr 1, 2024
ZeroIntensity added a commit that referenced this issue Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants