python -m triangler -v apples.jpg
[2024-03-13 12:50:15][INFO] in main(): Options:Namespace(images=['apples.jpg'], output=None, sample='THRESHOLD', edge='SOBEL', blur=2, color='CENTROID', points=1024, reduce=False, verbose=True)
Converting /Users/astro/github/Triangler/apples.jpg...
Process Process-1:
Traceback (most recent call last):
File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/opt/homebrew/Cellar/[email protected]/3.11.5/Frameworks/Python.framework/Versions/3.11/lib/python3.11/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/Users/astro/github/Triangler/lib/python3.11/site-packages/triangler/mod.py", line 89, in convert_and_save
im = Image.fromarray(self.convert(source).astype(np.uint8))
^^^^^^^^^^^^^^^^^^^^
File "/Users/astro/github/Triangler/lib/python3.11/site-packages/triangler/mod.py", line 58, in convert
return process(
^^^^^^^^
File "/Users/astro/github/Triangler/lib/python3.11/site-packages/numba/core/dispatcher.py", line 468, in _compile_for_args
error_rewrite(e, 'typing')
File "/Users/astro/github/Triangler/lib/python3.11/site-packages/numba/core/dispatcher.py", line 409, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: Literal propagation)
Failed in literal_propagation_subpipeline mode pipeline (step: performs partial type inference)
Untyped global name 'imread': Cannot determine Numba type of <class 'function'>
File "lib/python3.11/site-packages/triangler/process.py", line 30:
def process(
<source elided>
if isinstance(img, str):
img = imread(img)
^
imageio==2.34.0
lazy_loader==0.3
llvmlite==0.42.0
networkx==3.2.1
numba==0.59.0
numpy==1.26.4
packaging==24.0
pillow==10.2.0
scikit-image==0.22.0
scipy==1.12.0
tifffile==2024.2.12
triangler @ git+https://github.com/tdh8316/triangler/@789b280a9c4fb7a593122d2dff783c82e509965f