Giter VIP home page Giter VIP logo

Comments (14)

khsrhhh avatar khsrhhh commented on May 18, 2024 9

I had same issue, and I referenced @turboxin 's comment.

Actually 2 lines had a problem to compile.
=>
from waymo_open_dataset.utils import frame_utils
from waymo_open_dataset import dataset_pb2 as open_dataset

and I ran commands on terminal
=>
$ protoc ./waymo_open_dataset/dataset.proto -- python_out=.
$ protoc ./waymo_open_dataset/label.proto -- python_out=.

After ran them, change directory to waymo_open_dataset(master)/waymo_open_dataset
Now, you can see dataset_pb2.py and label_pb2.py files exist.

from waymo-open-dataset.

turboxin avatar turboxin commented on May 18, 2024 4

@SagnikD95 you need to install protobuf and run protoc ./waymo_open-dataset/dataset.proto --python_out=.

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024
  1. Try to run:
    pip3 install --upgrade pip

manylinux pip package needs a recent pip version

(we only support python2.7, python3.5, python3.6)

  1. If you have a different python version or an os not supported, try to build the pip package on your own. something like:

export PYTHON_VERSION=3 && ./pip_pkg_scripts/build.sh

from waymo-open-dataset.

SagnikD95 avatar SagnikD95 commented on May 18, 2024

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024

did you install pip package output by build.sh? something like:
pip (or pip3) install ${WHEEL_FILE} --user

note that if you do not install the pip package, it can also work. but you need to copy the proto generated files to waymo_open_dataset dir.

See the tutorial
https://github.com/waymo-research/waymo-open-dataset/blob/r1.0/tutorial/tutorial.ipynb

from waymo-open-dataset.

SagnikD95 avatar SagnikD95 commented on May 18, 2024

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024

Can you copy/paste the error msg and all the commands you used?

  • make sure you have installed the package.

from waymo-open-dataset.

SagnikD95 avatar SagnikD95 commented on May 18, 2024

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024
  1. You cannot install waymo-open-dataset because you cannot upgrade your pip.

  2. You did not install the pip package after './pip_pkg_scripts/build.sh'. You need to do something like
    pip3 install $YOUR_PIP_PACKAGE_BUILT_LOCALLY

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024

Is this resolved?

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024

You can also copy the files generated by bazel directly though i think it is better to use the pip package.

from waymo-open-dataset.

peisun1115 avatar peisun1115 commented on May 18, 2024
  1. Did you install from the pre-compiled pip package?

  2. If answer to 1 is no, then yes, you will need to copy the proto generated files. Bazel generates that automatically for you. It locates at bazel-genfiles/waymo_open_dataset/

from waymo-open-dataset.

SagnikD95 avatar SagnikD95 commented on May 18, 2024

@SagnikD95 you need to install protobuf and run protoc ./waymo_open-dataset/dataset.proto --python_out-.

Thanks a ton. Worked like a charm!

from waymo-open-dataset.

SagnikD95 avatar SagnikD95 commented on May 18, 2024

I had same issue, and I referenced @turboxin 's comment.

Actually 2 lines had a problem to compile.
=>
from waymo_open_dataset.utils import frame_utils from waymo_open_dataset import dataset_pb2 as open_dataset

and I ran commands on terminal
=>
$ protoc ./waymo_open_dataset/dataset.proto -- python_out=. $ protoc ./waymo_open_dataset/label.proto -- python_out=.

After ran them, change directory to waymo_open_dataset(master)/waymo_open_dataset
Now, you can see dataset_pb2.py and label_pb2.py files exist.

Yes it worked. Thanks

from waymo-open-dataset.

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.