You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!!
The text was updated successfully, but these errors were encountered:
I already fixed it.
you need run the following command and manually specify the path of _cpp.so file . 1. python setup.py build 2. python setup.py install
3. check the _cpp.so file path and remember it.
4. set the code in cpp_extension.py file
5. lib_dir = 'the path of your _cpp.so file'
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!!
The text was updated successfully, but these errors were encountered: