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

small edits for minimal run of pillbox.py #9

Open
sword-2 opened this issue Jul 22, 2024 · 0 comments
Open

small edits for minimal run of pillbox.py #9

sword-2 opened this issue Jul 22, 2024 · 0 comments

Comments

@sword-2
Copy link

sword-2 commented Jul 22, 2024

Thanks for your repo. A brief attempt to run pillbox.py found at https://github.com/eyeseast/pillbox/blob/master/pillbox.py was attempted. As a newbie to your program, a simple run helps understand it. The procedures below were done to start it and include some format changes in the code from python2 to python3. Typed this quick, hopefully no typos.

Download your file into Linux terminal, rename to pb.py
curl -o pb.py https://raw.githubusercontent.com/eyeseast/pillbox/master/pillbox.py

change line 170 for python3 format
from: except Exception, e:
to: except Exception(e):

change line 15 for python3 format
from: import urllib, urllib2
to: import urllib.request as urllib2

start python interpreter and import renamed file (pb)
python3
>>>import pb

in interpreter print the SHAPES variable then exit
>>>pb.SHAPES
>>>exit()

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

1 participant