Skip to content

small edits for minimal run of pillbox.py #9

@sword-2

Description

@sword-2

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions