MarvinTeichmann / MultiNet

Real-time Joint Semantic Reasoning for Autonomous Driving
MIT License
546 stars 246 forks source link

Unable to import stitch_wrapper #31

Closed twmht closed 7 years ago

twmht commented 7 years ago

Hi,

I am using python 2.7.13 with pyenv (https://github.com/pyenv/pyenv)

when I run demo.py

python demo.py --gpus 1 --input data/demo/um_000005.png

the exceptions

  File "demo.py", line 426, in <module>
    tf.app.run()
  File "/home/tumh/.pyenv/versions/multinet/lib/python2.7/site-packages/tensorflow/python/platform/app.py", line 48, in run
    _sys.exit(main(_sys.argv[:1] + flags_passthrough))
  File "demo.py", line 366, in main
    min_conf=0.50, tau=subhypes['detection']['tau'])
  File "/home/tumh/MultiNet/submodules/KittiBox/incl/utils/train_utils.py", line 103, in add_rectangles
    from stitch_wrapper import stitch_rects
ImportError: /home/tumh/MultiNet/submodules/KittiBox/incl/utils/stitch_wrapper.so: undefined symbol: PyFPE_jbuf

Any idea?

thanks!

xiaofeiwu commented 7 years ago

I met the same problem. You need to go to the folder, and run make, which will compile the file

twmht commented 7 years ago

@xiaofeiwu

it's due to https://github.com/pyenv/pyenv

The problem solved after I switch to https://virtualenv.pypa.io/en/stable/