pimoroni/vl53l1x-python

Roi module error help please

Closed this issue · 3 comments

I am student and low level programming language, roi.py file run and

Traceback (most recent call last):
File "./roi.py", line 61, in
roi = scan("default")
File "./roi.py", line 56, in scan
return VL53L1X.VL53L1xUserRoi(0, 15, 15, 0)
AttributeError: 'module' object has no attribute 'VL53L1xUserRoi'

help please thank you.

Have the same issue

Traceback (most recent call last):
  File "roi.py", line 61, in <module>
    roi = scan("default")
  File "roi.py", line 56, in scan
    return VL53L1X.VL53L1xUserRoi(0, 15, 15, 0)
AttributeError: module 'VL53L1X' has no attribute 'VL53L1xUserRoi'

I suspect this is because I haven't released a new version of the VL53L1X library that includes the ROI functionality from #29 - in fact that's certainly the case: v0.0.4...master

In the interim you should be able to install the library from the cloned Git repository:

python3 setup.py build
sudo python3 setup.py install

sudo pip3 install vl53l1x --upgrade or sudo pip install vl53l1x --upgrade should now work.