Traceback (most recent call last):
File "autonomousSequence.py", line 37, in <module>
import cflib.crtp
ImportError: No module named cflib.crtp
I am getting this error when I am trying to run this automonous python code - https://github.com/bitcraze/crazyflie-l ... equence.py
What could be the reason for it?
Error In the Code
Re: Error In the Code
Hi Envoy,
Seems like the required python library has not installed. Try running this line in a terminal first
Seems like the required python library has not installed. Try running this line in a terminal first
Code: Select all
pip3 install cflib
Re: Error In the Code
Yeah I did that but still I am facing the same issue.
I installed the library in all the folders possible but still the same issue.
What should I do?
I installed the library in all the folders possible but still the same issue.
What should I do?
Re: Error In the Code
Once you run that line, it should be working throughout your machine, but strange it is not working:
Just a few questions to better understand your situation:
1. Which operating system/VM do you use?
2. Do you use python2 or python3?
3. Have you tried to install the cflib from source? https://github.com/bitcraze/crazyflie-lib-python
Just a few questions to better understand your situation:
1. Which operating system/VM do you use?
2. Do you use python2 or python3?
3. Have you tried to install the cflib from source? https://github.com/bitcraze/crazyflie-lib-python
Re: Error In the Code
I use the Oracle Virtual Machine VirtualBox (BitcrazeVM)
Python3
Yeah I have already downloaded that
Please let me know what is the cause of this error
Python3
Yeah I have already downloaded that
Please let me know what is the cause of this error
Re: Error In the Code
I wasn't getting the error in my VM, but I just did a fresh install to check if there something wrong with the initialization. And yes, I was getting exactly the same error as you were.
The issue was solved by installing the library from source as explained in the README.md file of the crazyflie-lib-python repository:
Does this work for you now?
(I do agree that the cflib should be installed by standard on the VM, so I will make an issue ticket in github, so we will fix that soon. Thank you for reporting it )
The issue was solved by installing the library from source as explained in the README.md file of the crazyflie-lib-python repository:
Code: Select all
cd ~/projects/crazyflie-lib-python
pip3 install -e .
python3 examples/autonomousSequence.py
(I do agree that the cflib should be installed by standard on the VM, so I will make an issue ticket in github, so we will fix that soon. Thank you for reporting it )