Traceback (most recent call last):
File "src\gevent\greenlet.py", line 766, in gevent._greenlet.Greenlet.run
File "D:\Games\RlBot\pkgs\eel__init__.py", line 199, in _process_message
return_val = _exposed_functions[message['name']](*message['args'])
File "D:\Games\RlBot\Python\lib\site-packages\rlbot_gui\gui.py", line 233, in begin_python_bot
config_file = bootstrap_python_bot(bot_name, bot_directory)
File "D:\Games\RlBot\Python\lib\site-packages\rlbot_gui\bot_management\bot_creation.py", line 36, in bootstrap_python_bot
os.rename(f"{tmpdirname}/RLBotPythonExample-master", f"{bot_directory}/{sanitized_name}")
OSError: [WinError 17] Das System kann die Datei nicht auf ein anderes Laufwerk verschieben: 'C:\Users\Main\AppData\Local\Temp\tmpkrlsijfz/RLBotPythonExample-master' -> './TestBot'
2019-03-02T21:35:53Z <Greenlet at 0x22a49961e18: _process_message({'call': 5.162969103343832, 'name': 'beginpython, <geventwebsocket.websocket.WebSocket object at 0x0)> failed with OSError
Log by @badplayz in discord:
bot_creation.py
os.rename()seems to be the culprit and we should useshutil.move()instead. See: https://stackoverflow.com/questions/21116510While you're at it, I'd suggest moving to pathlib.Path rather than string-formatting paths.