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

No Python 3.8 distribution #284

Closed
tomweingarten opened this issue May 10, 2020 · 9 comments
Closed

No Python 3.8 distribution #284

tomweingarten opened this issue May 10, 2020 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@tomweingarten
Copy link

Ubuntu 20.04 defaults to Python 3.8, and there are no pre-built pip packages for tensorflow-text targeting that Python version. When I try to follow the instructions to build the package, I receive the following error:

++ uname -s
+ osname=Linux
+ [[ Linux == \D\a\r\w\i\n ]]
+ ./oss_scripts/configure.sh
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: Package(s) not found: tensorflow
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
WARNING: Package(s) not found: tf-nightly
Installing tensorflow.
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
ERROR: Could not find a version that satisfies the requirement tensorflow==2.1.0 (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
ERROR: No matching distribution found for tensorflow==2.1.0
+ bazel build oss_scripts/pip_package:build_pip_package
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=1 --terminal_columns=81
INFO: Reading rc options for 'build' from /home/tom/Downloads/text/.bazelrc:
  'build' options: --spawn_strategy=standalone --strategy=Genrule=standalone -c opt --define=framework_shared_object=true --experimental_repo_remote_exec --action_env TF_HEADER_DIR=/home/tom/.local/lib/python3.8/site-packages/tensorflow/include --action_env TF_SHARED_LIBRARY_DIR=/home/tom/.local/lib/python3.8/site-packages/tensorflow --action_env TF_SHARED_LIBRARY_NAME=libtensorflow_framework.so.2
ERROR: Unrecognized option: --experimental_repo_remote_exec

For reference:

$ pip freeze|grep -i tensorflow
mesh-tensorflow==0.1.13
tensorflow-datasets==3.1.0
tensorflow-estimator==2.2.0
tensorflow-gan==2.0.0
tensorflow-gpu==2.2.0rc4
tensorflow-hub==0.8.0
tensorflow-metadata==0.21.2
tensorflow-probability==0.7.0
@gregbillock
Copy link
Collaborator

Is there no tensorflow package for py 3.8? It sounds like that's the obstacle.

@ricwo
Copy link

ricwo commented May 15, 2020

Same here on mac OS. tensorflow is py3.8-compatible:

python -V
Python 3.8.2
...
pip show tensorflow
Name: tensorflow
Version: 2.2.0

and the installation fails with

pip install tensorflow-text
ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
ERROR: No matching distribution found for tensorflow-text

@broken broken self-assigned this May 29, 2020
@broken
Copy link
Member

broken commented May 29, 2020

Thanks for letting us know, we'll add a 3.8 build target.

@broken broken changed the title Can't build on Ubuntu 20.04 No Python 3.8 distribution May 29, 2020
@broken broken added the bug Something isn't working label May 29, 2020
@aiyengara
Copy link

aiyengara commented Jun 2, 2020

Thanks for letting us know, we'll add a 3.8 build target.
Hi.

I have the same issue, Just wanted to check if a solution is ready
pip install tensorflow-text==2.2.0
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow-text==2.2.0 (from versions: none)
ERROR: No matching distribution found for tensorflow-text==2.2.0
OS: ubuntu 20.04
python 3.8.2
tensorflow version 2.2.0 is installed.

Am I missing something here, and so it does not install tensorflow-text

@tmbo
Copy link

tmbo commented Jun 3, 2020

@broken @gregbillock are there any issues with python 3.8? anything we can help you with?

@aiyengara
Copy link

aiyengara commented Jun 3, 2020

@broken @gregbillock are there any issues with python 3.8? anything we can help you with?

I tried installing Rasa (compiling from source) using python 3.8. Successfully installed Tensor Flow 2.2.0. It does show Installing Rasa. But it does not install, Can I get some help.
Tensorflow-text is the only module that is not getting installed.

make install
poetry run python -m pip install -U pip
Requirement already up-to-date: pip in /home/iyengar/.cache/pypoetry/virtualenvs/rasa-YCFpMGBa-py3.8/lib/python3.8/site-packages (20.1.1)
poetry install
Installing dependencies from lock file

No dependencies to install or update

  • Installing rasa (1.11.0a1)

poetry install --extras full
Installing dependencies from lock file

Package operations: 2 installs, 0 updates, 0 removals

  • Installing tensorflow-text (2.2.0)

[EnvCommandError]
Command ['/home/iyengar/.cache/pypoetry/virtualenvs/rasa-YCFpMGBa-py3.8/bin/pip', 'install', '--no-deps', 'tensorflow-text==2.2.0'] errored with the following return code 1, and output:
ERROR: Could not find a version that satisfies the requirement tensorflow-text==2.2.0 (from versions: none)
ERROR: No matching distribution found for tensorflow-text==2.2.0

pip install tensorflow-text
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement tensorflow-text (from versions: none)
ERROR: No matching distribution found for tensorflow-text

Thanks in advance

Regards
Ashok

@broken
Copy link
Member

broken commented Jun 4, 2020

We just released version 2.2.1. This includes builds for Python 3.8.

@broken
Copy link
Member

broken commented Jun 4, 2020

We retroactively added python 3.8 packages for version 2.2.0 as well.

@broken broken closed this as completed Jun 4, 2020
@tmbo
Copy link

tmbo commented Jun 5, 2020

Thanks a lot @broken, very much appreciated. 🚀

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

6 participants