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

ModuleNotFoundError: No module named 'tensorflow.compat' #12

Open
Ultraopxt opened this issue Nov 22, 2021 · 2 comments
Open

ModuleNotFoundError: No module named 'tensorflow.compat' #12

Ultraopxt opened this issue Nov 22, 2021 · 2 comments

Comments

@Ultraopxt
Copy link

Hi, I followed the install instruction and installed tensorflow-gpu2.2.0, but when run inference.py,got the error:

Traceback (most recent call last):
File "contact_graspnet/inference.py", line 12, in
import tensorflow.compat.v1 as tf
ModuleNotFoundError: No module named 'tensorflow.compat'

Thanks.

@Ultraopxt
Copy link
Author

My conda list:

Name Version Build Channel

_libgcc_mutex 0.1 main conda-forge
absl-py 0.12.0 pypi_0 pypi
astunparse 1.6.3 pypi_0 pypi
attrs 21.2.0 pypi_0 pypi
blas 1.0 mkl
bzip2 1.0.8 h7b6447c_0 anaconda
ca-certificates 2021.10.8 ha878542_0 conda-forge
cachetools 4.2.4 pypi_0 pypi
certifi 2021.10.8 pypi_0 pypi
charset-normalizer 2.0.7 pypi_0 pypi
clang 10.0.1 default_hb85057a_2 anaconda
clang-tools 10.0.1 default_hb85057a_2 anaconda
clangdev 10.0.1 default_hb85057a_2 anaconda
clangxx 10.0.1 default_hb85057a_2 anaconda
cudatoolkit 10.1.243 h6bb024c_0 anaconda
cudnn 7.6.0 cuda10.1_0 anaconda
curl 7.71.1 hbc83047_1 anaconda
dataclasses 0.8 pypi_0 pypi
dbus 1.13.18 hb2f20db_0 anaconda
dill 0.3.4 pypi_0 pypi
dm-tree 0.1.6 pypi_0 pypi
expat 2.2.10 he6710b0_2 anaconda
fontconfig 2.13.0 h9420a91_0 anaconda
freetype 2.10.4 h5ab3b9f_0 anaconda
future 0.18.2 pypi_0 pypi
gast 0.3.3 pypi_0 pypi
glib 2.66.1 h92f7085_0 anaconda
google-auth 1.35.0 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
googleapis-common-protos 1.53.0 pypi_0 pypi
grpcio 1.42.0 pypi_0 pypi
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb31296c_0
h5py 2.10.0 pypi_0 pypi
hdf4 4.2.13 h3ca952b_2
hdf5 1.10.4 hb1b8bf9_0 anaconda
icu 58.2 he6710b0_3 anaconda
idna 3.3 pypi_0 pypi
importlib-metadata 4.8.2 pypi_0 pypi
importlib-resources 5.4.0 pypi_0 pypi
intel-openmp 2020.2 254 anaconda
jpeg 9b h024ee3a_2
jsoncpp 1.8.4 hfd86e86_0 anaconda
keras-preprocessing 1.1.2 pypi_0 pypi
krb5 1.18.2 h173b8e3_0 anaconda
lcms2 2.11 h396b838_0 anaconda
ld_impl_linux-64 2.33.1 h53a641e_7 conda-forge
libclang 10.0.1 default_hb85057a_2 anaconda
libclang-cpp 10.0.1 default_hb85057a_2 anaconda
libclang-cpp10 10.0.1 default_hb85057a_2 anaconda
libcurl 7.71.1 h20c2e04_1 anaconda
libedit 3.1.20191231 h14c3975_1 anaconda
libffi 3.3 he6710b0_2 anaconda
libgcc-ng 9.1.0 hdf63c60_0 anaconda
libgfortran-ng 7.3.0 hdf63c60_0 anaconda
libllvm10 10.0.1 hbcb73fb_5 anaconda
libnetcdf 4.6.1 h11d0813_2 anaconda
libogg 1.3.2 h7b6447c_0 anaconda
libpng 1.6.37 hbc83047_0 anaconda
libssh2 1.9.0 h1ba5d50_1 anaconda
libstdcxx-ng 9.1.0 hdf63c60_0 anaconda
libtheora 1.1.1 h5ab3b9f_1 anaconda
libtiff 4.1.0 h2733197_0 anaconda
libuuid 1.0.3 h1bed415_2 anaconda
libvorbis 1.3.7 h7b6447c_0 anaconda
libxcb 1.14 h7b6447c_0 anaconda
libxml2 2.9.10 hb55368b_3 anaconda
libxslt 1.1.34 hc22bd24_0 anaconda
llvm-tools 10.0.1 h4a3c616_5 anaconda
llvmdev 10.0.1 h4a3c616_5 anaconda
lz4-c 1.8.1.2 h14c3975_0 anaconda
markdown 3.3.6 pypi_0 pypi
mkl 2020.2 256 anaconda
ncurses 6.2 he6710b0_1 anaconda
numpy 1.18.5 pypi_0 pypi
oauthlib 3.1.1 pypi_0 pypi
opencv-python 4.5.4.58 pypi_0 pypi
openssl 1.1.1l h7f8727e_0
opt-einsum 3.3.0 pypi_0 pypi
pcre 8.44 he6710b0_0 anaconda
pip 21.3.1 pyhd8ed1ab_0 conda-forge
promise 2.3 pypi_0 pypi
protobuf 3.19.1 pypi_0 pypi
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
python 3.6.13 hdb3f193_0
python_abi 3.6 2_cp36m conda-forge
qt 5.9.7 h5867ecd_1
readline 8.0 h7b6447c_0 anaconda
requests 2.26.0 pypi_0 pypi
requests-oauthlib 1.3.0 pypi_0 pypi
rsa 4.7.2 pypi_0 pypi
scipy 1.4.1 pypi_0 pypi
setuptools 49.6.0 py36h5fab9bb_3 conda-forge
six 1.16.0 pypi_0 pypi
sqlite 3.33.0 h62c20be_0 anaconda
tbb 2020.3 hfd86e86_0 anaconda
tensorboard 2.2.2 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.0 pypi_0 pypi
tensorflow-datasets 4.0.0 pypi_0 pypi
tensorflow-estimator 2.2.0 pypi_0 pypi
tensorflow-gpu 2.2.0 pypi_0 pypi
tensorflow-metadata 1.2.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
tk 8.6.10 hbc83047_0 anaconda
tqdm 4.62.3 pypi_0 pypi
typing-extensions 4.0.0 pypi_0 pypi
urllib3 1.26.7 pypi_0 pypi
werkzeug 2.0.2 pypi_0 pypi
wheel 0.37.0 pyhd8ed1ab_1 conda-forge
wrapt 1.13.3 pypi_0 pypi
xz 5.2.5 h7b6447c_0 anaconda
yaml 0.2.5 h516909a_0 conda-forge
zipp 3.6.0 pypi_0 pypi
zlib 1.2.11 h7b6447c_3 anaconda
zstd 1.3.7 h0b5b093_0 anaconda

@MartinSmeyer
Copy link
Contributor

This seems to be an issue with your environment. Try to import tensorflow and check the version. TF 2.2. certainly has the compat mode: https://www.tensorflow.org/versions/r2.2/api_docs/python/tf/compat/v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants