[SOLVED] FileNotFoundError: [Errno 2]

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Locked
Coshank90
Posts: 64
Joined: 10 Sep 2013, 15:03

[SOLVED] FileNotFoundError: [Errno 2]

Post by Coshank90 » 01 Aug 2018, 21:37

Hi,

Im getting this error:

Code: Select all

FileNotFoundError: [Errno 2] No such file or directory: '/home/tmserver/servers/mp_04099/server/UserData/Replays/dedimania_46e6fa1fd7f44dbc9840c099c5c517bc.Replay.Gbx'[0m
[33mWARNING [0m [33m[default][pyplanet.apps.contrib.dedimania][0m [37mErrors with cleaning up dedimania ghost files (ignored):[0m
[31mERROR [0m [33m[default][pyplanet.apps.contrib.dedimania][0m [37m[Errno 2] No such file or directory: '/home/tmserver/servers/mp_04099/server/UserData/Replays/dedimania_46e6fa1fd7f44dbc9840c099c5c517bc.Replay.Gbx'
Traceback (most recent call last):
File "/home/tmserver/.pyenv/versions/04099/lib/python3.6/site-packages/pyplanet/apps/contrib/dedimania/__init__.py", line 305, in cleanup
await asyncio.gather(*coros)
File "/home/tmserver/.pyenv/versions/04099/lib/python3.6/site-packages/pyplanet/core/storage/drivers/local/__init__.py", line 54, in remove
os.unlink(self.absolute(path), **kwargs)
FileNotFoundError: [Errno 2] No such file or directory: '/home/tmserver/servers/mp_04099/server/UserData/Replays/dedimania_46e6fa1fd7f44dbc9840c099c5c517bc.Replay.Gbx'[0m
And no dedimania records are being saved, any idea what the problem is?

Thanks,
Coshank

User avatar
toffe
Posts: 664
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: FileNotFoundError: [Errno 2]

Post by toffe » 01 Aug 2018, 21:53

Hi!

We are currently aware of two bugs:
- warning message you posted, doesn’t affect dedimania at all.
- bug with dedimania in Laps mode.

I think you do have issues with dedimania because you run it in laps mode, is this correct?

Toffe

Coshank90
Posts: 64
Joined: 10 Sep 2013, 15:03

Re: FileNotFoundError: [Errno 2]

Post by Coshank90 » 01 Aug 2018, 22:22

I run cup mode.

Coshank

User avatar
toffe
Posts: 664
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: FileNotFoundError: [Errno 2]

Post by toffe » 02 Aug 2018, 09:00

We will investigate the issues with Dedimania. Could be related to the laps mode bugs.

Thanks for reporting!

Issue on GitHub: https://github.com/PyPlanet/PyPlanet/issues/695

Coshank90
Posts: 64
Joined: 10 Sep 2013, 15:03

Re: FileNotFoundError: [Errno 2]

Post by Coshank90 » 05 Aug 2018, 16:22

I solved it by changing <allwarmupduration>1</allwarmupduration> to 0 in the match Settings!
Last edited by Coshank90 on 06 Aug 2018, 22:12, edited 1 time in total.

User avatar
toffe
Posts: 664
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: FileNotFoundError: [Errno 2]

Post by toffe » 02 Sep 2018, 14:26

Thanks for this. In the upcoming bugfix version 0.6.1 we address some of the dedimania laps mode bugs as well.

Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest