Page 2 of 2

Re: Running multiranger_pointcloud.py example

Posted: Mon May 18, 2020 11:59 am
by kristoffer
It is probably related to qt5 or vispy? Vispy is using QT but I'm not sure what the problem is.
Have you tried to upgrade or reinstall vispy and qt5.

You can do it from pip, and since it seems as your ide is using python 3, you should probably use pip3.

on the lines of

Code: Select all

pip3 install vispy
pip3 install PyQt5

Re: Running multiranger_pointcloud.py example

Posted: Tue May 19, 2020 7:24 am
by boped
Yes I think Qt5 is the Problem. Thanks for replying.
But if i try to install it, this error appears:
pi@raspberry:~ $ pip3 install PyQt5
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting PyQt5
Using cached https://files.pythonhosted.org/packages ... 4.2.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-8hyb0_sw/PyQt5/setup.py'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-8hyb0_sw/PyQt5/

Re: Running multiranger_pointcloud.py example

Posted: Tue May 19, 2020 7:54 am
by kristoffer
I'm afraid I can't offer much help, but maybe this is useful https://stackoverflow.com/questions/597 ... ect=1&lq=1

Re: Running multiranger_pointcloud.py example

Posted: Fri Jun 25, 2021 5:02 am
by paoloC
Hi I'm running into a similar error as mentioned before but all my modules seem to be installed correctly:
I am running on python 3.9.3, vispy 0.6.6, and PyQt5 5.15.4. Do you know if they have made changes recently to the modules? Searching through vispy's documentation I haven't been able to find the setParent() function that seems to be causing the problem. However, commenting that line out and the following line that sets the central widget results in a blank graph.

Re: Running multiranger_pointcloud.py example

Posted: Tue Jun 29, 2021 5:14 am
by jonasdn
It might be similiar to this issue? https://github.com/bitcraze/crazyflie-c ... issues/472 that is at least marked as solved.

Does the same solution work for you?

Re: Running multiranger_pointcloud.py example

Posted: Mon Jul 12, 2021 4:02 pm
by DM7299
I'm also experiencing this problem, and the issue on the github didn't seem to be relevant. Uninstalling and reinstalling pyqt5 at different versions had no effect on the code's ability to run (aside from making it impossible when the code was not installed). When it is installed, removing the two lines mentioned previously allows the code to run (but without the plotter functioning, though the drone still flies) and with them present I receive the same 'CanvasBackend' object has no attribute 'setParent' error.

Re: Running multiranger_pointcloud.py example

Posted: Thu Jul 15, 2021 1:53 pm
by arnaud
This error looks like one we just 'solved with documentation' in the client: https://github.com/bitcraze/crazyflie-c ... n/pull/523

The solution for the client was to install the package libxcb-xinemara0 with
<code>
sudo apt install libxcb-xinerama0
</code>

Maybe this works in that case too?