CTPN icon indicating copy to clipboard operation
CTPN copied to clipboard

The error when I run python /tools/demo.py --no-gpu.

Open yingning opened this issue 7 years ago • 3 comments

ImportError: No module named layers.text_proposal_layer Traceback (most recent call last): File "/home/jsj/pycharm-2017.1.4/helpers/pydev/pydevd.py", line 1591, in globals = debugger.run(setup['file'], None, None, is_module) File "/home/jsj/pycharm-2017.1.4/helpers/pydev/pydevd.py", line 1018, in run pydev_imports.execfile(file, globals, locals) # execute the script File "/home/jsj/CTPN/tools/demo.py", line 42, in text_proposals_detector=TextProposalDetector(CaffeModel(NET_DEF_FILE, MODEL_FILE)) File "/home/jsj/CTPN/tools/other.py", line 87, in init self.net=caffe.Net(net_def_file, model_file, caffe.TEST) SystemError: NULL result without error in PyObject_Call

Process finished with exit code 1

@tianzhi0549 I got the above error ,I need your help ,thanks in advance!

yingning avatar Jul 21 '17 10:07 yingning

@yingning I don't know why you have this error. But please try to run export PYTHONPATH=src/:$PYTHONPATH before python tools/demo.py in the same working directory. Thank you.

tianzhi0549 avatar Jul 23 '17 02:07 tianzhi0549

Thank you very much ,your advice solved my problem! @tianzhi0549

yingning avatar Jul 23 '17 03:07 yingning

I am also getting the same error. what is this PYTHONPATH variable? I tried appending src/ to PYTHONPATH variable as well as my PATH variable. But no success. Please help asap. Thanks in advance.

guptasaurabh9868 avatar Apr 27 '18 06:04 guptasaurabh9868