Skip to content

[bug] Cannot install boost in Windows 10. ImportError: cannot import name 'is_apple_os' from 'conan.tools.apple' #12076

@sabudilovskiy

Description

@sabudilovskiy

Environment Details (include every applicable attribute)

  • Windows 10+21H2:
  • MSVC+16.0:
  • Conan: 1.51.3
  • Python version: 3.10.7

Steps to reproduce (Include if Applicable)

Try to install boost

Logs (Executed commands with output) (Include/Attach if Applicable)

ERROR: boost/1.71.0: Cannot load recipe.
Error loading conanfile at 'C:\Users\MRV.conan\data\boost\1.71.0__\export\conanfile.py': Unable to load conanfile in C:\Users\MRV.conan\data\boost\1.71.0__\export\conanfile.py
File "C:\Users\MRV\AppData\Local\Programs\Python\Python310\lib\imp.py", line 172, in load_source
module = _load(spec)
File "", line 719, in _load
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\Users\MRV.conan\data\boost\1.71.0__\export\conanfile.py", line 1, in
from conan.tools.apple import is_apple_os
ImportError: cannot import name 'is_apple_os' from 'conan.tools.apple' (C:\Users\MRV\AppData\Local\Programs\Python\Python310\lib\site-packages\conan\tools\apple_init
.py)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions