robo-bev / tapomatic Goto Github PK
View Code? Open in Web Editor NEWFreshly tapped zero waste coconuts beverage system
Home Page: https://www.cocotaps.com/
License: Other
Freshly tapped zero waste coconuts beverage system
Home Page: https://www.cocotaps.com/
License: Other
(base) Blazes-MacBook-Pro:v2020.0 blazesanders$ python3 Actuator.py
Illegal instruction: 4
Inside Sensor.py I'm trying to use code from https://github.com/sylnsfar/qrcode
Is the following correct?
try:
41
42 # Library to scan and create custom QR codes
43 from MyQR.terminal import main
General Recommendations & Version Control
Since we are targeting just Python 3.8 we will be keeping Pipfile and Pipfile.lock in version control.
https://pipenv.readthedocs.io/en/latest/basics/
https://gpiozero.readthedocs.io/en/stable/api_output.html#servo
Blazes-MacBook-Pro:v2020.0 blazesanders$ python3 Driver.py
DEBUG STATEMENTS ARE ON INSIDE Actuator.py CLASS
Actuator.py MESSAGE: WARNING: You are running code on Mac or PC (NOT a Raspberry Pi 4), thus hardware control is not possible.
DEBUG STATEMENTS ARE ON INSIDE Try/Catch ImportError in LASER.py CLASS
Try/Catch ImportError in LASER.py MESSAGE: WARNING - You are running code on Mac or PC (NOT a Raspberry Pi 4), thus hardware control is not possible.
DEBUG STATEMENTS ARE ON INSIDE Driver.py CLASS
DEBUG STATEMENTS ARE ON INSIDE Actuator.py CLASS
Traceback (most recent call last):
File "Driver.py", line 414, in
fluidActuatorList = [Actuator('R', RUM_PUMP, rumFlavorPins, "Rum Flavor Motor: Zjchao 202", Actuator.CW)]
File "/Users/blazesanders/Tapomatic/v2020.0/Actuator.py", line 143, in init
tempServoObject = Servo(pins[0]) #TODO REMOVE BECAUSE TO SIMPLE AN OBJECT
NameError: name 'Servo' is not defined
It should be 1080 x1920 but is 510 x 1908
How do I pass the Debug() object (first line of code in main function of Driver.py) to functions not in a python class without adding it to every function parameter list?
Hey @dull7295,
Why do I get the folllowing error when I try to create a LASER() object in the main function of LASER.py?
pi@raspberrypi:~/Tapomatic/v2020.0 $ python3 LASER.py
DEBUG STATEMENTS ARE ON INSIDE LASER.py CLASS
LASER.py MESSAGE: Running LASER.py main unit test
Traceback (most recent call last):
File "LASER.py", line 25, in
class LASER:
File "LASER.py", line 302, in LASER
TestLASERobject = LASER(RaspPi.BOARD7, "40004672601138", "205-0003-A", STANDARD_POWER, 10, COCOTAPS_LOGO)
NameError: name 'LASER' is not defined
blazesanders@Vincents-Mac-mini Tapomatic % pipenv install "pylint<2.0.0" --dev
Installing pylint<2.0.0…
Adding pylint to Pipfile's [dev-packages]…
✔ Installation Succeeded
Pipfile.lock (2e222e) out of date, updating to (7fbb99)…
Locking [dev-packages] dependencies…
✔ Success!
Locking [packages] dependencies…
✘ Locking Failed!
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/resolver.py", line 69, in resolve
[pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]: req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]: resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches rpi
[pipenv.exceptions.ResolutionFailure]: No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches rpi
No versions found
Was https://pypi.org/simple reachable?
[pipenv.exceptions.ResolutionFailure]: req_dir=requirements_dir
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/utils.py", line 726, in resolve_deps
[pipenv.exceptions.ResolutionFailure]: req_dir=req_dir,
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/utils.py", line 480, in actually_resolve_deps
[pipenv.exceptions.ResolutionFailure]: resolved_tree = resolver.resolve()
[pipenv.exceptions.ResolutionFailure]: File "/usr/local/lib/python3.7/site-packages/pipenv/utils.py", line 395, in resolve
[pipenv.exceptions.ResolutionFailure]: raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: pipenv.exceptions.ResolutionFailure: ERROR: ERROR: Could not find a version that matches rpi
[pipenv.exceptions.ResolutionFailure]: No versions found
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
First try clearing your dependency cache with $ pipenv lock --clear, then try the original command again.
Alternatively, you can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ERROR: Could not find a version that matches rpi
No versions found
Blazes-MacBook-Pro:v2020.0 blazesanders$ python LASER.py
File "LASER.py", line 97
Vec3b rgbColor = img.at(xPixel,yPixel)
^
SyntaxError: invalid syntax
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'
pi@raspberrypi:~/Tapomatic/v2020.0 $ python3 LASER.py
Traceback (most recent call last):
File "LASER.py", line 16, in
import cv2 as cv
File "/home/pi/.local/lib/python3.7/site-packages/cv2/init.py", line 3, in
from .cv2 import *
ImportError: libjasper.so.1: cannot open shared object file: No such file or directory
Signal allows asynchrous event to occur in parallel and pause threads as needed
from signal import pause Might work on Windows in the future https://github.com/vibora-io/vibora/issues/126
Blaze is dumb and was wondering why import timezone was not working :) https://stackoverflow.com/questions/50615133/python-cannot-import-timezone-but-can-import-datetime
Traceback (most recent call last):
File "LASER.py", line 314, in
TestLASERobject = LASER(RaspPi.BOARD7, "40004672601138", "205-0003-A", LASER.STANDARD_POWER, 10, CocoDrink.COCOTAPS_LOGO)
File "LASER.py", line 93, in init
self.brandingArt = LASER.__WarpImage(LASER.LoadImage(CocoDrink.COCOTAPS_LOGO), CocoDrink.SIZE_102MM) # Initialize to standard CocoTaps logo
File "LASER.py", line 142, in __WarpImage
img = cv2.imread(currentImage) #TODO WHAT TYPR OF OBJECT DOES imread() TAKE???
SystemError: returned NULL without setting an error
This should be a super easy fix. But my .nanorc config might be messing up tabs with spaces. Normally I just delete lines back (of ctrl-k cut) and hit return
Blazes-MacBook-Pro:v2020.0 blazesanders$ python Sensor.py
File "Sensor.py", line 304
return safe
SyntaxError: 'return' outside function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.