Closed turbin closed 4 years ago
Try Python 3
turbine yan notifications@github.com 于 2020年4月7日周二 下午1:23写道:
I like this project. I met a error when I try to config it, as type: 'python ./configure.py --backend auto' then an error was reported on the screen, as:
pi@FRE-Raspberrypi:~/NNPACK-darknet$ python ./configure.py --backend auto Detected root directory: /home/pi/NNPACK-darknet /usr/local/lib/python2.7/dist-packages/confu/manifest.py:36: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details. manifest_yaml = yaml.load(manifest_text) Configuring dependency pthreadpool Configuring dependency fxdiv Configuring dependency googletest Configuring dependency googlebenchmark Traceback (most recent call last): File "./configure.py", line 396, in
main(sys.argv[1:]).generate() File "./configure.py", line 36, in main (build.deps.pthreadpool, build.deps.fxdiv, build.deps.fp16): any, File "/usr/local/lib/python2.7/dist-packages/confu/builds/deps.py", line 48, in getattr config = configure.main(["--target", self._target]) File "/home/pi/NNPACK-darknet/deps/pthreadpool/configure.py", line 20, in main build.static_library("pthreadpool", [build.cc(src) for src in sources]) File "/usr/local/lib/python2.7/dist-packages/confu/builds/unix.py", line 72, in cc return self._compile("cc", source_path) File "/usr/local/lib/python2.7/dist-packages/confu/builds/unix.py", line 56, in _compile source_path = validate_source_path(source_path, self.source_dir) File "/usr/local/lib/python2.7/dist-packages/confu/validators.py", line 67, in validate_source_path .format(source_path=source_path)) ValueError: Specified source file /home/pi/NNPACK-darknet/deps/pthreadpool/src/threadpool-legacy.c does not exist any idea about this?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/digitalbrain79/darknet-nnpack/issues/45, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZY3LDBN63S3BTCGTWXNEDRLK2E3ANCNFSM4MC2F3LA .
this issue was not relative to the version of python. I have figured out the reason, because the author of the project ptheadpool was refactoring those code and rename all of files, but forgetting to update the config.py file in new version. I try to revert the repo in a specified version then re-compile the whole project then the issue was solved.
@turbin I am having this same problem right now. To which commit did you roll back to for pthreadpool?
nvm. Found it. Thanks for the save!
I like this project. I met a error when I try to config it, as type: 'python ./configure.py --backend auto' then an error was reported on the screen, as:
any idea about this?