Skip to content

Commit d380d65

Browse files
author
Gavin Lüdemann
committed
Fix example script imports
1 parent 8755a98 commit d380d65

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

examples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@ This is a loose collection of example scripts for pyghthouse.
44

55
Run any script by entering `python <filename>`.
66

7+
Some scripts have additional dependencies; you can install them by running `pip install -r requirements.txt` from the
8+
repository root directory.
9+
710
If you set up config.py with your username and API token, you won't have to enter them every time you run a script.
811
Be aware that API tokens are only valid for a few days.

examples/huecircle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pyghthouse import Pyghthouse
2-
from pyghthouse.utils._color import from_hsv
2+
from pyghthouse.utils import from_hsv
33
from config import UNAME, TOKEN
44
import numpy as np
55

examples/rainbow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pyghthouse import Pyghthouse
2-
from pyghthouse.utils._color import from_hsv
2+
from pyghthouse.utils import from_hsv
33
from config import UNAME, TOKEN
44

55

examples/twopoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
from PIL import Image, ImageDraw
55

6-
from pyghthouse.utils._color import from_hsv
6+
from pyghthouse.utils import from_hsv
77
from pyghthouse import Pyghthouse
88

99
from config import UNAME, TOKEN

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
setuptools~=58.0.4
22
numpy~=1.21.2
33
websocket-client~=1.2.1
4-
msgpack~=1.0.2
4+
msgpack~=1.0.2
5+
Pillow~=8.4.0
6+
pyghthouse>=0.2.0

0 commit comments

Comments
 (0)