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

All other Source.Python topics and issues.
Hojjke
Junior Member
Posts: 3
Joined: Tue Jan 09, 2018 1:44 pm

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

Postby Hojjke » Tue Jan 09, 2018 1:48 pm

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
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

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

Postby Ayuto » Tue Jan 09, 2018 4:04 pm

Please add +developer 5 to your command line and try again. That should give us a little bit more information.
Hojjke
Junior Member
Posts: 3
Joined: Tue Jan 09, 2018 1:44 pm

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

Postby Hojjke » Thu Jan 11, 2018 2:33 pm

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.
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

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

Postby Ayuto » Thu Jan 11, 2018 5:50 pm

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
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

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

Postby satoon101 » Thu Jan 11, 2018 10:31 pm

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.
Image

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 12 guests