question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update TFX python dependency constraint to allow TensorFlow 2.5.0

See original GitHub issue

Please update TFX python dependency constraint to allow TensorFlow 2.5.0. As of right now only TensorFlow 2.4.1 and below are supported but TensorFlow 2.4.1 has many critical/high vulnerabilities which have been patched in TensorFlow 2.5.0

[jovyan@2b08f11f4755 venv]$ poetry add tfx --python ">=3.8,<3.9"
Using version ^0.30.0 for tfx

Updating dependencies
Resolving dependencies... (0.1s)

  SolverProblemError

  Because tfx (0.30.0) depends on tensorflow (>=1.15.2,<2.0.0 || >=2.4.0,<2.5.0 || >=2.6.0,<3)
   and no versions of tfx match >0.30.0,<0.31.0, tfx (>=0.30.0,<0.31.0) requires tensorflow (>=1.15.2,<2.0.0 || >=2.4.0,<2.5.0 || >=2.6.0,<3).
  So, because venv depends on both tensorflow (2.5.0) and tfx (^0.30.0), version solving failed.

  at /opt/jupyter/venv/lib/python3.8/site-packages/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│ 
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dhruvesh09commented, May 20, 2021

Can you try to pip install -i https://pypi-nightly.tensorflow.org/simple/ tfx==20210519

This worked for me

0reactions
google-ml-butler[bot]commented, Jun 14, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

TensorFlow Transform | TFX
This will install the nightly packages for the major dependencies of TFT such as TensorFlow Metadata (TFMD), TFX Basic Shared Libraries (TFX-BSL).
Read more >
Pipenv fails locking when installing TensorFlow 2.4.1
Hint: try $ pipenv lock --pre if it is a pre-release dependency. ERROR: Could not find a version that matches tensorflow (from -r ......
Read more >
Pipeline Example performing the Bert Preprocessing with ...
ERROR: tfx 0.21.4 has requirement tensorflow-model-analysis<0.22,>=0.21.4, ... to install necessary dependencies to enable all data visualization features.
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/22 02 ...
Compiler wrapper to enable security hardening flags" status:UNCONFIRMED resolution: ... Bug:542272 - "net-dialup/linux-atm-2.5.0: fails to compile with ...
Read more >
tfx Changelog - pyup.io
* Switch Transform component to always use sketch when computing top-k stats. Dependency Updates | Package Name | Version Constraints | Previously (in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found