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

Unable to install tfx: metadata-generation-failed #6158

Closed
cuebelhoer opened this issue Aug 11, 2023 · 4 comments
Closed

Unable to install tfx: metadata-generation-failed #6158

cuebelhoer opened this issue Aug 11, 2023 · 4 comments

Comments

@cuebelhoer
Copy link

  • Python3 --version:
    Python 3.8.17
  • pip list:

Package Version


pip 23.2.1
setuptools 56.0.0

Hi all,
I want to contribute to OSS TFX and am following the steps in here: https://github.com/tensorflow/tfx/blob/master/CONTRIBUTING.md#testing-conventions to install TFX on my local machine within a virtual env.

Running the following cmds:

export TFX_DEPENDENCY_SELECTOR=NIGHTLY
pip install -e . --extra-index-url https://pypi-nightly.tensorflow.org/simple

results in the following error message:

Looking in indexes: https://pypi.org/simple, https://pypi-nightly.tensorflow.org/simple
Obtaining file:///Users/cuebelhoer/VSCode%20Projects%20%28Workspace%29/tfx
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Installing backend dependencies ... done
Preparing editable metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing editable metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [56 lines 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.

full_error_message.txt

@singhniraj08 singhniraj08 self-assigned this Aug 14, 2023
@singhniraj08
Copy link
Contributor

@cuebelhoer,

This issue looks like you are trying to install TFX on Mac OS. As discussed internally, we are already working on supporting Mac M1 and meanwhile please use VM based options for installing TFX.

#5804 feature is already there for Mac M1 support tracking, requesting you to close this issue and follow and +1 similar issue for updates. Thank you!

@singhniraj08
Copy link
Contributor

@cuebelhoer,

Below are the steps to successfully setup TFX environment for contributing to TFX following CONTRIBUTUNG.MD.

  1. Install Python 3.9 (Python 3.10 support is work-in progress)
  2. Install Bazel following this guide
  3. Clone TFX repository from github and change directory to tfx by running
git clone https://github.com/tensorflow/tfx.git
cd tfx
  1. install TFX source code in a virtual environment in editable (-e) mode, which will pick up your local changes immediately
export TFX_DEPENDENCY_SELECTOR=NIGHTLY
pip install -e . --extra-index-url https://pypi-nightly.tensorflow.org/simple
  1. install additional packages to run all end-to-end tests
pip install -e .[kfp] --extra-index-url https://pypi-nightly.tensorflow.org/simple

Please let us know if you face any issues. Thank you!

@github-actions
Copy link
Contributor

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

@github-actions
Copy link
Contributor

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants