Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code has Windows/DOS-style line endings which must be converted before running on Linux #20

Closed
danieljweinberg opened this issue Oct 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@danieljweinberg
Copy link

Hi, when I ran this for the first time on a Linux machine (Debian 11), I got the error
/usr/bin/env: ‘python3\r’: No such file or directory
This indicates the "file was created or edited on a Windows system and uses Windows/DOS-style line endings (CR+LF), whereas Linux systems ... require Unix-style line endings (LF)." (source)
Per the suggestion in that post, I was able to fix this after running dos2unix on the file, after which the file executed perfectly.
I believe this means that at some point the python code was saved on a Windows machine? I have not tested running the file on Windows, however if the intention is to generally run it on Linux then it may be best to save on Linux before pushing to github.
If I am missing something, let me know. Thank you!

@GurpreetKang GurpreetKang self-assigned this Oct 2, 2022
@GurpreetKang GurpreetKang added the bug Something isn't working label Oct 2, 2022
@GurpreetKang
Copy link
Owner

Thanks for reporting this. I'll need to do some testing to ensure changing this doesn't impact WIndows users, and if not I'll push out a fix.

brunomgalmeida pushed a commit to brunomgalmeida/BitwardenDecrypt that referenced this issue Oct 17, 2022
Change line endings from CRLF to LF.

Closes GurpreetKang#20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants