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

Cannot pip install nightly #1079

Open
christian-steinmeyer opened this issue Jun 28, 2023 · 2 comments
Open

Cannot pip install nightly #1079

christian-steinmeyer opened this issue Jun 28, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@christian-steinmeyer
Copy link

Describe the bug
Cannot pip install nightly version of this package

System information

TensorFlow version (installed from source or binary): none

TensorFlow Model Optimization version (installed from source or binary): current master

Python version: 3.10

Describe the expected behavior
tfmot is installed
Describe the current behavior

Building wheels for collected packages: tf-model-optimization-nightly
  Building wheel for tf-model-optimization-nightly (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      /<path-to-virtual-env>/lib/python3.10/site-packages/setuptools/dist.py:509: InformationOnly: Normalizing '0.7.5-dev' to '0.7.5.dev0'
        self.metadata.version = self._normalize_version(
      running bdist_wheel
      running build
      running build_py
      creating build
      error: could not create 'build': File exists
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for tf-model-optimization-nightly
  Running setup.py clean for tf-model-optimization-nightly
Failed to build tf-model-optimization-nightly
ERROR: Could not build wheels for tf-model-optimization-nightly, which is required to install pyproject.toml-based projects

Code to reproduce the issue
pip install tf-model-optimization-nightly@git+https://github.com/tensorflow/model-optimization@master

Additional context
I have a fix in a fork of this project and want to install it via pip.

@christian-steinmeyer christian-steinmeyer added the bug Something isn't working label Jun 28, 2023
@Xhark
Copy link
Member

Xhark commented Aug 27, 2023

The command you mentioned is just working for me. (Python 3.11.4, pip 23.2.1) Can you check pip version also? (and can you verify it also happened on the master?) thanks!

@Xhark Xhark self-assigned this Aug 27, 2023
@christian-steinmeyer
Copy link
Author

Hey! For me, when I run pip install tf-model-optimization-nightly@git+https://github.com/tensorflow/model-optimization@master I still get the same error (tested on both, python 3.10.10 and 3.11.2 & pip 23.2.1). I'm running on an M2 macbook - perhaps that's the issue?

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