MICrONS Conda environment CouldNotBuildWheels dracopy

Hello everyone,

I am currently trying to create the environment using Conda based on this Allen Institute Tutorial: https://www.youtube.com/watch?v=vuOR42JqA9s . Unfortunately, I´ve run into an issue that I am unable to fix.

While creating the environment, there is an error with dracopy (excerpt from the code at the end of the message). It seems that it has to do with Python 3.7.0 as in the environment.yml sheet. There are no prebuild wheels for dracopy available on Windows for such an old Python version.

I´ve tried the following:

  1. deleting, reinstalling everything
  2. Linux engine Ubuntu
  3. adapting the Python version in the environment.yml and the in the following: adapting the versions of the other programs as well
  4. manually installing dracopy using pip install dracopy
  5. I´ve reached out to other platforms but the suggestions above were their only ideas and none of them ave woked so far

I am not sure wether this is the right platform for these kind of problems and I couldn´t find a topic with this issue on here but it would be awesome if anyone here is willing to help.

Thank you in advance and all the best,

Johannes

Here is the error message:

  -- Generating done (0.4s)       -- Build files have been written to: C:/Users/johan/AppData/Local/Temp/pip-install-\_ixd526g/dracopy_7676215d79914b94b6f60e3ca8e03c6b/\_skbuild/win-amd64-3.7/cmake-build       \[1/140\] Building CXX object CMakeFiles\\draco_attributes.dir\\src\\draco\\attributes\\geometry_attribute.cc.obj       \[2/140\] Building CXX object CMakeFiles\\draco_attributes.dir\\src\\draco\\attributes\\attribute_transform.cc.obj       \[3/140\] Building CXX object CMakeFiles\\draco_attributes.dir\\src\\draco\\attributes\\attribute_octahedron_transform.cc.obj       \[4/140\] Building CXX object CMakeFiles\\draco_attributes.dir\\src\\draco\\attributes\\attribute_quantization_transform.cc.obj       \[5/140\] Building CXX object CMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\sequential_attribute_decoder.cc.obj       \[6/140\] Building CXX object CMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\attributes_decoder.cc.obj       \[7/140\] Building CXX object CMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\sequential_quantization_attribute_decoder.cc.obj              FAILED: CMakeFiles/draco_compression_attributes_dec.dir/src/draco/compression/attributes/sequential_quantization_attribute_decoder.cc.obj       C:\\PROGRA\~2\\MICROS\~2\\2022\\BUILDT\~1\\VC\\Tools\\MSVC\\1444\~1.352\\bin\\Hostx86\\x64\\cl.exe  /nologo /TP -DDRACO_CMAKE=1 -DDRACO_FLAGS_SRCDIR=\\"C:/Users/johan/AppData/Local/Temp/pip-install-\_ixd526g/dracopy_7676215d79914b94b6f60e3ca8e03c6b/draco\\" -DDRACO_FLAGS_TMPDIR=\\"/tmp\\" -DNOMINMAX=1 -D_CRT_SECURE_NO_DEPRECATE=1 -IC:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b\\draco -IC:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b\\draco\\src -IC:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b\\\_skbuild\\win-amd64-3.7\\cmake-build /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MD /O2 /Ob2 /DNDEBUG /showIncludes /FoCMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\sequential_quantization_attribute_decoder.cc.obj /FdCMakeFiles\\draco_compression_attributes_dec.dir\\ /FS -c C:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b\\draco\\src\\draco\\compression\\attributes\\sequential_quantization_attribute_decoder.cc          C:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b\\draco\\src\\draco\\compression\\attributes\\sequential_quantization_attribute_decoder.cc : fatal error C1083: Datei (vom Compiler generiert) kann nicht ge”ffnet werden: "": Invalid argument       \[8/140\] Building CXX object CMakeFiles\\draco_compression_attributes_enc.dir\\src\\draco\\compression\\attributes\\attributes_encoder.cc.obj       \[9/140\] Building CXX object CMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\sequential_attribute_decoders_controller.cc.obj               \[10/140\] Building CXX object CMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\kd_tree_attributes_decoder.cc.obj       \[11/140\] Building CXX object CMakeFiles\\draco_attributes.dir\\src\\draco\\attributes\\point_attribute.cc.obj       \[12/140\] Building CXX object CMakeFiles\\draco_compression_attributes_dec.dir\\src\\draco\\compression\\attributes\\sequential_normal_attribute_decoder.cc.obj               \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*               Requirements should be satisfied by a PEP 517 installer.               If you are using pip, you can try \`pip install --use-pep517\`.               \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*        !!         dist.fetch_build_eggs(setup_requires)       Traceback (most recent call last):         File "C:\\Users\\johan\\AppData\\Local\\Temp\\pip-build-env-rjahz343\\overlay\\Lib\\site-packages\\skbuild\\setuptools_wrap.py", line 668, in setup           cmkr.make(make_args, install_target=cmake_install_target, env=env)         File "C:\\Users\\johan\\AppData\\Local\\Temp\\pip-build-env-rjahz343\\overlay\\Lib\\site-packages\\skbuild\\cmaker.py", line 696, in make           self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)         File "C:\\Users\\johan\\AppData\\Local\\Temp\\pip-build-env-rjahz343\\overlay\\Lib\\site-packages\\skbuild\\cmaker.py", line 741, in make_impl           raise SKBuildError(msg)        An error occurred while building with CMake.         Command:           'C:\\Users\\johan\\AppData\\Local\\Temp\\pip-build-env-rjahz343\\normal\\Lib\\site-packages\\cmake\\data\\bin\\cmake' --build . --target install --config Release --         Install target:           install         Source directory:           C:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b         Working directory:           C:\\Users\\johan\\AppData\\Local\\Temp\\pip-install-\_ixd526g\\dracopy_7676215d79914b94b6f60e3ca8e03c6b\\\_skbuild\\win-amd64-3.7\\cmake-build       Please check the install target is valid and see CMake's output for more information.        \[end of output\]    note: This error originates from a subprocess, and is likely not a problem with pip.   ERROR: Failed building wheel for dracopy Failed to build dracopy ERROR: Could not build wheels for dracopy, which is required to install pyproject.toml-based projects

Hi Johannes,

Thanks for your interest!

That video is rather old and we would not recommend the versions suggested there any longer. In particular, python 3.7 is no longer a supported version for all of the tooling. Dracopy should have wheels for windows for python 3.9-3.12, based on its pypi page. I would strongly recommend updating to python 3.12 and following the tutorials written here to set up your python environment and get acquainted with the current tooling: CAVEclient Setup – MICrONs Tutorial

Regards,

Casey