Error: module config version 2.0 not supported #29
-
When I run "tb build" or "tb make", error occured as follow: difan@difan-ThinkStation-P920: How to solve this problem?I can't build or make using toolbelt. |
Beta Was this translation helpful? Give feedback.
Replies: 19 comments 2 replies
-
Your toolbelt is probably a bit old, try to run tb update |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply! I have tried to run tb update, and got the result as follow: Pulling bitcraze/toolbelt:latest But when I run "tb build" or "tb make", still report "Error: module config version 2.0 not supported". |
Beta Was this translation helpful? Give feedback.
-
What do you get if you check the version? tb version |
Beta Was this translation helpful? Give feedback.
-
The version is: |
Beta Was this translation helpful? Give feedback.
-
Yeah, that is pretty old. Not sure why it does not pull in the latest version, but try
and check what version you get after that. The expected version is
|
Beta Was this translation helpful? Give feedback.
-
I have run 'docker pull bitcraze/toolbelt' |
Beta Was this translation helpful? Give feedback.
-
This is just standard docker functionality, nothing magic. I don't know why it does not pull in the latest version. Try to remove your current image and pull it again
|
Beta Was this translation helpful? Give feedback.
-
I have removed my current image and pulled it again. |
Beta Was this translation helpful? Give feedback.
-
Is it possible that the latest tag is not linked to bitcraze/toolbelt - 2022-04-14T06:28:20.72864377Z? |
Beta Was this translation helpful? Give feedback.
-
You can find the images here: https://hub.docker.com/r/bitcraze/toolbelt/tags I see two possible reasons to why it does not work:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your suggestion!
|
Beta Was this translation helpful? Give feedback.
-
How can I use the version 'bitcraze/toolbelt:47'? I see it is the latest version, and I can successfully pull it. But I can't use it. |
Beta Was this translation helpful? Give feedback.
-
You can always change your alias to use There must be something in your docker environment that causes this issue, I just don't know what it might be. You could check for all images of the toolbelt by running |
Beta Was this translation helpful? Give feedback.
-
Thanks for your patience and suggestion. Can you tell me how to change my alias to use v47. I want to use the toolbelt first. |
Beta Was this translation helpful? Give feedback.
-
Just edit your alias (probably in ~/.bashrc or ~/.profile) and change the |
Beta Was this translation helpful? Give feedback.
-
I have successfully pulled the 'bitcraze/toolbelt:47' and edit my alias as follow: I have restarted my terminal and source the ~/.bashrc. When I run 'tb', It report as follow: I have checked the images I have pulled in the /var/lib/docker. My docker images are as follow: |
Beta Was this translation helpful? Give feedback.
-
Thank you so much for your patience and suggestion. But I still cannot use v47... |
Beta Was this translation helpful? Give feedback.
-
This error is actually not too bad :-) You get it when the toolbelt is running but it could not understand where it is, which means that it appears to work. The toolbelt is designed to be executed in the root of a bitcraze repository tree, for instance crazyflie-firmware (it is looking for a file named |
Beta Was this translation helpful? Give feedback.
-
@Michael0126 could you let us know if you managed to fix your issue and if @krichardsson helped your problem? We converted your issue into a discussion btw |
Beta Was this translation helpful? Give feedback.
This error is actually not too bad :-) You get it when the toolbelt is running but it could not understand where it is, which means that it appears to work.
The toolbelt is designed to be executed in the root of a bitcraze repository tree, for instance crazyflie-firmware (it is looking for a file named
module.json
). Justcd
to the root of a repository and executetb
which should give you a list of commands that you can execute in this context.