Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Can not use conan to get boost library since 4th of August #12106

Closed
silviacsc opened this issue Aug 8, 2022 · 3 comments
Closed

[bug] Can not use conan to get boost library since 4th of August #12106

silviacsc opened this issue Aug 8, 2022 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@silviacsc
Copy link

Environment Details (include every applicable attribute)

  • Operating System+version: Linux-3.10.0-693.17.1.el7.x86_64
  • Compiler+version: GNU 10.3.0
  • Conan version: 1.46
  • Python version: 3.6.8

Logs

-- Downloading conan.cmake from https://github.com/conan-io/cmake-conan
-- Conan: checking conan executable
-- Conan: Found program /usr/local/bin/conan
-- Conan: Version found Conan version 1.46.0
-- Conan executing: /usr/local/bin/conan install . --remote conancenter --build missing --settings build_type=RelWithDebInfo --settings compiler=gcc --settings compiler.version=10 --settings compiler.libcxx=libstdc++ --settings compiler.cppstd=14
Auto detecting your dev setup to initialize the default profile (/home/user/.conan/profiles/default)
CC and CXX: None, /usr/local/bin/c++
No compiler was detected (one may not be needed)
Default settings
os=Linux
os_build=Linux
arch=x86_64
arch_build=x86_64
build_type=Release
*** You can change them in /home/user/.conan/profiles/default ***
*** Or override with -s compiler='other' -s ...s***
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=RelWithDebInfo
compiler=gcc
compiler.cppstd=14
compiler.libcxx=libstdc++
compiler.version=10
os=Linux
os_build=Linux
[options]
[build_requires]
[env]
boost/1.78.0: Retrieving from server 'conancenter'
boost/1.78.0: Trying with 'conancenter'...
Downloading conanmanifest.txt
Downloading conanfile.py
Downloading conan_export.tgz
boost/1.78.0: Downloaded recipe revision 0
ERROR: boost/1.78.0: Cannot load recipe.
Error loading conanfile at '/home/user/.conan/data/boost/1.78.0///export/conanfile.py': Unable to load conanfile in /home/user/.conan/data/boost/1.78.0///export/conanfile.py
File "/usr/lib64/python3.6/imp.py", line 172, in load_source
module = _load(spec)
File "", line 684, in _load
File "", line 665, in load_unlocked
File "", line 678, in exec_module
File "", line 219, in call_with_frames_removed
File "/home/user/.conan/data/boost/1.78.0/
/
/export/conanfile.py", line 2, in
from conan.tools.files import rename, rmdir, get
ImportError: cannot import name 'rmdir'
CMake Error at /build/conan.cmake:638 (message):
Conan install failed='1'

@czoido czoido self-assigned this Aug 8, 2022
@czoido
Copy link
Contributor

czoido commented Aug 8, 2022

Hi @silviacsc,

I think the problem is that the boost recipe was updated in Conan Center Index to use rmdir but the recipe did not update the required_conan_version that should be set to at least 1.48.0

You could update your conan version to 1.48 and it should work.

I'm transferring this to the Conan Center Index repo. Thanks a lot for reporting.

@czoido czoido transferred this issue from conan-io/conan Aug 8, 2022
@SpaceIm
Copy link
Contributor

SpaceIm commented Aug 8, 2022

1.47 for rmdir ;)

@uilianries uilianries added the question Further information is requested label Aug 9, 2022
@silviacsc
Copy link
Author

Thank you :D

robomics added a commit to paulsengroup/modle that referenced this issue Aug 9, 2022
So, it turns out Boost actually needs Conan v1.47 or newer, but the
recipe available on Conan Index has not been updated, and still claims
to require v1.46 or newer.

See conan-io/conan-center-index#12106
robomics added a commit to paulsengroup/modle that referenced this issue Aug 9, 2022
So, it turns out Boost actually needs Conan v1.47 or newer, but the
recipe available on Conan Index has not been updated, and still claims
to require v1.46 or newer.

See conan-io/conan-center-index#12106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants