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: metadata-generation-failed in osx/mac #2221

Open
1 task done
tyoc213 opened this issue Dec 24, 2024 · 0 comments
Open
1 task done

error: metadata-generation-failed in osx/mac #2221

tyoc213 opened this issue Dec 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tyoc213
Copy link

tyoc213 commented Dec 24, 2024

Please check that this issue hasn't been reported before.

  • I searched previous Bug Reports didn't find any similar reports.

Expected Behavior

been able to install after pulling the project on mac/osx

Current behaviour

➜  axolotl git:(main) ✗ pip3 install --no-build-isolation -e '.'
Obtaining file:///Users/devworks/github.com/axolotl
  Checking if build backend supports build_editable ... done
  Preparing editable metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing editable metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [46 lines of output]
      /Users/devworks/venv/axolot/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py:108: _BetaConfiguration: Support for `[tool.setuptools]` in `pyproject.toml` is still *beta*.
        warnings.warn(msg, _BetaConfiguration)
      /Users/devworks/venv/axolot/lib/python3.11/site-packages/setuptools/config/_apply_pyprojecttoml.py:103: _WouldIgnoreField: 'entry-points' defined outside of `pyproject.toml` would be ignored.
          !!
      
      
          ##########################################################################
          # configuration would be ignored/result in error due to `pyproject.toml` #
          ##########################################################################
      
          The following seems to be defined outside of `pyproject.toml`:
      
          `entry-points = {'console_scripts': ['axolotl=axolotl.cli.main:main']}`
      
          According to the spec (see the link below), however, setuptools CANNOT
          consider this value unless 'entry-points' is listed as `dynamic`.
      
          https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
      
          For the time being, `setuptools` will still consider the given value (as a
          **transitional** measure), but please note that future releases of setuptools will
          follow strictly the standard.
      
          To prevent this warning, you can list 'entry-points' under `dynamic` or alternatively
          remove the `[project]` table from your file and rely entirely on other means of
          configuration.
      
      
      !!
      
        warnings.warn(msg, _WouldIgnoreField)
      running dist_info
      creating /private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info
      writing /private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/PKG-INFO
      writing dependency_links to /private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/dependency_links.txt
      writing entry points to /private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/entry_points.txt
      writing requirements to /private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/requires.txt
      writing top-level names to /private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/top_level.txt
      writing manifest file '/private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/SOURCES.txt'
      reading manifest file '/private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no files found matching '*.py' under directory 'axolotl'
      adding license file 'LICENSE'
      writing manifest file '/private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl.egg-info/SOURCES.txt'
      creating '/private/var/folders/tb/m3s74xss3dx77kdpfxbh6b2w0000gn/T/pip-modern-metadata-k2sbpvea/axolotl-0.6.0.dist-info'
      error: invalid command 'bdist_wheel'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: 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.

Steps to reproduce

clone the repo and execute pip3 install --no-build-isolation -e '.' Im using mise.toml

$ cat .mise.toml 
[tools]
python = "3.11" # [optional] will be used for the venv

[env]
_.python.venv = { path = "~/venv/axolot", create = true } # create the venv if it doesn't exist

Config yaml

➜  axolotl git:(main) ✗ find config.yml
find: config.yml: No such file or directory


### Possible solution

_No response_

### Which Operating Systems are you using?

- [ ] Linux
- [X] macOS
- [ ] Windows

### Python Version

3.11

### axolotl branch-commit

main/e0a2eb2ebd45f3cf73415350f5d7a8ec0b860b7c

### Acknowledgements

- [X] My issue title is concise, descriptive, and in title casing.
- [X] I have searched the existing issues to make sure this bug has not been reported yet.
- [X] I am using the latest version of axolotl.
- [X] I have provided enough information for the maintainers to reproduce and diagnose the issue.
@tyoc213 tyoc213 added the bug Something isn't working label Dec 24, 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

1 participant