Skip to content

Fix script line endings #716

@Land0fChocolate

Description

@Land0fChocolate

Doing a make on the ROM returns with this error:

/usr/bin/env: ‘python3\r’: No such file or directory
/usr/bin/env: use -[v]S to pass options in shebang lines
scripts/gfxtools/tsa_generator.py graphics/efxdragon/DemonLightBg_Close_1.png graphics/efxdragon/DemonLightBg_Close_1.feimg1.bin graphics/efxdragon/DemonLightBg_Close_1.fetsa1.bin
make: scripts/gfxtools/tsa_generator.py: No such file or directory
make: *** [Makefile:179: graphics/efxdragon/DemonLightBg_Close_1.fetsa1.bin] Error 127

Googling suggests that The problem are your line ending characters. Your file was created or edited on a Windows system and uses Windows/DOS-style line endings (CR+LF), whereas Linux systems like Ubuntu require Unix-style line endings (LF).

I've found that this can be fixed in many ways, such as opening the problematic file (scripts/gfxtools/tsa_generator.py) in a text editor (such as Sublime), changing the line endings under >View->Line Endings, and saving the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions