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

EOL character on Windows #3

Open
TheSidi opened this issue Jul 31, 2018 · 0 comments
Open

EOL character on Windows #3

TheSidi opened this issue Jul 31, 2018 · 0 comments

Comments

@TheSidi
Copy link

TheSidi commented Jul 31, 2018

Hi,

I had some issues with the EOL character in the "fdmfile.txt" and the input file when running pyFDMNES on a Windows machine. It seems that only a \n instead of a \n\r is written as an EOL which prevents FDMNES from running on Windows.

Following the suggestion from here:
https://stackoverflow.com/questions/38074811/what-is-os-linesep-for

I changed open(path, "w") to open(path, "wb") in line 667 and 694 of pyFDMNES.py

That seems to do the job for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant