Coder Social home page Coder Social logo

robo-bev / tapomatic Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 287.13 MB

Freshly tapped zero waste coconuts beverage system

Home Page: https://www.cocotaps.com/

License: Other

Python 17.86% HTML 2.26% Shell 3.33% CSS 0.46% Jupyter Notebook 76.07% nesC 0.02%
flask-web html-css-javascript mysql-database python3

tapomatic's People

Contributors

dull7295 avatar kronecker08 avatar opensourceironman avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

tapomatic's Issues

Illegal instruction: 4

(base) Blazes-MacBook-Pro:v2020.0 blazesanders$ python3 Actuator.py
Illegal instruction: 4

pipenv Usage

General Recommendations & Version Control

  • Generally, keep both Pipfile and Pipfile.lock in version control.
  • Do not keep Pipfile.lock in version control if multiple versions of Python are being targeted.
  • Specify your target Python version in your Pipfile’s [requires] section. Ideally, you should only have one target Python version, as this is a deployment tool. python_version should be in the format X.Y and python_full_version should be in X.Y.Z format.

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/

gpiozero.Servo() and OutputDevice(8) import or usage error???

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

Error on LASER() object creation

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

!_src.empty() in function 'cvtColor'

I get the following error when I run "python3 LASER.py" in the bash terminal on a 2010 Mac running 10.13.6

cv2.error: OpenCV(4.2.0) /Users/travis/build/skvark/opencv-python/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

Screen Shot 2020-07-05 at 8 09 55 AM

VS Code tried to install python again and cause Pipenv errors

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

RaspPi.py CONSTANT not found?

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'

LASER.py OpenCV install or import bug

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

WHAT TYPE OF OBJECT DOES imread() TAKE???

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

SyntaxError: 'return' outside function

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.