getnikola / nikola

A static website and blog generator
https://getnikola.com/
MIT License
2.62k stars 449 forks source link

ERROR: Two different tasks can't have a common target.'output/images2/illus_001.thumbnail.jpg' #3654

Closed g1ra closed 1 year ago

g1ra commented 1 year ago

Environment

Python Version: python --version Python 3.10.6

Nikola Version: Nikola v8.2.3

Operating System: linux

Description:

(nikola) bob@lhost:~/nikola/gekis.dev$ nikola build Scanning posts........done! ERROR: Two different tasks can't have a common target.'output/images2/illus_001.thumbnail.jpg' is a target for scale_images:output/images2/illus_001.jpg and scale_images:output/images2/illus_001.thumbnail.jpg.

I'm trying to resurrect an old site written in nikola back in 2019 .

I'm trying to find out what causes this but unable to find.

Please help how to find which are these two different tasks .

Kwpolska commented 1 year ago

It looks like you have a illus_001.thumbnail.jpg file in your images2 folder in your source tree. Files in image folders have a thumbnail automatically generated for them, and this auto-generated thumbnails conflicts with the thumbnail file you have in your source tree. Try removing images2/illus_001.thumbnail.jpg and see if it helps.

g1ra commented 1 year ago

Thanks ! indeed removed unused files : output/images/illus_001.thumbnail.jpg output/images/illus_001.jpg then problem solved !

ralsina commented 1 year ago

Rename one of those two files?

On Mon, Dec 26, 2022, 10:18 PM g1ra @.***> wrote:

Environment

Python Version: python --version Python 3.10.6

Nikola Version: Nikola v8.2.3

Operating System: linux Description:

(nikola) @.***:~/nikola/gekis.dev$ nikola build Scanning posts........done! ERROR: Two different tasks can't have a common target.'output/images2/illus_001.thumbnail.jpg' is a target for scale_images:output/images2/illus_001.jpg and scale_images:output/images2/illus_001.thumbnail.jpg.

— Reply to this email directly, view it on GitHub https://github.com/getnikola/nikola/issues/3654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAMK2UHHCWKJFW5PFKHN3WPHVONANCNFSM6AAAAAATJ26KGE . You are receiving this because you are subscribed to this thread.Message ID: @.***>