receive error messages when running the step : conda env create -f conda_env.yml
Expected behavior
A clear and concise description of what you expected to happen.
no error message
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Mac - M1 - Anaconda installed
Smartphone (please complete the following information):
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]
Additional context
Add any other context about the problem here.
Error message;
Using cached uri_template-1.3.0-py3-none-any.whl (11 kB)
Using cached arrow-1.3.0-py3-none-any.whl (66 kB)
Using cached types_python_dateutil-2.9.0.20240316-py3-none-any.whl (9.7 kB)
Building wheels for collected packages: lightgbm
Building wheel for lightgbm (setup.py): started
Building wheel for lightgbm (setup.py): finished with status 'error'
Running setup.py clean for lightgbm
Failed to build lightgbm
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [97 lines of output]
INFO:root:running bdist_wheel
/private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py:220: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
install.initialize_options(self)
INFO:root:running build
INFO:root:running build_py
INFO:root:creating build
INFO:root:creating build/lib
INFO:root:creating build/lib/lightgbm
INFO:root:copying lightgbm/callback.py -> build/lib/lightgbm
INFO:root:copying lightgbm/compat.py -> build/lib/lightgbm
INFO:root:copying lightgbm/plotting.py -> build/lib/lightgbm
INFO:root:copying lightgbm/__init__.py -> build/lib/lightgbm
INFO:root:copying lightgbm/engine.py -> build/lib/lightgbm
INFO:root:copying lightgbm/dask.py -> build/lib/lightgbm
INFO:root:copying lightgbm/basic.py -> build/lib/lightgbm
INFO:root:copying lightgbm/libpath.py -> build/lib/lightgbm
INFO:root:copying lightgbm/sklearn.py -> build/lib/lightgbm
INFO:root:running egg_info
INFO:root:writing lightgbm.egg-info/PKG-INFO
INFO:root:writing dependency_links to lightgbm.egg-info/dependency_links.txt
INFO:root:writing requirements to lightgbm.egg-info/requires.txt
INFO:root:writing top-level names to lightgbm.egg-info/top_level.txt
INFO:root:reading manifest file 'lightgbm.egg-info/SOURCES.txt'
INFO:root:reading manifest template 'MANIFEST.in'
WARNING:root:no previously-included directories found matching 'build'
WARNING:root:warning: no files found matching '*.so' under directory 'lightgbm'
WARNING:root:warning: no files found matching '*.so' under directory 'compile'
WARNING:root:warning: no files found matching '*.dll' under directory 'compile/Release'
WARNING:root:warning: no files found matching '*.dll' under directory 'compile/windows/x64/DLL'
WARNING:root:warning: no previously-included files matching '*.py[co]' found anywhere in distribution
WARNING:root:warning: no previously-included files found matching 'compile/external_libs/compute/.git'
INFO:root:adding license file 'LICENSE'
INFO:root:writing manifest file 'lightgbm.egg-info/SOURCES.txt'
INFO:root:copying lightgbm/VERSION.txt -> build/lib/lightgbm
INFO:wheel:installing to build/bdist.macosx-11.1-arm64/wheel
INFO:root:running install
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with CMake.
Traceback (most recent call last):
File "/private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py", line 95, in silent_call
subprocess.check_call(cmd, stderr=log, stdout=log)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/subprocess.py", line 368, in check_call
retcode = call(*popenargs, **kwargs)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/subprocess.py", line 349, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/subprocess.py", line 951, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/subprocess.py", line 1837, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py", line 334, in <module>
setup(name='lightgbm',
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/__init__.py", line 104, in setup
return distutils.core.setup(**attrs)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 184, in setup
return run_commands(dist)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
dist.run_commands()
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 403, in run
self.run_command("install")
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
self.distribution.run_command(command)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/dist.py", line 967, in run_command
super().run_command(command)
File "/opt/anaconda3/envs/pysnowpark/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py", line 248, in run
compile_cpp(use_mingw=self.mingw, use_gpu=self.gpu, use_cuda=self.cuda, use_mpi=self.mpi,
File "/private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py", line 198, in compile_cpp
silent_call(cmake_cmd, raise_error=True, error_msg='Please install CMake and all required dependencies first')
File "/private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py", line 99, in silent_call
raise Exception("\n".join((error_msg, LOG_NOTICE)))
Exception: Please install CMake and all required dependencies first
The full version of error log was saved into /Users/sweingartner/LightGBM_compilation.log
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lightgbm
ERROR: Could not build wheels for lightgbm, which is required to install pyproject.toml-based projects
Describe the bug A clear and concise description of what the bug is. Receive an error message when creating the env URL of where you see the bug https://quickstarts.snowflake.com/guide/getting_started_snowpark_machine_learning/index.html?index=..%2F..index#2
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen. no error message
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
Error message;
Using cached uri_template-1.3.0-py3-none-any.whl (11 kB) Using cached arrow-1.3.0-py3-none-any.whl (66 kB) Using cached types_python_dateutil-2.9.0.20240316-py3-none-any.whl (9.7 kB) Building wheels for collected packages: lightgbm Building wheel for lightgbm (setup.py): started Building wheel for lightgbm (setup.py): finished with status 'error' Running setup.py clean for lightgbm Failed to build lightgbm
Pip subprocess error: error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [97 lines of output] INFO:root:running bdist_wheel /private/var/folders/nz/sgktsvq53qj8d22q5skjr99r0000gn/T/pip-install-k7o3km19/lightgbm_2b8b44d2ba6440008f331e887ed30ecc/setup.py:220: SetuptoolsDeprecationWarning: setup.py install is deprecated. !!
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for lightgbm ERROR: Could not build wheels for lightgbm, which is required to install pyproject.toml-based projects
failed
CondaEnvException: Pip failed