Page 1 of 1

Error when installing opencv in VM

Posted: Sun Feb 21, 2021 6:48 pm
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/

Re: Error when installing opencv in VM

Posted: Sun Feb 21, 2021 8:03 pm
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.

Re: Error when installing opencv in VM

Posted: Mon Feb 22, 2021 12:57 pm
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.