Error when installing opencv in VM

Topics related to the Lighthouse positioning system, configuration and use
Post Reply
Samiam
Beginner
Posts: 6
Joined: Mon Dec 07, 2020 4:53 am

Error when installing opencv in VM

Post by Samiam »

Hello,
I'm trying to run the get geometry script but I got an error that it could not import cv2 as cv, so I assumed I had to install opencv with pip3 install opencv-python (a step I skipped because I kept getting an error when trying to install it). Now I'm back to trying to install opencv and I get the following error, could anyone please advise?

Collecting opencv-python
Using cached https://files.pythonhosted.org/packages ... .48.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-zpjmkq3x/opencv-python/setup.py", line 10, in <module>
import skbuild
ModuleNotFoundError: No module named 'skbuild'

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zpjmkq3x/opencv-python/
Samiam
Beginner
Posts: 6
Joined: Mon Dec 07, 2020 4:53 am

Re: Error when installing opencv in VM

Post by Samiam »

So I believe I've finally installed opencv successfully. But I'm back to my original issue where I get errors in running get_bs_geometry.py. The error I get is:
Traceback (most recent call last):
File "tools/lighthouse/get_bs_geometry.py", line 51, in <module>
from cflib.crazyflie.mem import LighthouseMemHelper
ImportError: cannot import name 'LighthouseMemHelper'

I appreciate any help given and thank you in advance.
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Error when installing opencv in VM

Post by kristoffer »

We are currently working on getting lighthouse support into the client and the crazyflie firmware, the python lib and the client are under heavy development. We try to keep them all functional but it is possible that there are short periods of time when something is broken.

There are lots of dependencies between the repos and my guess is that you need to git pull the python lib, genrally speaking pulling all the repos is a good first step.

If you want a more stable code base, I suggest you switch to the latest official release tag of the repos.
Post Reply