I have the same problem as BlitzProgrammer: the program can't find the log module. Feedback:
Traceback (most recent call last):
File "escape.py", line 34, in <module>
from cfclient.utils.logconfigreader import LogConfig
ImportError: No module named cfclient.utils.logconfigreader
How do I fix this?
Programmable Flight Demonstration
Re: Programmable Flight Demonstration
qubitter, I had the same problem. Change the following snippet
from
to
from
Code: Select all
import time, sys
from threading import Thread
from cfclient.utils.logconfigreader import LogConfig
#FIXME: Has to be launched from within the example folder
sys.path.append("../lib")
import cflib
from cflib.crazyflie import Crazyflie
import logging
logging.basicConfig(level=logging.ERROR)
Code: Select all
import time, sys
from threading import Thread
#FIXME: Has to be launched from within the example folder
sys.path.append("../lib")
import cflib
from cfclient.utils.logconfigreader import LogConfig
from cflib.crazyflie import Crazyflie
import logging
logging.basicConfig(level=logging.ERROR)