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

Package 'tensorflow-macos' is listed as a dependency of itself #713

Open
marygiotandoi opened this issue Apr 5, 2024 · 3 comments
Open

Comments

@marygiotandoi
Copy link

marygiotandoi commented Apr 5, 2024

I am building the local environment of a Python project, on a MacBook Pro (Apple M1 Max). However, I cannot install anymore tensorflow-recommenders = "~=0.7.3" using poetry.

I'm getting the following error:

$> poetry lock --no-cache                                                                                                    
Creating virtualenv <path to venv>
Updating dependencies
Resolving dependencies... (4.4s)

Package 'tensorflow-macos' is listed as a dependency of itself.

I'm using the following versions:

  • Python 3.11.1
  • Poetry: 1.8.2
  • Pip: 24.0

To reproduce this, create an empty directory, make sure you have Python and poetry setup, paste the following as your initial pyproject.toml

[tool.poetry]
package-mode = false
name = "project-name"
description = "Project description."

[tool.poetry.dependencies]
python = "~=3.11.0"
tensorflow-recommenders = "~=0.7.3"

And then run

poetry lock

@elisasimoni
Copy link

elisasimoni commented Apr 23, 2024

I solve it by downgrading tensorflow-recommenders to 0.7.2, works like a charm, the problem is a recursive dependency in the new package

@celha
Copy link

celha commented May 14, 2024

I'm facing the same error. Is there any other way to solve it? I want to use something other than version 0.7.3.

@marygiotandoi
Copy link
Author

I solve it by downgrading tensorflow-recommenders to 0.7.2, works like a charm, the problem is a recursive dependency in the new package

Thanks! The trick I am using right now is to lock without upgrading un-tached dependencies in the .toml file (poetry lock --no-update). I can do this because at some point I did manage to create a .lock file with tensorflow-recommenders = "~=0.7.3". The problem only started to arise with the latest releases of tensorflow in March 2024. I hope it gets solved.

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

No branches or pull requests

3 participants