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

Installing craftbeerpi3 print "INIT DB" Error #253

Open
greidyone opened this issue May 6, 2020 · 7 comments
Open

Installing craftbeerpi3 print "INIT DB" Error #253

greidyone opened this issue May 6, 2020 · 7 comments

Comments

@greidyone
Copy link

I am trying to install Craftbeerpi3 and I am getting the error. When running ./run.py

Traceback (most recent call last):
File "./run.py", line 3, in
from modules import socketio, app, cbpi
File "/home/pi/craftbeerpi3/modules/init.py", line 50
print "INIT DB"
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print("INIT DB")?

@techdoutdev
Copy link

@greidyone check out this guide: https://techdout.dev/2019/09/24/installing-craftbeerpi/ to make sure it's installing right. requirements.txt is currently broken.

@greidyone
Copy link
Author

@adantoft I went through the guide and can't seem to get past this print "INIT DB" Issue.
I have tried changing the line to print("INIT DB") but it just goes further and errors out.
I am very new to this stuff. I will get a new SD card and start from scratch.

Thanks for the help

@HooTsBrooklyn
Copy link

HooTsBrooklyn commented May 6, 2020

His issue is that cbpi is written for python 2.7, and he trying to use python 3.

You could try this solution of the shebang..
https://stackoverflow.com/a/11171058

@greidyone
Copy link
Author

Ok now I have got past the python issue and now I am getting another error.

I have uninstalled and installed flask_socketio many times and I still get

Would it need an older version of socketio??

Traceback (most recent call last):
File "run.py", line 2, in
from modules import socketio, app, cbpi
File "/home/pi/craftbeerpi3/modules/init.py", line 11, in
from app_config import *
File "/home/pi/craftbeerpi3/modules/app_config.py", line 7, in
from flask_socketio import SocketIO, emit
ImportError: No module named flask_socketio


(program exited with code: 1)
Press return to continue

@HooTsBrooklyn
Copy link

You're missing pip dependencies, this guide will help.

https://techdout.dev/2019/09/24/installing-craftbeerpi/

@greidyone
Copy link
Author

Thanks, I have it working now. The two things I had to do is make sure I was running Python 2.7.
This where I changed the default python to be 2.7
https://raspberry-valley.azurewebsites.net/Python-Default-Version/

Then I had to load the proper Dependencies as below. The was more that these two but they where ones that I had to search for a different name than what the module itself is called in the code.
pip install gitpython
pip install PyYAML

Thanks Everyone.

@danluckner
Copy link

Thanks @greidyone!
Your instruction worked for me.

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

No branches or pull requests

4 participants