-
Notifications
You must be signed in to change notification settings - Fork 622
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
dataset_pb2 not cannot be imported #35
Comments
manylinux pip package needs a recent pip version (we only support python2.7, python3.5, python3.6)
export PYTHON_VERSION=3 && ./pip_pkg_scripts/build.sh |
Hello,
Thank you for your reply. I have run the build.sh and it did compile
everything successfully but it still fails to import the dataset_pb2
folder.
Regards,
Sagnik
…On Fri, Sep 13, 2019 at 6:42 PM Pei Sun ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35?email_source=notifications&email_token=AKTTYVA2QV4TEQLLEK3OR3DQJQQM7A5CNFSM4IWUUZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6WN5OQ#issuecomment-531422906>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKTTYVGE4O7C2FMO2A7ADJDQJQQM7ANCNFSM4IWUUZPA>
.
|
did you install pip package output by build.sh? something like: 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 |
Yes i ran it by pip3.
Every time i run it returns and error
“Cannot import dataset_pb2 from frame_utils”
…On Mon, Sep 16, 2019 at 11:48 AM Pei Sun ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35?email_source=notifications&email_token=AKTTYVASZQORBKDBB3L6RCLQJ62GPA5CNFSM4IWUUZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6ZY6PA#issuecomment-531861308>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKTTYVDKD67KRRFUAWYJ76TQJ62GPANCNFSM4IWUUZPA>
.
|
Can you copy/paste the error msg and all the commands you used?
|
Thank you for helping me out so patiently, it is highly appreciated.
Please find attached a text file with details of the execution and the error.
Regards,
Sagnik
On Mon, Sep 16, 2019 at 12:19 PM Pei Sun ***@***.***> wrote:
Can you copy/paste the error msg and all the commands you used?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#35?email_source=notifications&email_token=AKTTYVAR4XEONMURXFJNTL3QJ65ZHA5CNFSM4IWUUZPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6Z33LI#issuecomment-531873197>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AKTTYVBNPX32XKLIQNI6WWDQJ65ZHANCNFSM4IWUUZPA>
.
git clone https://github.com/waymo-research/waymo-open-dataset.git waymo-od
cd waymo-od
git checkout remotes/origin/r1.0
./configure.sh
bazel clean
bazel test waymo_open_dataset/metrics:all
pip3 install numpy tensorflow
./configure.sh
bazel build waymo_open_dataset/metrics/ops/...
bazel test waymo_open_dataset/metrics/ops/...
pip3 install upgrade --pip
-- from pip import main
ImportError: cannot import name 'main'
pip3 install waymo-open-dataset==1.0.1 --user
-- Without upgrading pip, no compatible distribution found.
So I decided to build from scratch using pip_pkg_scripts as follows:
./pip_pkg_scripts/build.sh
Everything compiled without any erros.
When trying the sample collab file code on my machine, the following error appears:
CODE:import os
import tensorflow as tf
import math
import numpy as np
import itertools
tf.enable_eager_execution()
from waymo_open_dataset.utils import range_image_utils
from waymo_open_dataset.utils import transform_utils
from waymo_open_dataset.utils import frame_utils
from waymo_open_dataset import dataset_pb2 as open_dataset
ERROR: from waymo_open_dataset import dataset_pb2
ImportError: cannot import name dataset_pb2
|
|
Is this resolved? |
@SagnikD95 you need to install protobuf and run protoc ./waymo_open-dataset/dataset.proto --python_out=. |
You can also copy the files generated by bazel directly though i think it is better to use the pip package. |
I had same issue, and I referenced @turboxin 's comment. Actually 2 lines had a problem to compile. and I ran commands on terminal After ran them, change directory to waymo_open_dataset(master)/waymo_open_dataset |
|
Thanks a ton. Worked like a charm! |
Yes it worked. Thanks |
After succesfully downloading all the dependencies, I tried running the test program of your colab on my local machine setup, but it cannot import dataset_pb2 because it does not exist in waymo-open-dataset.
Also running pip3 install waymo-open-dataset returns a "no matching distribution found"
The text was updated successfully, but these errors were encountered: