ECT-FaceAlignment icon indicating copy to clipboard operation
ECT-FaceAlignment copied to clipboard

The python __import__() show error. ImportError: No module named copy_reg.

Open guoyangji opened this issue 7 years ago • 1 comments

Thanks for you sharing . I met one problem , when I ran the run_demo.py .

WARNING: Logging before InitGoogleLogging() is written to STDERR W1026 14:04:18.403190 17798 _caffe.cpp:122] DEPRECATION WARNING - deprecated use of Python interface W1026 14:04:18.403214 17798 _caffe.cpp:123] Use this instead (with the named "weights" parameter): W1026 14:04:18.403218 17798 _caffe.cpp:125] Net('../caffe/models/300w/matlab.prototxt', 1, weights='../model_data/') W1026 14:04:18.404358 17798 upgrade_proto.cpp:71] Note that future Caffe releases will only support input layers and not input fields. Traceback (most recent call last): File "run_demo.py", line 126, in main(parser.parse_args()) File "run_demo.py", line 47, in main fit_model = pickle.load(fit_model_file) File "/usr/lib/python2.7/pickle.py", line 1384, in load return Unpickler(file).load() File "/usr/lib/python2.7/pickle.py", line 864, in load dispatchkey File "/usr/lib/python2.7/pickle.py", line 1096, in load_global klass = self.find_class(module, name) File "/usr/lib/python2.7/pickle.py", line 1130, in find_class import(module) ImportError: No module named copy_reg

guoyangji avatar Oct 26 '18 06:10 guoyangji

Hi. This error seems to be related to the wrong version of python or something wrong with your python environment.

HongwenZhang avatar Oct 29 '18 15:10 HongwenZhang