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

Exercise issue with bzip2 lib. Expected version: 1.33.0, current version 1.28.1 #74

Open
Shionigami opened this issue Mar 2, 2021 · 5 comments

Comments

@Shionigami
Copy link

Shionigami commented Mar 2, 2021

Hello.

I am facing issues with the tutorial of conan. Due to updates in libs, required version of conan is 1.33.0, but, in the image I downloaded, it is still 1.28.1.

bzip2/1.0.8: Downloaded recipe revision 0
ERROR: bzip2/1.0.8: Cannot load recipe.
Error loading conanfile at '/home/conan/.conan/data/bzip2/1.0.8/_/_/export/conanfile.py': Current Conan version (1.28.1) does not satisfy the defined one (>=1.33.0).
conan@33bcf2d9910c:~/training/consumer/build$ vi ../
.gitignore CMakeLists.txt build/ conanfile.txt timer.cpp
conan@33bcf2d9910c:~/training/consumer/build$ vi ../
.gitignore CMakeLists.txt build/ conanfile.txt timer.cpp
conan@33bcf2d9910c:~/training/consumer/build$ vi ../conanfile.txt
conan@33bcf2d9910c:~/training/consumer/build$ vi ../conanfile.txt
conan@33bcf2d9910c:~/training/consumer/build$ vi ../conanfile.txt
conan@33bcf2d9910c:~/training/consumer/build$ conan install ..
Configuration:
[settings]
arch=x86_64
arch_build=x86_64
build_type=Release
compiler=gcc
compiler.libcxx=libstdc++11
compiler.version=7
os=Linux
os_build=Linux
[options]
[build_requires]
[env]

ERROR: bzip2/1.0.8: Cannot load recipe.
Error loading conanfile at '/home/conan/.conan/data/bzip2/1.0.8/_/_/export/conanfile.py': Current Conan version (1.28.1) does not satisfy the defined one (>=1.33.0).

Currently, I am running pip install conan --upgrade to make it work, but I think it would be great to update the images :)

@solvingj
Copy link
Contributor

solvingj commented Mar 3, 2021

Hi there @Shionigami , sorry for the delay. I submitted this PR but did not merge it until now. Please let me know if it works for you:

#73

@Shionigami
Copy link
Author

Hi.
It is working great :D
You can merge it!

Thanks.

@H-G-Hristov
Copy link

H-G-Hristov commented Apr 16, 2021

I have multiple issues with the exercise "consumer". I started the tutorial yesterday. Today I tried to continue with this tutorial from "hello" library. The first issue I faced Conan was trying to get boost from my company's remote. There wasn't a Conan Center remote. Isn't this environment supposed to be self contained for the exercises? I also had to disable my company's remote to reach the Conan Center remote. I don't like messing with the default system wide settings just for the tutorial.
After I added Conan Center remote I got this:

boost/1.75.0: Downloaded recipe revision 0
ERROR: bzip2/1.0.8: Cannot load recipe.
Error loading conanfile at '/Users/fsdfsd/.conan/data/bzip2/1.0.8/_/_/export/conanfile.py': Current Conan version (1.32.0) does not satisfy the defined one (>=1.33.0).

@H-G-Hristov
Copy link

I figured it out:

docker-compose up -d
docker exec -it conan-training bash

Both of these commands were necessary to be re-run to restart the exercises. The Tutorial should have made this more explicit and put it in a central place for easier reference.

@memsharded
Copy link
Member

Hi @H-G-Hristov

Thanks for the feedback. Could you please clarify this issue?
I clearly see those commands, both in the setup slide/video and in the course side notes to copy&paste:

git clone https://github.com/conan-io/training
cd training/docker_environment
docker-compose up -d
docker exec -it conan-training bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants