PWC-Net icon indicating copy to clipboard operation
PWC-Net copied to clipboard

undefined symbol: state

Open Andyzzz opened this issue 5 years ago • 5 comments

When I ran "bash make_cuda.sh", it didn't raise any mistake, but when I ran "python test/test.py", it reported "correlation_package/_ext/corr/_corr.so: undefined symbol: state", I don't know how to solve it. I use Ubuntu16.04, cuda8.0 and pytorch 0.2

Andyzzz avatar Nov 29 '18 09:11 Andyzzz

Please give me some suggestions. Thanks!

Andyzzz avatar Nov 29 '18 09:11 Andyzzz

Can you try the installation script using Anaconda to set up the environment (copied from readme under PyTorch)?

setup environment

conda create -n pwcnet_test python=2.7 anaconda conda activate pwcnet_test

install pytorch and other dependencies

pip install http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl pip install torchvision visdom dominate opencv-python cffi

install external packages

cd external_packages/correlation-pytorch-master/ bash make_cuda.sh cd ../../

deqings avatar Dec 27 '18 15:12 deqings

When I run "conda activate pwcnet_test", the error is "CommandNotFoundError: 'activate is not a conda command.", so I replace it by "source activate pwcnet_test". Then I just do as the installation script tells, and when I run "python script_pwc.py './data/frame_0010.png' './data/frame_0011.png' './tmp/frame_0010.flo'", it still reports that "ImportError: /home/zhang/anaconda2/envs/pwcnet_test/lib/python2.7/site-packages/correlation_package-0.1-py2.7-linux-x86_64.egg-tmp/correlation_package/_ext/corr/_corr.so: undefined symbol: state".

Andyzzz avatar Dec 28 '18 04:12 Andyzzz

Can you try again by installing anaconda3 and follow the instructions of the readme in this repository?

On Thu, Dec 27, 2018 at 11:56 PM Andyzzz [email protected] wrote:

When I run "conda activate pwcnet_test", the error is "CommandNotFoundError: 'activate is not a conda command.", so I replace it by "source activate pwcnet_test". Then I just do as the installation script tells, and when I run "python script_pwc.py './data/frame_0010.png' './data/frame_0011.png' './tmp/frame_0010.flo'", it still reports that "ImportError: /home/zhang/anaconda2/envs/pwcnet_test/lib/python2.7/site-packages/correlation_package-0.1-py2.7-linux-x86_64.egg-tmp/correlation_package/_ext/corr/_corr.so: undefined symbol: state".

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NVlabs/PWC-Net/issues/52#issuecomment-450290083, or mute the thread https://github.com/notifications/unsubscribe-auth/ABHwyfY_EsmrgJ-B1sQo-l8KryNyPIDmks5u9aSYgaJpZM4Y5Oxc .

jrenzhile avatar Dec 28 '18 06:12 jrenzhile

Installing the post3 version instead of post2, i.e. http://download.pytorch.org/whl/cu80/torch-0.2.0.post3-cp27-cp27mu-manylinux1_x86_64.whl solved the problem for me.

Kinantb avatar Apr 26 '19 17:04 Kinantb