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

Issues installing from source on macOS Big Sur 11.5.2 #7

Closed
rish-16 opened this issue Nov 19, 2021 · 15 comments
Closed

Issues installing from source on macOS Big Sur 11.5.2 #7

rish-16 opened this issue Nov 19, 2021 · 15 comments

Comments

@rish-16
Copy link

rish-16 commented Nov 19, 2021

Hello,

I'm trying to install tensorflow_gnn on macOS Big Sur 11.5.2.

I have bazel and graphviz installed via Homebrew. I cloned the repo locally and installed TensorFlow 2.7.

Then I try to run this command as per the README:

cd tensorflow_gnn && python3 -m pip install .

I get this error:

(TensorFlow) rish $ cd tensorflow_gnn && python3 -m pip install .
Processing /Users/rishabhanand/Desktop/tfgnn-models/tensorflow_gnn
  DEPRECATION: A future pip version will change local packages to be built in-place without first copying to a temporary directory. We recommend you use --use-feature=in-tree-build to test your packages with this new behavior before it becomes the default.
   pip 21.3 will remove support for this functionality. You can find discussion regarding this at https://github.com/pypa/pip/issues/7555.
Requirement already satisfied: absl-py in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (0.13.0)
Requirement already satisfied: apache-beam[gcp]>=2.32 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (2.34.0)
Requirement already satisfied: grpcio in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (1.42.0)
Requirement already satisfied: matplotlib in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (3.4.2)
Requirement already satisfied: mock in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (4.0.3)
Requirement already satisfied: networkx in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (2.6.3)
Requirement already satisfied: numpy in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (1.19.5)
Requirement already satisfied: protobuf>=3.17 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (3.19.1)
Requirement already satisfied: pyarrow in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (5.0.0)
Requirement already satisfied: pygraphviz in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (1.7)
Requirement already satisfied: scipy in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (1.7.0)
Requirement already satisfied: six in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (1.15.0)
Requirement already satisfied: tensorflow-cpu>=2.7.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-gnn==0.1.0) (2.7.0)
Requirement already satisfied: requests<3.0.0,>=2.24.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.25.1)
Requirement already satisfied: orjson<4.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (3.6.4)
Requirement already satisfied: pydot<2,>=1.2.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.4.2)
Requirement already satisfied: avro-python3!=1.9.2,<1.10.0,>=1.8.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.9.2.1)
Requirement already satisfied: future<1.0.0,>=0.18.2 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.18.2)
Requirement already satisfied: crcmod<2.0,>=1.7 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7)
Requirement already satisfied: dill<0.3.2,>=0.3.1.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.3.1.1)
Requirement already satisfied: pytz>=2018.3 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2021.3)
Requirement already satisfied: fastavro<2,>=0.21.4 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.4.7)
Requirement already satisfied: pymongo<4.0.0,>=3.8.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (3.12.1)
Requirement already satisfied: python-dateutil<3,>=2.8.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.8.1)
Requirement already satisfied: typing-extensions<4,>=3.7.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (3.7.4.3)
Requirement already satisfied: oauth2client<5,>=2.0.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.1.3)
Requirement already satisfied: hdfs<3.0.0,>=2.1.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.6.0)
Requirement already satisfied: httplib2<0.20.0,>=0.8 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.19.1)
Requirement already satisfied: grpcio-gcp<1,>=0.2.2 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.2.2)
Requirement already satisfied: google-cloud-bigquery-storage>=2.6.3 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.10.1)
Requirement already satisfied: google-cloud-core<2,>=0.28.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7.2)
Requirement already satisfied: google-cloud-bigtable<2,>=0.31.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7.0)
Requirement already satisfied: google-cloud-videointelligence<2,>=1.8.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.16.1)
Requirement already satisfied: google-cloud-spanner<2,>=1.13.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.19.1)
Requirement already satisfied: google-cloud-recommendations-ai<=0.2.0,>=0.1.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.2.0)
Requirement already satisfied: google-cloud-bigquery<3,>=1.6.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.30.1)
Requirement already satisfied: cachetools<5,>=3.1.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.2.2)
Requirement already satisfied: google-cloud-vision<2,>=0.38.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.0.0)
Requirement already satisfied: google-apitools<0.5.32,>=0.5.31 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.5.31)
Requirement already satisfied: google-cloud-pubsub<2,>=0.39.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7.0)
Requirement already satisfied: google-cloud-dlp<2,>=0.12.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.0.0)
Requirement already satisfied: google-cloud-datastore<2,>=1.8.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.15.3)
Requirement already satisfied: google-auth<3,>=1.18.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.32.0)
Requirement already satisfied: google-cloud-language<2,>=1.3.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.3.0)
Requirement already satisfied: fasteners>=0.14 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-apitools<0.5.32,>=0.5.31->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.16.3)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-auth<3,>=1.18.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.2.8)
Requirement already satisfied: setuptools>=40.3.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-auth<3,>=1.18.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (52.0.0.post20210125)
Requirement already satisfied: rsa<5,>=3.1.4 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-auth<3,>=1.18.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.7.2)
Requirement already satisfied: google-api-core[grpc]<3.0.0dev,>=1.29.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.31.4)
Requirement already satisfied: google-resumable-media<3.0dev,>=0.6.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.1.0)
Requirement already satisfied: packaging>=14.3 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (21.3)
Requirement already satisfied: proto-plus>=1.10.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.19.8)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-api-core[grpc]<3.0.0dev,>=1.29.0->google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.53.0)
Requirement already satisfied: libcst>=0.2.5 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.3.21)
Requirement already satisfied: grpc-google-iam-v1<0.13dev,>=0.12.3 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-cloud-bigtable<2,>=0.31.1->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.12.3)
Requirement already satisfied: google-crc32c<2.0dev,>=1.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-resumable-media<3.0dev,>=0.6.0->google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.3.0)
Requirement already satisfied: docopt in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from hdfs<3.0.0,>=2.1.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.6.2)
Requirement already satisfied: pyparsing<3,>=2.4.2 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from httplib2<0.20.0,>=0.8->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.4.7)
Requirement already satisfied: typing-inspect>=0.4.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from libcst>=0.2.5->google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.7.1)
Requirement already satisfied: pyyaml>=5.2 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from libcst>=0.2.5->google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (6.0)
Requirement already satisfied: pyasn1>=0.1.7 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from oauth2client<5,>=2.0.1->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.4.8)
Requirement already satisfied: idna<3,>=2.5 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.26.5)
Requirement already satisfied: chardet<5,>=3.0.2 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.0.0)
Requirement already satisfied: certifi>=2017.4.17 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2021.5.30)
Requirement already satisfied: tensorflow-estimator<2.8,~=2.7.0rc0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.7.0)
Requirement already satisfied: keras<2.8,>=2.7.0rc0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.7.0)
Requirement already satisfied: h5py>=2.9.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.1.0)
Requirement already satisfied: flatbuffers<3.0,>=1.12 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.12)
Requirement already satisfied: gast<0.5.0,>=0.2.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.4.0)
Requirement already satisfied: libclang>=9.0.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (12.0.0)
Requirement already satisfied: google-pasta>=0.1.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.2.0)
Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.21.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.22.0)
Requirement already satisfied: astunparse>=1.6.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.6.3)
Requirement already satisfied: termcolor>=1.1.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.1.0)
Requirement already satisfied: wheel<1.0,>=0.32.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.36.2)
Requirement already satisfied: keras-preprocessing>=1.1.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.1.2)
Requirement already satisfied: opt-einsum>=2.3.2 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.3.0)
Requirement already satisfied: tensorboard~=2.6 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.7.0)
Requirement already satisfied: wrapt>=1.11.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.12.1)
Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.8.0)
Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.4.4)
Requirement already satisfied: werkzeug>=0.11.15 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.0.1)
Requirement already satisfied: markdown>=2.6.8 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.3.4)
Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.6.1)
Requirement already satisfied: requests-oauthlib>=0.7.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.3.0)
Requirement already satisfied: oauthlib>=3.0.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.1.1)
Requirement already satisfied: mypy-extensions>=0.3.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from typing-inspect>=0.4.0->libcst>=0.2.5->google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.4.3)
Requirement already satisfied: kiwisolver>=1.0.1 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from matplotlib->tensorflow-gnn==0.1.0) (1.3.1)
Requirement already satisfied: cycler>=0.10 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from matplotlib->tensorflow-gnn==0.1.0) (0.10.0)
Requirement already satisfied: pillow>=6.2.0 in /Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages (from matplotlib->tensorflow-gnn==0.1.0) (8.2.0)
Building wheels for collected packages: tensorflow-gnn
  Building wheel for tensorflow-gnn (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/rishabhanand/miniconda3/envs/TensorFlow/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py'"'"'; __file__='"'"'/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-wheel-mthpqja5
       cwd: /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/
  Complete output (50 lines):
  running bdist_wheel
  running build
  running bazel_build
  Starting local Bazel server and connecting to it...
  Loading:
  Loading: 0 packages loaded
  Loading: 0 packages loaded
  Loading: 0 packages loaded
  DEBUG: /private/var/tmp/_bazel_rishabhanand/079daae8407a39d2a06054d5b945f048/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
  Loading: 0 packages loaded
  Loading: 0 packages loaded
  Loading: 0 packages loaded
  Loading: 0 packages loaded
  Analyzing: target //package:move_generated_files (1 packages loaded, 0 targets configured)
  ERROR: /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/package/BUILD:10:10: no such target '//tensorflow_gnn/sampler:sampling_spec_pb2.py': target 'sampling_spec_pb2.py' not declared in package 'tensorflow_gnn/sampler' defined by /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/tensorflow_gnn/sampler/BUILD and referenced by '//package:move_generated_files'
  ERROR: Analysis of target '//package:move_generated_files' failed; build aborted: Analysis failed
  INFO: Elapsed time: 29.988s
  INFO: 0 processes.
  FAILED: Build did NOT complete successfully (10 packages loaded, 10 targets configured)
  ERROR: Build failed. Not running target
  FAILED: Build did NOT complete successfully (10 packages loaded, 10 targets configured)
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py", line 152, in <module>
      setup(
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py", line 86, in run
      subprocess.check_call(
    File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/subprocess.py", line 373, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['/usr/local/bin/bazel', 'run', '-c', 'opt', '--experimental_repo_remote_exec', '--macos_minimum_os=10.9', '//package:move_generated_files']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for tensorflow-gnn
  Running setup.py clean for tensorflow-gnn
Failed to build tensorflow-gnn
Installing collected packages: tensorflow-gnn
    Running setup.py install for tensorflow-gnn ... error
    ERROR: Command errored out with exit status 1:
     command: /Users/rishabhanand/miniconda3/envs/TensorFlow/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py'"'"'; __file__='"'"'/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-record-0ma3o1eu/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rishabhanand/miniconda3/envs/TensorFlow/include/python3.9/tensorflow-gnn
         cwd: /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/
    Complete output (45 lines):
    running install
    running build
    running bazel_build
    Loading:
    Loading: 0 packages loaded
    DEBUG: /private/var/tmp/_bazel_rishabhanand/079daae8407a39d2a06054d5b945f048/external/tf_runtime/third_party/cuda/dependencies.bzl:51:10: The following command will download NVIDIA proprietary software. By using the software you agree to comply with the terms of the license agreement that accompanies the software. If you do not agree to the terms of the license agreement, do not use the software.
    Analyzing: target //package:move_generated_files (0 packages loaded, 0 targets configured)
    ERROR: /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/package/BUILD:10:10: no such target '//tensorflow_gnn/sampler:sampling_spec_pb2.py': target 'sampling_spec_pb2.py' not declared in package 'tensorflow_gnn/sampler' defined by /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/tensorflow_gnn/sampler/BUILD and referenced by '//package:move_generated_files'
    ERROR: Analysis of target '//package:move_generated_files' failed; build aborted: Analysis failed
    INFO: Elapsed time: 0.191s
    INFO: 0 processes.
    FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
    ERROR: Build failed. Not running target
    FAILED: Build did NOT complete successfully (0 packages loaded, 0 targets configured)
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py", line 152, in <module>
        setup(
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages/setuptools/__init__.py", line 153, in setup
        return distutils.core.setup(**attrs)
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/core.py", line 148, in setup
        dist.run_commands()
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 966, in run_commands
        self.run_command(cmd)
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/site-packages/setuptools/command/install.py", line 61, in run
        return orig.install.run(self)
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/command/install.py", line 546, in run
        self.run_command('build')
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/command/build.py", line 135, in run
        self.run_command(cmd_name)
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/cmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/distutils/dist.py", line 985, in run_command
        cmd_obj.run()
      File "/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py", line 86, in run
        subprocess.check_call(
      File "/Users/rishabhanand/miniconda3/envs/TensorFlow/lib/python3.9/subprocess.py", line 373, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/local/bin/bazel', 'run', '-c', 'opt', '--experimental_repo_remote_exec', '--macos_minimum_os=10.9', '//package:move_generated_files']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: /Users/rishabhanand/miniconda3/envs/TensorFlow/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py'"'"'; __file__='"'"'/private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-req-build-kgqd2bkw/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/s5/g5knq0hd405dd5lx90_lshdc0000gn/T/pip-record-0ma3o1eu/install-record.txt --single-version-externally-managed --compile --install-headers /Users/rishabhanand/miniconda3/envs/TensorFlow/include/python3.9/tensorflow-gnn Check the logs for full command output.
(TensorFlow) rish $ 

Any help here would be greatly appreciated! Are there any other prerequisites I need to run it smoothly / install from source?

Thank you!

@rish-16 rish-16 changed the title Issues installing on macOS Big Sur 11.5.2 Issues installing from source on macOS Big Sur 11.5.2 Nov 19, 2021
@tbaker2
Copy link

tbaker2 commented Nov 19, 2021

I have the same problem on Ubuntu 20.04. It seems like the script is looking for setup.py in a temporary directory that doesn't exist.

@SamirMoustafa
Copy link

+1

@ecastillot
Copy link

I have the same issue.

@Maximilianxu
Copy link

Maximilianxu commented Nov 22, 2021

Actually, this is because a file named sampling_spec_pb2.py is missing.

At commit "2101be", they removed the line "tensorflow_gnn/sampler/sampling_spec_pb2.py" from package/move_generated_files.sh. However, this sh file was created at commit "f63576". At this "f63576" commit, the package/BUILD file also included this line "//tensorflow_gnn/sampler:sampling_spec_pb2.py".

Afterwards, they deleted the sampling_spec.py and removed the "sampling_spec_pb2.py" line from file package/move_generated_files.sh at commit "2101be", but forgot to remove it from that BUILD file too. I guess.

As a result, you can just remove the line "//tensorflow_gnn/sampler:sampling_spec_pb2.py" from package/BUILD file (line 17).

@lucky630
Copy link

As a result, you can just remove the line "//tensorflow_gnn/sampler:sampling_spec_pb2.py" from package/BUILD file (line 17).

still getting error after removing the line from package/BUILD file

@Maximilianxu
Copy link

As a result, you can just remove the line "//tensorflow_gnn/sampler:sampling_spec_pb2.py" from package/BUILD file (line 17).

still getting error after removing the line from package/BUILD file

You may provide the error log, please. I don't think the same error will arise if you remove the line, because there are no other references to the sampling_spec.py. You can confirm this by executing ag "sampling_spec" in the terminal (ag is a powerful searching tool silversearcher-ag.).

@lucky630
Copy link

lucky630 commented Nov 24, 2021

You may provide the error log, please. I don't think the same error will arise if you remove the line, because there are no other references to the sampling_spec.py. You can confirm this by executing ag "sampling_spec" in the terminal (ag is a powerful searching tool silversearcher-ag.).

tensorflow-gnn==0.1.0) (0.4.3) Building wheels for collected packages: tensorflow-gnn Building wheel for tensorflow-gnn (setup.py) ... error ERROR: Failed building wheel for tensorflow-gnn Running setup.py clean for tensorflow-gnn Failed to build tensorflow-gnn Installing collected packages: tensorflow-gnn Running setup.py install for tensorflow-gnn ... error ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/content/tensorflow_gnn/setup.py'"'"'; __file__='"'"'/content/tensorflow_gnn/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-12b9919l/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/tensorflow-gnn Check the logs for full command output.

@sibonli
Copy link
Contributor

sibonli commented Nov 24, 2021

@lucky630 - could you show the full error message and the errors from the logs?

@lucky630
Copy link

@lucky630 - could you show the full error message and the errors from the logs?

That's the full error that I'm getting. I'm using Google Colab for the installation.
Have installed and Bazel and Graphviz,
python version is 3.9.9 and TensorFlow version is 2.7.0

Processing /content/tensorflow_gnn Preparing metadata (setup.py) ... done Requirement already satisfied: absl-py in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (1.0.0) Requirement already satisfied: apache-beam[gcp]>=2.32 in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (2.34.0) Requirement already satisfied: grpcio in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (1.42.0) Requirement already satisfied: matplotlib in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (3.5.0) Requirement already satisfied: mock in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (4.0.3) Requirement already satisfied: networkx in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (2.6.3) Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (1.20.3) Requirement already satisfied: protobuf>=3.17 in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (3.19.1) Requirement already satisfied: pyarrow in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (5.0.0) Requirement already satisfied: pygraphviz in /usr/local/lib/python3.9/dist-packages/pygraphviz-1.8rc1.dev0-py3.9-linux-x86_64.egg (from tensorflow-gnn==0.1.0) (1.8rc1.dev0) Requirement already satisfied: scipy in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (1.7.3) Requirement already satisfied: six in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (1.16.0) Requirement already satisfied: tensorflow-cpu>=2.7.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-gnn==0.1.0) (2.7.0) Requirement already satisfied: future<1.0.0,>=0.18.2 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.18.2) Requirement already satisfied: dill<0.3.2,>=0.3.1.1 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.3.1.1) Requirement already satisfied: httplib2<0.20.0,>=0.8 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.19.1) Requirement already satisfied: pytz>=2018.3 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2021.3) Requirement already satisfied: crcmod<2.0,>=1.7 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7) Requirement already satisfied: pymongo<4.0.0,>=3.8.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (3.12.1) Requirement already satisfied: oauth2client<5,>=2.0.1 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.1.3) Requirement already satisfied: requests<3.0.0,>=2.24.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.26.0) Requirement already satisfied: avro-python3!=1.9.2,<1.10.0,>=1.8.1 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.9.2.1) Requirement already satisfied: orjson<4.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (3.6.4) Requirement already satisfied: hdfs<3.0.0,>=2.1.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.6.0) Requirement already satisfied: pydot<2,>=1.2.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.4.2) Requirement already satisfied: fastavro<2,>=0.21.4 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.4.7) Requirement already satisfied: typing-extensions<4,>=3.7.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (3.10.0.2) Requirement already satisfied: python-dateutil<3,>=2.8.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.8.2) Requirement already satisfied: google-cloud-spanner<2,>=1.13.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.19.1) Requirement already satisfied: google-cloud-language<2,>=1.3.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.3.0) Requirement already satisfied: google-cloud-pubsub<2,>=0.39.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7.0) Requirement already satisfied: google-cloud-recommendations-ai<=0.2.0,>=0.1.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.2.0) Requirement already satisfied: grpcio-gcp<1,>=0.2.2 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.2.2) Requirement already satisfied: google-cloud-bigquery-storage>=2.6.3 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.10.1) Requirement already satisfied: google-auth<3,>=1.18.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.35.0) Requirement already satisfied: google-cloud-core<2,>=0.28.1 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7.2) Requirement already satisfied: cachetools<5,>=3.1.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.2.4) Requirement already satisfied: google-cloud-vision<2,>=0.38.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.0.0) Requirement already satisfied: google-apitools<0.5.32,>=0.5.31 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.5.31) Requirement already satisfied: google-cloud-bigtable<2,>=0.31.1 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.7.0) Requirement already satisfied: google-cloud-bigquery<3,>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.30.1) Requirement already satisfied: google-cloud-videointelligence<2,>=1.8.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.16.1) Requirement already satisfied: google-cloud-dlp<2,>=0.12.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.0.0) Requirement already satisfied: google-cloud-datastore<2,>=1.8.0 in /usr/local/lib/python3.9/dist-packages (from apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.15.3) Requirement already satisfied: h5py>=2.9.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.6.0) Requirement already satisfied: keras<2.8,>=2.7.0rc0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.7.0) Requirement already satisfied: wheel<1.0,>=0.32.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.37.0) Requirement already satisfied: wrapt>=1.11.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.13.3) Requirement already satisfied: tensorboard~=2.6 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.7.0) Requirement already satisfied: tensorflow-estimator<2.8,~=2.7.0rc0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.7.0) Requirement already satisfied: libclang>=9.0.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (12.0.0) Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.1.0) Requirement already satisfied: astunparse>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.6.3) Requirement already satisfied: flatbuffers<3.0,>=1.12 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.0) Requirement already satisfied: gast<0.5.0,>=0.2.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.4.0) Requirement already satisfied: tensorflow-io-gcs-filesystem>=0.21.0 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.22.0) Requirement already satisfied: google-pasta>=0.1.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.2.0) Requirement already satisfied: opt-einsum>=2.3.2 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.3.0) Requirement already satisfied: keras-preprocessing>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.1.2) Requirement already satisfied: setuptools-scm>=4 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (6.3.2) Requirement already satisfied: packaging>=20.0 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (21.3) Requirement already satisfied: kiwisolver>=1.0.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (1.3.2) Requirement already satisfied: fonttools>=4.22.0 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (4.28.2) Requirement already satisfied: pillow>=6.2.0 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (8.4.0) Requirement already satisfied: pyparsing>=2.2.1 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (2.4.7) Requirement already satisfied: cycler>=0.10 in /usr/local/lib/python3.9/dist-packages (from matplotlib->tensorflow-gnn==0.1.0) (0.11.0) Requirement already satisfied: fasteners>=0.14 in /usr/local/lib/python3.9/dist-packages (from google-apitools<0.5.32,>=0.5.31->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.16.3) Requirement already satisfied: rsa<5,>=3.1.4 in /usr/local/lib/python3.9/dist-packages (from google-auth<3,>=1.18.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (4.8) Requirement already satisfied: pyasn1-modules>=0.2.1 in /usr/local/lib/python3.9/dist-packages (from google-auth<3,>=1.18.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.2.8) Requirement already satisfied: setuptools>=40.3.0 in /usr/local/lib/python3.9/dist-packages (from google-auth<3,>=1.18.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (59.2.0) Requirement already satisfied: google-api-core[grpc]<3.0.0dev,>=1.29.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.31.4) Requirement already satisfied: google-resumable-media<3.0dev,>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.1.0) Requirement already satisfied: proto-plus>=1.10.0 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.19.8) Requirement already satisfied: libcst>=0.2.5 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.3.23) Requirement already satisfied: grpc-google-iam-v1<0.13dev,>=0.12.3 in /usr/local/lib/python3.9/dist-packages (from google-cloud-bigtable<2,>=0.31.1->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.12.3) Requirement already satisfied: docopt in /usr/local/lib/python3.9/dist-packages (from hdfs<3.0.0,>=2.1.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.6.2) Requirement already satisfied: pyasn1>=0.1.7 in /usr/local/lib/python3.9/dist-packages (from oauth2client<5,>=2.0.1->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.4.8) Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/dist-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.0.8) Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/dist-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2021.10.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/dist-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.26.7) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests<3.0.0,>=2.24.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (2.6) Requirement already satisfied: tomli>=1.0.0 in /usr/local/lib/python3.9/dist-packages (from setuptools-scm>=4->matplotlib->tensorflow-gnn==0.1.0) (1.2.2) Requirement already satisfied: tensorboard-data-server<0.7.0,>=0.6.0 in /usr/local/lib/python3.9/dist-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.6.1) Requirement already satisfied: werkzeug>=0.11.15 in /usr/local/lib/python3.9/dist-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (2.0.2) Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.9/dist-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.3.6) Requirement already satisfied: google-auth-oauthlib<0.5,>=0.4.1 in /usr/local/lib/python3.9/dist-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (0.4.6) Requirement already satisfied: tensorboard-plugin-wit>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.8.0) Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in /usr/local/lib/python3.9/dist-packages (from google-api-core[grpc]<3.0.0dev,>=1.29.0->google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.53.0) Requirement already satisfied: requests-oauthlib>=0.7.0 in /usr/local/lib/python3.9/dist-packages (from google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (1.3.0) Requirement already satisfied: google-crc32c<2.0dev,>=1.0 in /usr/local/lib/python3.9/dist-packages (from google-resumable-media<3.0dev,>=0.6.0->google-cloud-bigquery<3,>=1.6.0->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (1.3.0) Requirement already satisfied: typing-inspect>=0.4.0 in /usr/local/lib/python3.9/dist-packages (from libcst>=0.2.5->google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.7.1) Requirement already satisfied: pyyaml>=5.2 in /usr/local/lib/python3.9/dist-packages (from libcst>=0.2.5->google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (6.0) Requirement already satisfied: importlib-metadata>=4.4 in /usr/local/lib/python3.9/dist-packages (from markdown>=2.6.8->tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (4.8.2) Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=4.4->markdown>=2.6.8->tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.6.0) Requirement already satisfied: oauthlib>=3.0.0 in /usr/local/lib/python3.9/dist-packages (from requests-oauthlib>=0.7.0->google-auth-oauthlib<0.5,>=0.4.1->tensorboard~=2.6->tensorflow-cpu>=2.7.0->tensorflow-gnn==0.1.0) (3.1.1) Requirement already satisfied: mypy-extensions>=0.3.0 in /usr/local/lib/python3.9/dist-packages (from typing-inspect>=0.4.0->libcst>=0.2.5->google-cloud-bigquery-storage>=2.6.3->apache-beam[gcp]>=2.32->tensorflow-gnn==0.1.0) (0.4.3) Building wheels for collected packages: tensorflow-gnn Building wheel for tensorflow-gnn (setup.py) ... error ERROR: Failed building wheel for tensorflow-gnn Running setup.py clean for tensorflow-gnn Failed to build tensorflow-gnn Installing collected packages: tensorflow-gnn Running setup.py install for tensorflow-gnn ... error ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/content/tensorflow_gnn/setup.py'"'"'; __file__='"'"'/content/tensorflow_gnn/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qtur1f2t/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/tensorflow-gnn Check the logs for full command output.

@Maximilianxu
Copy link

@lucky630 The message you provided just says an error happened, and we're cleaning some files. The log is too long such that "..." is used in this message.

You may run python3 -m pip install . --log install.log and provide the content of file install.log (especially the error trace in this file).

@lucky630
Copy link

lucky630 commented Nov 25, 2021

@lucky630 The message you provided just says an error happened, and we're cleaning some files. The log is too long such that "..." is used in this message.

You may run python3 -m pip install . --log install.log and provide the content of file install.log (especially the error trace in this file).

Thanks, I think it was bazel error after installing bazel 1.0.0 sudo apt install bazel-1.0.0 it was fixed but now I'm getting
AttributeError: module 'tensorflow_gnn' has no attribute 'keras' error

import tensorflow_gnn
dir(tensorflow_gnn)
['__doc__',
 '__file__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__']

@Maximilianxu
Copy link

@lucky630 Not sure the root cause. Seems that no submodules are included. You may uninstall and reinstall it again. BTW, my bazel version is 4.2.1.

Once installed, for me, the __init__.py in the corresponding directory site-packages/tensorflow_gnn should be as follows:

from tensorflow_gnn.graph import graph_tensor_encode
from tensorflow_gnn.graph import graph_tensor_io
from tensorflow_gnn.graph import graph_tensor_ops
from tensorflow_gnn.graph import graph_tensor_pprint
from tensorflow_gnn.graph import graph_tensor_random
from tensorflow_gnn.graph import keras  # For use as a subpackage.
from tensorflow_gnn.graph import normalization_ops
from tensorflow_gnn.graph import schema_utils
from tensorflow_gnn.graph import schema_validation
from tensorflow_gnn.proto import graph_schema
...

@lucky630
Copy link

I'm installing this on Google Colab and for me, the init.py is the same but it still not working
Screenshot (84)
Screenshot (85)

@nobody4t
Copy link

@Maximilianxu
Thanks for your investigation which saved a lot of my time.
It works for me.

@rish-16 rish-16 mentioned this issue Dec 12, 2021
@rish-16
Copy link
Author

rish-16 commented Dec 12, 2021

Maybe this issue could be pinned so others facing this specific installation error (due to the bazel build) can easily fix it? @sibonli @janpfeifer

The solution is to simply remove the "//tensorflow_gnn/sampler:sampling_spec_pb2.py" line from package/BUILD and run installation step 4 (from the README) again.

@rish-16 rish-16 closed this as completed Dec 12, 2021
sibonli added a commit that referenced this issue Jan 6, 2022
PiperOrigin-RevId: 413682559
sibonli added a commit that referenced this issue Jan 6, 2022
PiperOrigin-RevId: 420100889
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

8 participants