Page 2 of 2

Re: Programmable Flight Demonstration

Posted: Tue May 05, 2015 3:13 am
by qubitter
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?

Re: Programmable Flight Demonstration

Posted: Thu May 21, 2015 7:21 pm
by Bal18
qubitter, I had the same problem. Change the following snippet

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)
to

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)