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

bug: pip install failed on macOS #1061

Closed
dragonly opened this issue Oct 20, 2022 · 4 comments
Closed

bug: pip install failed on macOS #1061

dragonly opened this issue Oct 20, 2022 · 4 comments

Comments

@dragonly
Copy link
Contributor

Description

pip install failed on macOS with the Apple M1 Pro chip.

Reproduction

which python3 && python3 --version && python3 -m pip install -U --pre envd
/opt/homebrew/bin/python3
Python 3.10.6
Collecting envd
  Using cached envd-0.2.4a12.tar.gz (245 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      fatal: not a git repository (or any of the parent directories): .git
      make: *** [build-release] Error 1
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/6b/4xcf2vjs2dqbhp_5rxjyp4nm0000gn/T/pip-install-tc9bkg_x/envd_0933e7327b15406e96e2fa43e3e4e4ab/setup.py", line 83, in <module>
          version=get_version(),
        File "/private/var/folders/6b/4xcf2vjs2dqbhp_5rxjyp4nm0000gn/T/pip-install-tc9bkg_x/envd_0933e7327b15406e96e2fa43e3e4e4ab/setup.py", line 58, in get_version
          build_envd_if_not_found()
        File "/private/var/folders/6b/4xcf2vjs2dqbhp_5rxjyp4nm0000gn/T/pip-install-tc9bkg_x/envd_0933e7327b15406e96e2fa43e3e4e4ab/setup.py", line 38, in build_envd_if_not_found
          assert errno == 0, "Failed to build envd"
      AssertionError: Failed to build envd
      [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.

Additional Info


Message from the maintainers:

Impacted by this bug? Give it a 👍. We prioritise the issues with the most 👍.

@gaocegege
Copy link
Member

Thanks for the issue!

/cc @VoVAllen

@gaocegege
Copy link
Member

@all-contributors Please add @dragonly for the bug report.

@allcontributors
Copy link
Contributor

@gaocegege

I've put up a pull request to add @dragonly! 🎉

@VoVAllen
Copy link
Member

verified the fix on my mac. now it should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants