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

Cannot run script #4

Open
rpbx opened this issue Mar 29, 2020 · 2 comments
Open

Cannot run script #4

rpbx opened this issue Mar 29, 2020 · 2 comments

Comments

@rpbx
Copy link

rpbx commented Mar 29, 2020

Hello,

I am getting an error.

087692009900
Looking up the product_id
404
Traceback (most recent call last):
File "./barcode_reader.py", line 309, in
decrease_inventory(upc)
File "./barcode_reader.py", line 69, in decrease_inventory
product_id_lookup(upc)
File "./barcode_reader.py", line 114, in product_id_lookup
j = r.json()
File "/usr/local/lib/python2.7/dist-packages/requests/models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 367, in decode
raise ValueError(errmsg("Extra data", s, end, len(s)))
ValueError: Extra data: line 1 column 4 - line 1 column 15 (char 3 - 14)
Exception TypeError: TypeError('super() takes at least 1 argument (0 given)',) i n <bound method InputDevice.del of InputDevice('/dev/input/event0')> ignored

I am running it on a raspberrypi 4.

Also, what value am I supposed to enter by "UPC_DATABASE_API=?

Thank you

@TheFuzz4
Copy link
Collaborator

For the UPC database Api you'll have to register an account there and request it. Not sure if the pi model is an issue or not but all I have access to is just 3's at the moment.

I'm not entirely sure whats causing this error to throw but I"ll take a look here and see what I can figure out.

@rpbx
Copy link
Author

rpbx commented Mar 30, 2020

Can the problem be that I am using SSL?
Is there a way for me to get it to work over SSL?
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants