pantor / ruckig

Motion Generation for Robots and Machines. Real-time. Jerk-constrained. Time-optimal.
https://ruckig.com
MIT License
730 stars 165 forks source link

Pip install Ruckig fails on Windows 32bit, Py3.6 #181

Closed Blaise-wig closed 9 months ago

Blaise-wig commented 9 months ago

I get this error when pip installing ruckig:

(DroneProject) C:\Users\Victus\anaconda3\envs\DroneProject>pip install ruckig
Collecting ruckig
  Using cached ruckig-0.9.2.tar.gz (289 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ruckig
  Building wheel for ruckig (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\Victus\anaconda3\envs\DroneProject\python.exe' 'C:\Users\Victus\anaconda3\envs\DroneProject\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\Victus\AppData\Local\Temp\tmp6ygjzuis'
       cwd: C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490
  Complete output (95 lines):
  running bdist_wheel
  running build
  running build_ext
  -- Building for: Visual Studio 14 2015
  -- The CXX compiler identification is MSVC 19.0.24215.1
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found Python: C:/Users/Victus/anaconda3/envs/DroneProject/python.exe (found suitable version "3.6.13", minimum required is "3.6") found components: Interpreter
  -- Performing Test HAS_MSVC_GL_LTCG
  -- Performing Test HAS_MSVC_GL_LTCG - Success
  -- Found pybind11: C:/Users/Victus/anaconda3/envs/DroneProject/Lib/site-packages/pybind11/include (found version "2.11.1")
  -- Configuring done (5.8s)
  -- Generating done (0.0s)
  CMake Warning:
    Manually-specified variables were not used by the project:

      EXAMPLE_VERSION_INFO
      PYTHON_EXECUTABLE

  -- Build files have been written to: C:/Users/Victus/AppData/Local/Temp/pip-install-mgh2_2at/ruckig_8d43405090b24a4ab7d6ca3e808e7490/build/temp.win32-3.6/Release
  Microsoft (R) Build Engine version 14.0.25420.1
  Copyright (C) Microsoft Corporation. All rights reserved.

  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(400,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ZERO_CHECK.vcxproj]
    Checking Build System
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(400,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    Building Custom Rule C:/Users/Victus/AppData/Local/Temp/pip-install-mgh2_2at/ruckig_8d43405090b24a4ab7d6ca3e808e7490/CMakeLists.txt
    brake.cpp
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(11824): warning C4346: 'std::is_same<IterImpl,nlohmann::detail::iter_impl<std::conditional<std::is_const<_Ty>::value,std::remove_const<_Ty>::type,const BasicJsonType>::type>>::value': dependent name is not a type [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(11824): note: prefix with 'typename' to indicate a type
    C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(12104): note: see reference to class template instantiation 'nlohmann::detail::iter_impl<BasicJsonType>' being compiled
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(11824): error C2061: syntax error: identifier '?$enable_if_t@$Q?AVstd:?$is_same@$RCAAB@V?$iter_impl@$RBAAB@@detail@nlohmann@@:value:((((*(std:?$is_same@$RCAAB@V?$iter_impl@$RBAAB@@detail@nlohmann@@:value:))||(*(std:?$is_same@$RCAAB@V?$iter_impl@$std:?$conditional@$Q?AVstd:?$is_const@$RBAAB@:value:(std:?$is_const@$RBAAB@:value:)$std:?$remove_const@$RBAAB@:type:$$CBRBAAB@:type:@detail@nlohmann@@:value:))))$$T' [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(11860): warning C4346: 'std::is_same<IterImpl,nlohmann::detail::iter_impl<std::conditional<std::is_const<_Ty>::value,std::remove_const<_Ty>::type,const BasicJsonType>::type>>::value': dependent name is not a type [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(11860): note: prefix with 'typename' to indicate a type
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(11860): error C2061: syntax error: identifier '?$enable_if_t@$Q?AVstd:?$is_same@$RCAAB@V?$iter_impl@$RBAAB@@detail@nlohmann@@:value:((((*(std:?$is_same@$RCAAB@V?$iter_impl@$RBAAB@@detail@nlohmann@@:value:))||(*(std:?$is_same@$RCAAB@V?$iter_impl@$std:?$conditional@$Q?AVstd:?$is_const@$RBAAB@:value:(std:?$is_const@$RBAAB@:value:)$std:?$remove_const@$RBAAB@:type:$$CBRBAAB@:type:@detail@nlohmann@@:value:))))$$T' [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(16737): warning C4346: 'std::is_same<NumberType,BasicJsonType::binary_t::value_type>::value': dependent name is not a type [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(16737): note: prefix with 'typename' to indicate a type
    C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(17009): note: see reference to class template instantiation 'nlohmann::detail::serializer<BasicJsonType>' being compiled
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(16737): error C2061: syntax error: identifier '?$enable_if_t@$Q?AVstd:?$is_integral@$RCAAB@:value:((((*(std:?$is_integral@$RCAAB@:value:))||(*(std:?$is_same@$RCAAB@$BasicJsonType@BAAB@:number_unsigned_t::value:)))||(*(std:?$is_same@$RCAAB@$BasicJsonType@BAAB@:number_integer_t::value:)))||(*(std:?$is_same@$RCAAB@$BasicJsonType@BAAB@:binary_t:value_type::value:)))H' [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\third_party\json/json.hpp(17251): fatal error C1083: Cannot open include file: 'string_view': No such file or directory [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    position-step1.cpp
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\include\ruckig/ruckig.hpp(10): fatal error C1083: Cannot open include file: 'optional': No such file or directory [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    position-step2.cpp
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\include\ruckig/block.hpp(6): fatal error C1083: Cannot open include file: 'optional': No such file or directory [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    velocity-step1.cpp
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\include\ruckig/block.hpp(6): fatal error C1083: Cannot open include file: 'optional': No such file or directory [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    velocity-step2.cpp
  C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\include\ruckig/block.hpp(6): fatal error C1083: Cannot open include file: 'optional': No such file or directory [C:\Users\Victus\AppData\Local\Temp\pip-install-mgh2_2at\ruckig_8d43405090b24a4ab7d6ca3e808e7490\build\temp.win32-3.6\Release\ruckig.vcxproj]
    Generating Code...
  Traceback (most recent call last):
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
      main()
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 262, in build_wheel
      metadata_directory)
    File "C:\Users\Victus\AppData\Local\Temp\pip-build-env-i621sio8\overlay\Lib\site-packages\setuptools\build_meta.py", line 231, in build_wheel
      wheel_directory, config_settings)
    File "C:\Users\Victus\AppData\Local\Temp\pip-build-env-i621sio8\overlay\Lib\site-packages\setuptools\build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "C:\Users\Victus\AppData\Local\Temp\pip-build-env-i621sio8\overlay\Lib\site-packages\setuptools\build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 79, in <module>
      zip_safe=False,
    File "C:\Users\Victus\AppData\Local\Temp\pip-build-env-i621sio8\overlay\Lib\site-packages\setuptools\__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\Victus\AppData\Local\Temp\pip-build-env-i621sio8\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "setup.py", line 22, in run
      self.build_extension(ext)
    File "setup.py", line 54, in build_extension
      subprocess.check_call(['cmake', '--build', '.'] + build_args, cwd=self.build_temp)
    File "C:\Users\Victus\anaconda3\envs\DroneProject\lib\subprocess.py", line 311, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for ruckig
Failed to build ruckig
ERROR: Could not build wheels for ruckig, which is required to install pyproject.toml-based projects

Can anyone help?

pantor commented 9 months ago

Ruckig is using several features of C++17 (e.g. optional or enable_if that show up in your error log) as stated in the Readme here. Please update your Visual Studio to a version that supports C++17, or contact us for Ruckig versions that are compatible with C++11.

Blaise-wig commented 9 months ago

Thank you for your response. I am interested in the version of ruckig compatible with c++11.

Blaise-wig commented 9 months ago

How can I get it?

pantor commented 9 months ago

Please send us a short message at info@ruckig.com.

Blaise-wig commented 9 months ago

I sent the message. Thank you so much.