aae-train-donkeycar icon indicating copy to clipboard operation
aae-train-donkeycar copied to clipboard

Process spawning error on Windows

Open szgeri opened this issue 2 years ago • 1 comments

On windows, train_ae.py will display a process spawning related error, because on Windows, the subprocess will import the main module, and because of that, it'll also execute it.

Solution:

Put this line after the imports: if name == 'main':

and increase the indentation of the rest of the file.

I intentionally did not create a PR for this to not change the ownership of the whole code because of the required indentation.

szgeri avatar May 28 '22 22:05 szgeri

Hello, thanks for reporting the issue, this code was only tested under linux, so not a surprise that things might need small adjustments for windows.

I intentionally did not create a PR for this to not change the ownership of the whole code because of the required indentation.

No worry about that, please go ahead for the PR ;)

araffin avatar May 29 '22 15:05 araffin