Page 1 of 1

[Source.Python] Loading... and nothing more

Posted: Tue Jan 09, 2018 1:48 pm
by Hojjke
Greetings guys, could you please help me with installing the mode?

When I'm trying to run a clean server with only SP(latest version) installed, it just doesn't load

So, the full console.log looks like that:

Code: Select all

Tue Jan  9 16:41:25 GMT-3 2018
#
#Console initialized.
#Using breakpad minidump system 740/13619.636.DC
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#CGameEventManager::AddListener: event 'player_connect' unknown.
#CGameEventManager::AddListener: event 'player_disconnect' unknown.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative).
#GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission).
Failed to load gamerulescvars.txt, game rules cvars might not be reported to management tools.
Server is hibernating
Particles: Missing 'particles/money_fx.pcf'
CDedicatedServerWorkshopManager::GetNewestSubscribedFiles
Auth key file webapi_authkey.txt not valid
No web api auth key specified - workshop downloads will be disabled.
[Source.Python] Loading...
LD_LIBRARY_PATH=/game/bin:/game:/game/bin:


Server is running under Linux

Re: [Source.Python] Loading... and nothing more

Posted: Tue Jan 09, 2018 4:04 pm
by Ayuto
Please add +developer 5 to your command line and try again. That should give us a little bit more information.

Re: [Source.Python] Loading... and nothing more

Posted: Thu Jan 11, 2018 2:33 pm
by Hojjke
Ayuto wrote:Please add +developer 5 to your command line and try again. That should give us a little bit more information.



thank you for your help!

this is what I get now

Code: Select all

[Source.Python] Loading main module...
[Source.Python] Failed to load the main module due to following exception:
Traceback (most recent call last):

  File "/game/csgo/addons/source-python/packages/source-python/__init__.py", line 77, in <module>
    from loggers import _sp_logger  # It's save to import this here

  File "/game/csgo/addons/source-python/packages/source-python/loggers.py", line 12, in <module>
    from logging import CRITICAL

  File "/game/csgo/addons/source-python/Python3/logging/__init__.py", line 28, in <module>
    from string import Template

ModuleNotFoundError: No module named 'string'
[Source.Python] Could not initialize python.
Failed to load plugin "addons/source-python"
[Source.Python] Unloading...
[Source.Python] Unhooking all functions...
[Source.Python] Restoring old logging state...
#[Source.Python] Resetting cache notifier...
#[Source.Python] Shutting down python...
#[Source.Python] Unloading main module...
#[Source.Python] Failed to unload the main module.
#[Source.Python] Clearing all commands...
#[Source.Python] Unregistering ConVar...
#[Source.Python] Disconnecting interfaces...
#[Source.Python] Unloaded successfully.

Re: [Source.Python] Loading... and nothing more

Posted: Thu Jan 11, 2018 5:50 pm
by Ayuto
That's a surprising error. Please post the full log. Also check whether this file exists on your server:
../addons/source-python/Python3/string.py

Re: [Source.Python] Loading... and nothing more

Posted: Thu Jan 11, 2018 10:31 pm
by satoon101
It almost seems like a permissions issue to me.

Your original reply contained this error:

Code: Select all

FileNotFoundError: [Errno 2] No such file or directory: Path('/mnt/softraid/games/server3705/game/csgo/cfg/source-python/auth/players.json')

SP writes that file if it doesn't exist. So, for it to then not be there when you go to read it means to me that it failed to create it due to write permissions in ../cfg/source-python/ and its sub-directories. I would assume that you noticed that and created the file yourself, which is what led to the second error.

Your updated reply could very well be due to not having write permissions in ../addons/source-python/Python3/ and its sub-directories.