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

Pre-build docker image does not work. #44

Closed
yukke42 opened this issue Jun 22, 2019 · 4 comments
Closed

Pre-build docker image does not work. #44

yukke42 opened this issue Jun 22, 2019 · 4 comments

Comments

@yukke42
Copy link

yukke42 commented Jun 22, 2019

Thanks for sharing codes.
I pulled the docker image of tomas789/kitti2bag then run docker, but the following error occurred.
So, tomas789/kitti2bag needs to be updated.

$ docker run -v `pwd`:/data -it tomas789/kitti2bag -t 2011_09_26 -r 0002 raw_synced
Traceback (most recent call last):
  File "/usr/local/bin/kitti2bag", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2927, in <module>
    @_call_aside
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 637, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 650, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 834, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (numpy 1.11.0 (/usr/lib/python2.7/dist-packages), Requirement.parse('numpy>=1.12.0'), set(['pandas']))
@emef
Copy link

emef commented Jun 28, 2019

You can work around this by upgrading numpy inside the container and then running the command directly:

host: docker run -it --entrypoint "/bin/bash" -v `pwd`:/data -it tomas789/kitti2bag

> pip install numpy==1.12
> source "/opt/ros/$ROS_DISTRO/setup.bash"
> kitti2bag -t 2011_09_26 -r 0002 raw_synced

@valgur
Copy link
Collaborator

valgur commented Jun 29, 2019

There's a much simpler and working Dockerfile available in this open pull request: https://github.com/valgur/kitti2bag/blob/master/Dockerfile

@yukke42
Copy link
Author

yukke42 commented Jul 3, 2019

@emef @valgur
Thank you so much. I got working Dockerfile so close this issue.

@yukke42 yukke42 closed this as completed Jul 3, 2019
@OlgaMatykina
Copy link

You can work around this by upgrading numpy inside the container and then running the command directly:

host: docker run -it --entrypoint "/bin/bash" -v `pwd`:/data -it tomas789/kitti2bag

> pip install numpy==1.12
> source "/opt/ros/$ROS_DISTRO/setup.bash"
> kitti2bag -t 2011_09_26 -r 0002 raw_synced

Thank you very much! It works!

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

4 participants