Skip to content

latest docker image from paddlepaddle/paddle:latest can't import fluid #11059

Closed
@jetfuel

Description

@jetfuel

I am trying to run the paddle docker image to test paddle fluid.
So first I pull the docker images with

docker pull paddlepaddle/paddle

Once the update is completed. I tried to run paddlepaddle/paddle:latest and import paddle.fluid and got the following error.

(snake2.7) C02QF201G8WM-JW:book wangjeff$ docker run -it -p 8888:8888 -v $PWD:/work paddlepaddle/paddle:latest /bin/bash
root@947305d4983d:/# python
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import paddle
>>> import paddle.v2
>>> import paddle.fluid
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/__init__.py", line 17, in <module>
    import framework
  File "/usr/local/lib/python2.7/dist-packages/paddle/fluid/framework.py", line 22, in <module>
    from . import core
ImportError: /usr/local/lib/python2.7/dist-packages/paddle/fluid/core.so: undefined symbol: _Z32TouchOpRegistrar_tensorrt_enginev
>>> 

Looks like the linking is missing the tensorrt_engine_op.h. Since tensorrt_engine_op.h is a pretty new file. I suspect that we just miss the configuration for it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions