Windows 11 pro 환경에서 virtual box 설치 후 아래와 같은 오류가 발생했을 때, 조금 삽질하다가 해결방법을 찾았다
D:\k8s>vagrant up
Bringing machine 'master-node' up with 'virtualbox' provider...
==> master-node: Checking if box 'rockylinux/8' version '8.8-20230518.0' is up to date...
==> master-node: Clearing any previously set forwarded ports...
==> master-node: Clearing any previously set network interfaces...
==> master-node: Preparing network interfaces based on configuration...
master-node: Adapter 1: nat
master-node: Adapter 2: hostonly
==> master-node: Forwarding ports...
master-node: 22 (guest) => 2222 (host) (adapter 1)
==> master-node: Running 'pre-boot' VM customizations...
==> master-node: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "7fbdc99a-dae7-432f-88dd-e52069f688c6", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'k8s_master' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\minipc\VirtualBox VMs\k8s_master\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
초기에 설치 시도했던 것은 아래와 같다. - Virtualbox 7.0.8-156879.exe - Vagrant 2.3.4 windows_amd64.msi
해결방법은 아래 oracle page에서 7.0.22 버전(현재 최신버전)을 설치하고 나서 vagrant up 명령어를 실행하니 바로 에러 없이 실행되었다.
# 파일 규격 버전
version: "3"
# 이 항목 밑에 실행하려는 컨테이너 들을 정의
services:
# 서비스 명
mongodb:
# 사용할 이미지
image: mongo
# 컨테이너 실행 시 재시작
restart: always
# 컨테이너 이름 설정
container_name: mymongo
# 접근 포트 설정 (컨테이너 외부:컨테이너 내부)
ports:
- "27017:27017"
# -e 옵션
environment:
# MongoDB 계정 및 패스워드 설정 옵션
MONGO_INITDB_ROOT_USERNAME: yourid
MONGO_INITDB_ROOT_PASSWORD: yourpassword
volumes:
# -v 옵션 (다렉토리 마운트 설정)
- ./mongodb/data/db:/data/db
도커를 통해 mongoDB에 접속하기 docker exec -it [컨테이너이름] /bin/bash
jovyan@aaa:~$ pip install perspective-python
Collecting perspective-python
Downloading perspective-python-2.0.1.tar.gz (7.0 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 10.8 MB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-uj6b3_f8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/tmp/pip-build-env-uj6b3_f8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-uj6b3_f8/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 45, in <module>
Exception: Requires cmake
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
- 오류내용 : Boost 라이브러리가 필요하다는 내용
CMake Error at /opt/homebrew/Cellar/cmake/3.26.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Boost (missing: Boost_INCLUDE_DIR)
Call Stack (most recent call first):
/opt/homebrew/Cellar/cmake/3.26.3/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/opt/homebrew/Cellar/cmake/3.26.3/share/cmake/Modules/FindBoost.cmake:2377 (find_package_handle_standard_args)
CMakeLists.txt:276 (find_package)
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/Users/shinaelee/Compose/myvenv/myenv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Users/shinaelee/Compose/myvenv/myenv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/shinaelee/Compose/myvenv/myenv/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 249, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/jupyter_packaging/build_api.py", line 23, in build_wheel
val = orig_build_wheel(
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 416, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
exec(code, locals())
File "<string>", line 291, in <module>
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup
return distutils.core.setup(**attrs)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 343, in run
self.run_command("build")
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 1244, in run_command
super().run_command(command)
File "/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-build-env-epqyex5v/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 112, in run
File "<string>", line 127, in run_cmake
File "<string>", line 211, in build_extension_cmake
File "/Users/shinaelee/anaconda3/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/homebrew/bin/cmake', '/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-install-671q9r0d/perspective-python_6132b12cc2814811b529c5e382b1b57b/dist', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-install-671q9r0d/perspective-python_6132b12cc2814811b529c5e382b1b57b/build/lib.macosx-10.9-x86_64-cpython-310/perspective/table', '-DCMAKE_BUILD_TYPE=Release', '-DPSP_CPP_BUILD=1', '-DPSP_WASM_BUILD=0', '-DPSP_PYTHON_BUILD=1', '-DPSP_PYTHON_VERSION=3.10', '-DPython_ADDITIONAL_VERSIONS=3.10', '-DPython_FIND_VERSION=3.10', '-DPython_EXECUTABLE=/Users/shinaelee/Compose/myvenv/myenv/bin/python', '-DPYTHON_LIBRARY=/Users/shinaelee/anaconda3/lib', '-DPYTHON_INCLUDE_DIR=/Users/shinaelee/anaconda3/include/python3.10', '-DPython_ROOT_DIR=/Users/shinaelee/Compose/myvenv/myenv', '-DPython_ROOT=/Users/shinaelee/Compose/myvenv/myenv', '-DPSP_CMAKE_MODULE_PATH=/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-install-671q9r0d/perspective-python_6132b12cc2814811b529c5e382b1b57b/dist/cmake', '-DPSP_CPP_SRC=/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-install-671q9r0d/perspective-python_6132b12cc2814811b529c5e382b1b57b/dist', '-DPSP_PYTHON_SRC=/private/var/folders/jp/j992by256v53v2qry6q5zd080000gn/T/pip-install-671q9r0d/perspective-python_6132b12cc2814811b529c5e382b1b57b/dist/../perspective', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for perspective-python
Failed to build perspective-python
ERROR: Could not build wheels for perspective-python, which is required to install pyproject.toml-based projects