Programmable Flight Demonstration

Firmware/software/electronics/mechanics
qubitter
Beginner
Posts: 28
Joined: Wed Mar 11, 2015 8:47 pm

Re: Programmable Flight Demonstration

Post 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?
Bal18
Beginner
Posts: 1
Joined: Thu May 21, 2015 7:13 pm

Re: Programmable Flight Demonstration

Post 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)
Post Reply