[SOLVED]Installing erros in ubuntu 12.04

Firmware/software/electronics/mechanics
Post Reply
luckpolar
Member
Posts: 30
Joined: Thu Oct 09, 2014 11:04 am

[SOLVED]Installing erros in ubuntu 12.04

Post by luckpolar »

Hello everyone,
I recently run the source code in the Linux(ubuntu 12.04),but it seems doesn't work.
First, I run the setup.sh and then run the

Code: Select all

cfclient
in terminal,
But it doesn't work.The terminal show the following messages.
INFO:cfclient.cfclient:Disabling STL printouts
Traceback (most recent call last):
File "/usr/local/bin/cfclient", line 105, in <module>
cfclient.main()
File "/usr/local/lib/python2.7/dist-packages/cfclient/cfclient.py", line 121, in main
from ui.main import MainUI
File "/usr/local/lib/python2.7/dist-packages/cfclient/ui/main.py", line 45, in <module>
from dialogs.inputconfigdialogue import InputConfigDialogue
File "/usr/local/lib/python2.7/dist-packages/cfclient/ui/dialogs/inputconfigdialogue.py", line 50, in <module>
from cfclient.utils.input import JoystickReader
File "/usr/local/lib/python2.7/dist-packages/cfclient/utils/input.py", line 53, in <module>
import cfclient.utils.inputreaders as readers
ImportError: No module named inputreaders

Then I run the cfclient in the bin folder
It shows the GUI window but with only one tag(Flight control)
The terminal also show some errors.
INFO:cfclient.cfclient:Disabling STL printouts
WARNING:cfclient.ui.widgets.plotwidget:PyQtGraph (or dependency) failed to import:
Traceback (most recent call last):
File "/home/thebestxu/桌面/crazyflie-clients-python-master/lib/cfclient/ui/widgets/plotwidget.py", line 63, in <module>
import pyqtgraph as pg
ImportError: No module named pyqtgraph

INFO:cfclient.utils.config:Dist config read from /home/thebestxu/桌面/crazyflie-clients-python-master/lib/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/thebestxu/桌面/crazyflie-clients-python-master/lib/../conf/config.json]
INFO:cfclient.utils.config:Dist config read from /home/thebestxu/桌面/crazyflie-clients-python-master/lib/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/thebestxu/桌面/crazyflie-clients-python-master/lib/../conf/config.json]
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cfclient.utils.config_manager:Parsing [PS4_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [Joystick.json]
INFO:cfclient.utils.config_manager:Parsing [PS4_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_3.json]
INFO:cfclient.utils.config_manager:Parsing [PS4_shoulder_btns_yaw.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [PS4_Mode_1.json]
INFO:cfclient.utils.config_manager:Parsing [Generic_OS_X.json]
INFO:cfclient.utils.config_manager:Parsing [Joystick.json]
INFO:cfclient.utils.config_manager:Parsing [PS4_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [xbox360_mode1.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_3.json]
INFO:cfclient.utils.config_manager:Parsing [PS4_shoulder_btns_yaw.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_2.json]
INFO:cfclient.utils.config_manager:Parsing [PS3_Mode_1.json]
INFO:cfclient.ui.tabs.FlightTab:Changed flightmode to Normal
WARNING:cfclient.ui.tabs.GpsTab:GPS tab not enabled since no Pythonbindings for Marble was found

Could anyone give me some suggestions?
Thank you.
Last edited by luckpolar on Wed Jun 10, 2015 2:56 am, edited 1 time in total.
luckpolar
Member
Posts: 30
Joined: Thu Oct 09, 2014 11:04 am

Re: Installing erros in ubuntu 12.04

Post by luckpolar »

Today,I try again and install python client(branch: 2014.01)

Code: Select all

sudo sh setup.sh
And then run the code

Code: Select all

cfclient
The terminal shows me the following messages:

CRITICAL:cfclient.cfclient:No pysdl2 installation found, exiting!

So, I download the pysdl2(PySDL2-0.9.3),and install according the direction in the index

Code: Select all

python setup.py install
But it failed,
Removing /usr/local/lib/python2.7/dist-packages/PySDL2-0.9.3.egg-info
error: /usr/local/lib/python2.7/dist-packages/PySDL2-0.9.3.egg-info: Permission denied

I try the

Code: Select all

sudo python setup.py install
And it seems successed.

Then I run in the terminal with

Code: Select all

cfclient
It shows CRITICAL:cfclient.cfclient:No pysdl2 installation found, exiting!

I try the

Code: Select all

python cfclient
It works,but the GUI just only shows one tag(Flight control) without any other tags.

I connect it to my CF2,but it shows some erros again...
WARNING:cflib.crazyflie:Exception while doing callback on port [2]

Traceback (most recent call last):
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/crazyflie/__init__.py", line 346, in run
cb[4](pk)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/crazyflie/toc.py", line 174, in _new_packet_cb
self._toc_fetch_finished()
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/crazyflie/toc.py", line 156, in _toc_fetch_finished
self.finished_callback()
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/crazyflie/__init__.py", line 149, in _param_toc_updated_cb
self.connected.call(self.link_uri)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/utils/callbacks.py", line 56, in call
cb(*args)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cfclient/utils/logconfigreader.py", line 105, in _connected
self._cf.log.add_config(d)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/crazyflie/log.py", line 428, in add_config
self.block_added_cb.call(logconf)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cflib/utils/callbacks.py", line 56, in call
cb(*args)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cfclient/ui/tabs/LogBlockTab.py", line 342, in _block_added
self._model.add_block(block)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cfclient/ui/tabs/LogBlockTab.py", line 176, in add_block
self._nodes.append(LogBlockItem(block, self))
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cfclient/ui/tabs/LogBlockTab.py", line 87, in __init__
self._log_file_writer = LogWriter(block)
File "/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/cfclient/utils/logdatawriter.py", line 57, in __init__
self._filename = os.path.join(dir, "%s.csv" % logblock.name)
File "/usr/lib/python2.7/posixpath.py", line 71, in join
path += '/' + b
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 16: ordinal not in range(128)

INFO:cflib.crazyflie.log:Have successfully started logging for id=8
INFO:cflib.crazyflie.log:Have successfully started logging for id=9
INFO:cflib.crazyflie.log:Have successfully started logging for id=8
INFO:cflib.crazyflie.log:Have successfully started logging for id=9
WARNING:cflib.crazyflie:Got link error callback [Too many packets lost] in state [2]
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/7/1M]
INFO:cflib.crazyflie:Callback->Connection lost to [radio://0/7/1M]: Too many packets lost
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/7/1M]
INFO:cfclient.utils.config:Config file saved to [/home/thebestxu/下载/crazyflie-clients-python-2014.01/lib/../conf/config.json]


WHAT SHOULD I DO NOW? :?: :?: :?: :?: :?: :?: :oops: :oops: :oops:
luckpolar
Member
Posts: 30
Joined: Thu Oct 09, 2014 11:04 am

Re: [SOLVED]Installing erros in ubuntu 12.04

Post by luckpolar »

I try the other branch of Crazyflie-Python-Client(crazyflie-clients-python-master && crazyflie-clients-python-dev-cf2)
system wide installing with

Code: Select all

sudo sh setup.sh
Then open the client with

Code: Select all

cfclient
It works well and connect with CF2.
Post Reply