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

RaspPi.py CONSTANT not found? #21

Closed
OpenSourceIronman opened this issue Jul 21, 2020 · 0 comments
Closed

RaspPi.py CONSTANT not found? #21

OpenSourceIronman opened this issue Jul 21, 2020 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@OpenSourceIronman
Copy link
Contributor

OpenSourceIronman commented Jul 21, 2020

Why cant my code in LASER.py access the BOARD7 CONSTANT in RaspPi?

I fixed class name from "RasPi" to "RaspPi" recently...
I had circular imports that i removed in an attempt to fix error (e.i. RaspPi.py imported Actuator and Actuator.py imported RaspPi)

python3 LASER.py
Traceback (most recent call last):
File "LASER.py", line 347, in
TestLASERobject = LASER(RaspPi.BOARD7, "40004672601138", "205-0003-A", LASER.STANDARD_POWER, 10, CocoDrink.COCOTAPS_LOGO)
AttributeError: type object 'RaspPi' has no attribute 'BOARD7'

@OpenSourceIronman OpenSourceIronman added the help wanted Extra attention is needed label Jul 21, 2020
OpenSourceIronman pushed a commit that referenced this issue Jul 21, 2020
OpenSourceIronman pushed a commit that referenced this issue Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants