basiclog.py HELP PLEASE

Post here to get support
Post Reply
NikaThor's
Beginner
Posts: 2
Joined: Fri Feb 27, 2015 6:47 pm

basiclog.py HELP PLEASE

Post by NikaThor's »

Dear all,

I have a Crazyflie 1.0.
I downloaded the CF File for raspberry pi (cfpi-0_3.7z) and installed it on the SD card.

I tried the examples codes and the basiclog.py file is not working.

The error when I lauch it is :

Traceback (most recent call last):
File "basiclog.py", line 43, in <module>
from cfclient.utils.logconfigreader import LogConfig
File "../lib/cfclient/utils/logconfigreader.py", line 50, in <module>
from PyQt4 import QtCore, QtGui, uic
ImportError: No module named PyQt4

I tried to re-install PyQt4 and I can not :

sudo apt-get install python-qt4

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libmysqlclient18 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help
libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-test
libqt4-xmlpatterns libqtassistantclient4 mysql-common python-sip qdbus
Suggested packages:
libqt4-declarative-folderlistmodel libqt4-declarative-gestures
libqt4-declarative-particles libqt4-declarative-shaders qt4-qmlviewer
libqt4-dev python-qt4-dbg
The following NEW packages will be installed:
libmysqlclient18 libqt4-dbus libqt4-declarative libqt4-designer libqt4-help
libqt4-script libqt4-scripttools libqt4-sql libqt4-sql-mysql libqt4-test
libqt4-xmlpatterns libqtassistantclient4 mysql-common python-qt4 python-sip
qdbus
0 upgraded, 16 newly installed, 0 to remove and 1 not upgraded.
Need to get 712 kB/12.3 MB of archives.
After this operation, 44.8 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main mysql-common all 5.5.35+dfsg-0+wheezy1
404 Not Found
Err http://mirrordirector.raspbian.org/raspbian/ wheezy/main libmysqlclient18 armhf 5.5.35+dfsg-0+wheezy1
404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/rasp ... y1_all.deb 404 Not Found
Failed to fetch http://mirrordirector.raspbian.org/rasp ... _armhf.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

With the option --fix-missing, it is not working.

I am a little bit lost...

Could someone help please?

Many thnaks in advance!
NikaThor's
Beginner
Posts: 2
Joined: Fri Feb 27, 2015 6:47 pm

Re: basiclog.py HELP PLEASE

Post by NikaThor's »

...help please...? (yes?no?)
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: basiclog.py HELP PLEASE

Post by arnaud »

Hi,

It looks like you need to type

Code: Select all

sudo apt-get update
to update the package database and to be able to install pyqt4.
Post Reply