Giter Club home page Giter Club logo

Comments (12)

fidel-schaposnik avatar fidel-schaposnik commented on June 4, 2024 1

To get around this error, clone the main TensorFlow repository, then manually compile the protocol buffer files in the proto directory. Assuming you are working from your home directory:

pip install grpcio grpcio-tools
git clone https://github.com/tensorflow/tensorflow.git
cd tensorflow_gnn/tensorflow_gnn/proto
python -m grpc_tools.protoc -I . -I ~/tensorflow --python_out=. graph_schema.proto
python -m grpc_tools.protoc -I . -I ~/tensorflow --python_out=. examples.proto

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

Same error when run this example https://github.com/yarri-oss/gnn/blob/main/examples/citeseer/graph_tensor_example.py

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

@joshcarty Do you have this issue when you run gat_v2_test.py? Thank you.

from gnn.

joshcarty avatar joshcarty commented on June 4, 2024

Answered here.

I'd also be wary of using the above fork - it's from an older version of the package and quite a few changes have been made since, including the removal of those examples.

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

Had run the command before.

image

should have no error in the highlight box in pycharm if everything installed correctly?

from gnn.

joshcarty avatar joshcarty commented on June 4, 2024

The error suggests that there was an issue with the installation, as the modules that need to be built from Protobufs are not available.

Do you want to pip install the package again and show us the output of the install if it looks like there was a problem?

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

Thank you. The reason is my tf can't install successfully.

  1. My cpu does not support avx, so I comment #'tensorflow>=2.7.0', in setup.py and build tf by myself.
  2. Use pip to install my tf but got ERROR: tensorflow-2.7.0-cp39-cp39-linux_x86_64.whl is not a supported wheel on this platform.
  3. Use sudo pip to install my tf successfully.
  4. Why tf build in my OS can't install to my Os by general user but can install it successfully by super user?

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

It seems general user use /home/sidney/.local/bin/pip3.8 and super user use /usr/local/bin/pip3.9 cause the problem.

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

ssh://[email protected]:22/usr/bin/python -u /home/sidney/py_proj/tf-gnn/tensorflow_gnn/graph/keras/layers/gat_v2_test.py
free(): invalid pointer

Process finished with exit code 134

this error occur after all installed correctly, what's the problem?

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

image

image

So the tf is not installed correctly? How to solve this problem then?

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

Run gat_v2_test.py successfully now. But need copy the generated file graph_schema_pb2.py to the proto folder, is it normal?

from gnn.

SidneyLann avatar SidneyLann commented on June 4, 2024

Thanks. This just generate graph_schema_pb2.py from graph_schema.proto in proto folder, right? it is generated in another place when install tensorflow_gnn, and just need to copy it to proto folder.

from gnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.