I clone the source code from github, then i want to run the openpifpaf/src/openpifpaf/predict.py file.And it raise error.I tracked down the issue and found that the error came from cpp_extension.register_ops()。
extfinder = importlib.machinery.FileFinder(lib_dir, loader_details)ext_specs = extfinder.find_spec("_cpp")if ext_specs is None:raise ImportError
It needs some openpifpaf._cpp files where i found in setup.py.
I want to run from the source code, and i do not know how to build this openpifpaf._cpp file,please help!!
I already fixed it.
you need run the following command and manually specify the path of _cpp.so file .
1. python setup.py build2. python setup.py install
I clone the source code from github, then i want to run the openpifpaf/src/openpifpaf/predict.py file.And it raise error.I tracked down the issue and found that the error came from cpp_extension.register_ops()。
extfinder = importlib.machinery.FileFinder(lib_dir, loader_details)
ext_specs = extfinder.find_spec("_cpp")
if ext_specs is None:
raise ImportError
It needs some openpifpaf._cpp files where i found in setup.py. I want to run from the source code, and i do not know how to build this openpifpaf._cpp file,please help!!