`ModuleNotFoundError`: 1.4.0 (and below, possibly) missing an explicit `future` dependency
See original GitHub issueAs 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:
- Created 2 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI,
tensorflow-transform
1.4.1 was released withfuture
as an additional dependency.My team’s using
tfx==1.3.4
and also hit this today. This tfx version pulls intensorflow-transform==1.3.0
which explicitly depends onfuture
here but doesn’t declare it as a dependency.We worked around by adding
future==0.18.2
to our ownrequirements.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 afuture
import failure.