Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import and run issues #7

Open
jagauthier opened this issue Aug 10, 2021 · 4 comments
Open

Import and run issues #7

jagauthier opened this issue Aug 10, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@jagauthier
Copy link

jagauthier commented Aug 10, 2021

After installing the package, the examples all start with:
import qwiic
That doesn't seem to work.
ModuleNotFoundError: No module named 'qwiic'

The main github page shows:
import qwiic_vl53l1x

And that code errors:
AttributeError: 'QwiicVL53L1X' object has no attribute 'isConnected'

@santaimpersonator santaimpersonator added the bug Something isn't working label Sep 1, 2021
@santaimpersonator
Copy link
Contributor

When I get a chance, I'll fix this. Note to self:

  • Add isConnected method
  • Fix examples to use qwiic_vl53l1x package directly

@jagauthier An easy workaround for running the examples is to install the overall Qwiic_Py package:

sudo pip3 install sparkfun-qwiic

This will also install the Qwiic_I2C_py package that this package is dependent on.

@santaimpersonator santaimpersonator self-assigned this Sep 1, 2021
@under-score
Copy link

did
sudo pip3 install sparkfun-qwiic
but the error remains...

@daeyong34
Copy link

hello,
I also installed 'sudo pip3 install sparkfun-qwiic'
but Qwiic-VL53L1X has no attribute 'isConnected'

What should we do?
Please reply this question.

@santaimpersonator
Copy link
Contributor

The work around was to get import qwiic to run.

Unfortunately, I haven't had time to resolve this issue yet. The isConnected() method is not available, users can just comment out this section of the example code shown in the README.md file:

if mySensor.isConnected() == False:
	print("The Qwiic VL53L1X device isn't connected to the system. Please check your connection", \
		file=sys.stderr)
	return

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants