-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hi !
When I either try command pip install DBoW3Py or comands
git clone --recursive https://github.com/Cenbylin/Python-DBoW3.git
cd ./Python-DBoW3
pip install .
(after pip install .)
I meet the following error:
Processing /home/cds-s/workspace/Python-DBoW3
Requirement already satisfied: numpy in /home/cds-s/anaconda3/envs/python37/lib/python3.7/site-packages (from DBoW3Py==0.0.3) (1.18.5)
Building wheels for collected packages: DBoW3Py
Building wheel for DBoW3Py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/cds-s/anaconda3/envs/python37/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lscerwnk/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-lscerwnk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-5lh9de32
cwd: /tmp/pip-req-build-lscerwnk/
Complete output (66 lines):
running bdist_wheel
running build
running build_ext
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /home/cds-s/anaconda3/envs/python37/bin/python3.7 (found version "3.7.7")
-- Found PythonLibs: /home/cds-s/anaconda3/envs/python37/lib/libpython3.7m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.5.dev1
CMake Error at CMakeLists.txt:8 (find_package):
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "4".
The following configuration files were considered but not accepted:
/usr/local/share/OpenCV/OpenCVConfig.cmake, version: 3.4.3
/usr/share/OpenCV/OpenCVConfig.cmake, version: 3.2.0
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-req-build-lscerwnk/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-lscerwnk/setup.py", line 75, in <module>
zip_safe=False,
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-req-build-lscerwnk/setup.py", line 32, in run
self.build_extension(ext)
File "/tmp/pip-req-build-lscerwnk/setup.py", line 60, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-req-build-lscerwnk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-req-build-lscerwnk/build/lib.linux-x86_64-3.7/', '-DPYTHON_EXECUTABLE=/home/cds-s/anaconda3/envs/python37/bin/python3.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for DBoW3Py
Running setup.py clean for DBoW3Py
Failed to build DBoW3Py
Installing collected packages: DBoW3Py
Running setup.py install for DBoW3Py ... error
ERROR: Command errored out with exit status 1:
command: /home/cds-s/anaconda3/envs/python37/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lscerwnk/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-lscerwnk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6a2sdbsu/install-record.txt --single-version-externally-managed --compile --install-headers /home/cds-s/anaconda3/envs/python37/include/python3.7m/DBoW3Py
cwd: /tmp/pip-req-build-lscerwnk/
Complete output (68 lines):
running install
running build
running build_ext
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /home/cds-s/anaconda3/envs/python37/bin/python3.7 (found version "3.7.7")
-- Found PythonLibs: /home/cds-s/anaconda3/envs/python37/lib/libpython3.7m.so
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.5.dev1
CMake Error at CMakeLists.txt:8 (find_package):
Could not find a configuration file for package "OpenCV" that is compatible
with requested version "4".
The following configuration files were considered but not accepted:
/usr/local/share/OpenCV/OpenCVConfig.cmake, version: 3.4.3
/usr/share/OpenCV/OpenCVConfig.cmake, version: 3.2.0
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-req-build-lscerwnk/build/temp.linux-x86_64-3.7/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-lscerwnk/setup.py", line 75, in <module>
zip_safe=False,
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/__init__.py", line 165, in setup
return distutils.core.setup(**attrs)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-req-build-lscerwnk/setup.py", line 32, in run
self.build_extension(ext)
File "/tmp/pip-req-build-lscerwnk/setup.py", line 60, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/home/cds-s/anaconda3/envs/python37/lib/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-req-build-lscerwnk', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-req-build-lscerwnk/build/lib.linux-x86_64-3.7/', '-DPYTHON_EXECUTABLE=/home/cds-s/anaconda3/envs/python37/bin/python3.7', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/cds-s/anaconda3/envs/python37/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-lscerwnk/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-lscerwnk/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6a2sdbsu/install-record.txt --single-version-externally-managed --compile --install-headers /home/cds-s/anaconda3/envs/python37/include/python3.7m/DBoW3Py Check the logs for full command output.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels