kmsxx icon indicating copy to clipboard operation
kmsxx copied to clipboard

RGB is not defined in pykms when building with no utils

Open cshaw-velo-ai opened this issue 2 years ago • 0 comments

Hi. Building the Python bindings with libutils and utils set to false, there is a Python name error on the RGB type:

>>> import pykms
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/pykms/__init__.py", line 10, in <module>
    red = RGB(255, 0, 0)
NameError: name 'RGB' is not defined

It looks like __init__.py is using the RGB type but that is only defined if you bring in the utils?

cshaw-velo-ai avatar Dec 22 '22 16:12 cshaw-velo-ai