-
Notifications
You must be signed in to change notification settings - Fork 152
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
Error installing requirements.txt ( tensor2robot ) #1
Comments
Do you mind trying install tensor2robot following the instruction in https://github.com/google-research/tensor2robot#tensor2robot and then install this repo? (maybe comment out the tensor2robot dependency). Thanks |
I tried, using a venv on Ubuntu 22.04 with Python 3.10, and cloing this repo and https://github.com/google-research/tensor2robot in a directory named protoc failureThe
Indeed, in
tensorflow.contrib failureAfter this, the command
Perhaps tensorflow 1.x is required? If I ignore the previous command failure and I go ahead and install the requirements of the
For reproducibility, my
|
I also installed a dedicated Python 3.7 to be able to install a Tensorflow 1.* from PyPI, but even in that case the test fail, even if with a different error:
Environment for reproducibility:
|
I am also getting a similar error on Python 3.8 as posted by @traversaro. Thanks for the suggestion @fxia22 , will try to install tensor2robot first. Ubuntu 20.04.5 LTS Collecting git+https://github.com/google-research/tensor2robot#tensor2robot (from -r robotics_transformer/requirements.txt (line 9)) |
Hi, don't know if you have solved the problem now, I tried to install tensor2robot and robotics_transformer separately on Python3.7 with Tensorflow 1.14, but it still has an error. It imported tensorflow_probability somewhere in the model, which means it requires Tensorflow version >= 2.11. That's a conflict. |
@traversaro may I ask if you could solve your problem? I am getting the exact errors as you on both tf2 and tf1.15 |
Hi, have u solved this problem? I also get the same error "TypeError: 'type' object is not subscriptable |
No, I was not able to solve the problem. I suspect the code in this repo is actually a mixture of of some code that was meant to work with tensorflow1 and some other code that was meant to work with tensorflow2, but I never investigated further. |
Hi, I tried to install your software by following the guidelines in the README and I also encountered issues when running
Therefore, I tried to install
For further context, I am using Python 3.8 on Ubuntu 20.04, and here you have my `pip list --verbose` output
|
I am also getting a similar error on Python 3.8 as posted by @traversaro, has anyone solved it successfully?
|
@paolo-viceconte Have you find the resolution later? |
The tensorflow.contrib has been removed in tensorflow2.x. according to the following link |
I fixed the problem in tensorspec_utils.py as you suggested, but ran into problems with tensorflow.contrib in other files such as optimizers.And I found a lot of modules that use tensorflow.contrib, one by one, to deal with the unreality.Do you have any good suggestions? @YiyangHuang-work
|
The project just use this tensorspec_utils.py file,so there is no need to change others. I can run the code after fix this problem,wish you good luck~ |
I succeed in running action_tokenizer_test!!(py3.11.5+tf2.13.0)Conda envconda create -n rt1
conda activate rt1
# install python3.11(Python 3.11.5)
conda install python 1.tensor2robot1)git clone tensor2robotgit clone https://github.com/google-research/tensor2robot.git 2)modify tensor2robot/requirements.txtpybullet==2.5.0 --> pybullet 3)pip installpip install -r tensor2robot/requirements.txt 4)testpython -m tensor2robot.research.pose_env.pose_env_test 5)!!!!!modify tensor2robot/utils/tensorspec_utils.pycontrib_framework --> tf 2.rt11)git clone rt1git clone https://github.com/google-research/robotics_transformer.git
2)Comment out the last line of robotics_transformer/requirements.txt# git+https://github.com/google-research/tensor2robot#tensor2robot 3)pip installpip install -r robotics_transformer/requirements.txt 4)test action tokenizerpython -m robotics_transformer.tokenizers.action_tokenizer_test [Note]:my python3.11.5 pip listPackage Version
----------------------- ---------
absl-py 1.4.0
astunparse 1.6.3
cachetools 5.3.1
certifi 2023.7.22
charset-normalizer 3.2.0
cloudpickle 2.2.1
decorator 5.1.1
dm-tree 0.1.8
flatbuffers 23.5.26
gast 0.4.0
gin-config 0.5.0
google-auth 2.23.0
google-auth-oauthlib 1.0.0
google-pasta 0.2.0
grpcio 1.58.0
gym 0.23.0
gym-notices 0.0.8
h5py 3.9.0
idna 3.4
keras 2.13.1
libclang 16.0.6
Markdown 3.4.4
MarkupSafe 2.1.3
numpy 1.24.3
oauthlib 3.2.2
opt-einsum 3.3.0
packaging 23.1
Pillow 5.3.0
pip 23.2.1
protobuf 4.24.3
pyasn1 0.5.0
pyasn1-modules 0.3.0
pybullet 3.2.5
pygame 2.1.3
requests 2.31.0
requests-oauthlib 1.3.1
rsa 4.9
setuptools 68.0.0
six 1.16.0
tensorboard 2.13.0
tensorboard-data-server 0.7.1
tensorflow 2.13.0
tensorflow-estimator 2.13.0
tensorflow-macos 2.13.0
tensorflow-probability 0.20.1
tensorflow-serving-api 2.13.0
termcolor 2.3.0
tf-agents 0.17.0
tf-slim 1.1.0
typing_extensions 4.5.0
urllib3 1.26.16
Werkzeug 2.3.7
wheel 0.38.4
wrapt 1.15.0 Hopefully it will be helpful to you guys! |
I need to make some modifications to run the action_tokenizer_test.1)Comment out the line 31 of tensor2robot/utils/tensorspec_utils.py# from tensorflow.contrib import framework as tf 2)Downgrade the protobuf package to 3.20.1pip install protobuf==3.20.1 3)Compile the protobufscd tensor2robot/proto
protoc -I=./ --python_out=`pwd` t2r.proto 4)test action tokenizercd ..
cd ..
python -m robotics_transformer.tokenizers.action_tokenizer_test Many thanks for your help!!! @TX-Leo |
However, I need |
|
Still gives me |
I have to add this code to fix the tensorflower.contrib error
|
Hello, thanks a lot for sharing the code related to this interesting research!
I tried to follow the instructions in the README, and I have problem in the
pip install -r robotics_transformer/requirements.txt
step. In particular, I tried with Python 3.11, 3.10, 3.8 and 3.6, and it is failing. Which version of Python should be used? Thanks a lot in advance.The errors are listed in the following.
Python 3.8
Python 3.10
Python 3.6
The text was updated successfully, but these errors were encountered: