conan-io / training

(Deprecated) Support code for conan 1.X trainings
MIT License
62 stars 38 forks source link

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

Open Shionigami opened 3 years ago

Shionigami commented 3 years ago

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 commented 3 years ago

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:

https://github.com/conan-io/training/pull/73

Shionigami commented 3 years ago

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

Thanks.

H-G-Hristov commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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