nuno-faria / tiler

👷 Build images with images
MIT License
5.91k stars 424 forks source link

AttributeError on tiler #19

Closed joeparrie closed 5 years ago

joeparrie commented 5 years ago

Running on VirtualBox. LinuxMint w/ Python 3.7.4

typing

python tiler.py images/myimage.png tiles/lines/gen_line_h

gives me the following:

Loading tiles 100%|██████████| 125/125 [00:00<00:00, 285.37it/s] Gettting and processing boxes 0%| | 0/5 [00:00<?, ?it/s]Traceback (most recent call last): File "tiler.py", line 223, in <module> main() File "tiler.py", line 217, in main boxes, original_res = get_processed_image_boxes(image_path, tiles) File "tiler.py", line 158, in get_processed_image_boxes most_similar_tiles = pool.starmap(most_similar_tile, zip(modes, [ts for x in range(len(modes))])) AttributeError: 'Pool' object has no attribute 'starmap' 0%| | 0/5 [00:33<?, ?it/s]

nuno-faria commented 5 years ago

Are you sure you are using Python 3 and not 2?

joeparrie commented 5 years ago

Turns out I was using 2. Oops!

joeparrie commented 5 years ago

Worked like a charm—great work!