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.

`ModuleNotFoundError`: 1.4.0 (and below, possibly) missing an explicit `future` dependency

See original GitHub issue

As of right now, new installations of tensorflow-transform==1.4.0 fail to import with a ModuleNotFoundError because the future library is not marked as a dependency in the setup.py.

This likely wasn’t a problem before because some recursive dependency of tft depended on future, masking the issue. But future is a hard dependency of tft 1.4.0, as it is imported on import tensorflow_transform, so it should probably be added as a dep in a 1.4.1 release (assuming this team does back-releases of that kind).

For people looking for a hotfix in your own project, adding future as a dependency of your project should be enough.

This isn’t a problem in 1.5.0 because the only usage of future was removed in this commit.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jiyongjung0commented, Feb 24, 2022

FYI, tensorflow-transform 1.4.1 was released with future as an additional dependency.

1reaction
davidxiacommented, Jan 26, 2022

My team’s using tfx==1.3.4 and also hit this today. This tfx version pulls in tensorflow-transform==1.3.0 which explicitly depends on future here but doesn’t declare it as a dependency.

We worked around by adding future==0.18.2 to our own requirements.txt.

The error messages will say Exception: The full "tfx" package must be installed to use this functionality. But if you look more closely, you’ll see it’s a future import failure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm WARN ... requires a peer of ... but none is installed. You ...
The automatic installation of peer dependencies was explicitly removed with ... it will add all the missing peers and remove all the error....
Read more >
tensorflow-transform 1.11.0 - PythonFix.com
... Support combiner packing for tft.vocabulary; ModuleNotFoundError : 1.4.0 (and below, possibly) missing an explicit future dependency ...
Read more >
How to Setup Your Python Environment for Machine Learning ...
Paste the output in the comments below. You can use these commands to update machine learning and SciPy libraries as needed. Try a...
Read more >
azure-identity - PyPI
The Azure Identity library focuses on OAuth authentication with Azure AD. It offers a variety of credential classes capable of acquiring an Azure...
Read more >
PyInstaller Documentation - Read the Docs
PyInstaller bundles a Python application and all its dependencies into a single ... It is said to be possible to cross-develop for Windows...
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