Error installing Python on a Linux Server

All other Source.Python topics and issues.
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Error installing Python on a Linux Server

Postby para97 » Thu Mar 07, 2019 3:45 pm

Hi,

i get that error and my server crashes, when i try to setup it with source python.

Code: Select all

[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for modtype_t already registered; second conversion method

# ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for IMDLCache* already registered; second conversion method

# ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for MDLCacheDataType_t already registered; second conversion

# method ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for WeaponSound_t already registered; second conversion

# method ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for WeaponProficiency_t already registered; second

# conversion method ignored.

#

#[Source.Python] Failed to load the main module due to following exception:

#Traceback (most recent call last):



File

"/local/gameserver/85.14.230.125/csgo/csgo/addons/source-python/packages/source-python/__init__.py", line

91, in load

setup_data()



File

"/local/gameserver/85.14.230.125/csgo/csgo/addons/source-python/packages/source-python/__init__.py", line

162, in setup_data

_fire_output = entities._BaseEntityOutput.fire_output



File

"/local/gameserver/85.14.230.125/csgo/csgo/addons/source-python/packages/source-python/memory/manager.py"

, line 659, in __get__

return_type



TypeError: 'Convention' object is not callable

#[Source.Python] Could not initialize python.

#Failed to load plugin "addons/source-python"

#[Source.Python] Unloading...

[Source.Python] Unloaded successfully.

Unable to load plugin "addons/source-python"


any help?

best regards
Last edited by Ayuto on Thu Mar 07, 2019 4:30 pm, edited 1 time in total.
Reason: Added code tags
User avatar
Ayuto
Project Leader
Posts: 1967
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Error installing Python on a Linux Server

Postby Ayuto » Thu Mar 07, 2019 4:33 pm

What steps did you take to install it? Also, could you please post the full console log. You can easily redirect it by starting your server with the -condebug option.

Off-topic: Please use code tags when posting logs. It makes your post more readable.
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Re: Error installing Python on a Linux Server

Postby para97 » Thu Mar 07, 2019 9:12 pm

Hi!

It's a fresh installed server with only source.python on it (csgo version from here http://downloads.sourcepython.com/)

the server is hosted @ngz-servers.de and I have no option to enable the -condebug option because i have no start parameters to choose at that hoster :/

best regards

/edit

this is the full log form the log above

Code: Select all

sv_vote_to_changelevel_before_match_point - 0

sv_wateraccelerate - 10

sv_waterfriction - 1

sv_water_movespeed_multiplier - 0.8

sv_water_swim_mode - 0

sv_weapon_encumbrance_per_item - 0.85

sv_weapon_encumbrance_scale - 0

tv_delay - 10

weapon_accuracy_nospread - 0

weapon_air_spread_scale - 1.0

weapon_max_before_cleanup - 0

weapon_recoil_scale - 2.0

weapon_reticle_knife_show - 0

weapon_sound_falloff_multiplier - 1.0

Executing dedicated server config file

L 03/07/2019 - 17:53:25: server_cvar: "nextlevel" ""

Server logging enabled.

L 03/07/2019 - 17:53:25: Log file closed

Server logging data to file logs/L085_014_230_125_27015_201903071753_001.log

L 03/07/2019 - 17:53:25: Log file started (file "logs/L085_014_230_125_27015_201903071753_001.log") (game

"/local/gameserver/85.14.230.125/csgo/csgo") (version "7424")

Unknown command "sv_allow_lobby_connect_only"

L 03/07/2019 - 17:53:25: server_cvar: "sv_alltalk" "1"

L 03/07/2019 - 17:53:25: server_cvar: "sv_friction" "4"

Unknown command "sv_maxcmdrate"

L 03/07/2019 - 17:53:25: server_cvar: "mp_maxrounds" "30"

L 03/07/2019 - 17:53:25: server_cvar: "mp_timelimit" "0"

L 03/07/2019 - 17:53:25: server_cvar: "mp_roundtime_defuse" "2"

L 03/07/2019 - 17:53:25: server_cvar: "mp_roundtime_hostage" "2"

L 03/07/2019 - 17:53:25: server_cvar: "mp_freezetime" "5"

L 03/07/2019 - 17:53:25: server_cvar: "mp_friendlyfire" "1"

L 03/07/2019 - 17:53:25: server_cvar: "mp_c4timer" "45"

L 03/07/2019 - 17:53:25: server_cvar: "mp_roundtime" "3"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_terrorist_win_bomb" "2200"

Unknown command "cash_team_elimination_hostage_map"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_elimination_bomb_map" "2200"

Unknown command "cash_team_win_by_time_running_out"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_win_by_defusing_bomb" "2200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_win_by_hostage_rescue" "2200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_loser_bonus" "2000"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_rescued_hostage" "100"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_planted_bomb_but_defused" "200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_hostage_interaction" "50"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_killed_teammate" "-3300"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_killed_enemy_default" "200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_killed_enemy_factor" "0.5"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_bomb_planted" "200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_bomb_defused" "200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_rescued_hostage" "200"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_interact_with_hostage" "0"

Unknown command "sv_vote_creation_time"

--------------------------------------------------------

sv_pure value unchanged (current value is 0).

--------------------------------------------------------

Writing cfg/banned_user.cfg.

Writing cfg/banned_ip.cfg.

[Source.Python] Loading...

L 03/07/2019 - 17:53:25: server_cvar: "sv_alltalk" "0"

L 03/07/2019 - 17:53:25: server_cvar: "mp_c4timer" "40"

L 03/07/2019 - 17:53:25: server_cvar: "mp_roundtime" "5"

L 03/07/2019 - 17:53:25: server_cvar: "mp_roundtime_hostage" "0"

L 03/07/2019 - 17:53:25: server_cvar: "mp_roundtime_defuse" "0"

L 03/07/2019 - 17:53:25: server_cvar: "mp_freezetime" "6"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_terrorist_win_bomb" "3500"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_elimination_bomb_map" "3250"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_win_by_defusing_bomb" "3250"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_win_by_hostage_rescue" "3500"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_loser_bonus" "1400"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_rescued_hostage" "0"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_planted_bomb_but_defused" "800"

L 03/07/2019 - 17:53:25: server_cvar: "cash_team_hostage_interaction" "500"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_killed_teammate" "-300"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_killed_enemy_factor" "1"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_killed_enemy_default" "300"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_bomb_planted" "300"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_bomb_defused" "300"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_rescued_hostage" "1000"

L 03/07/2019 - 17:53:25: server_cvar: "cash_player_interact_with_hostage" "150"

L 03/07/2019 - 17:53:25: server_cvar: "mp_maxrounds" "0"

L 03/07/2019 - 17:53:25: server_cvar: "mp_timelimit" "5"

L 03/07/2019 - 17:53:25: server_cvar: "sv_friction" "5.2"

L 03/07/2019 - 17:53:25: server_cvar: "mp_friendlyfire" "0"

[Source.Python] Failed to load the main module due to following exception:

Traceback (most recent call last):



File

"/local/gameserver/85.14.230.125/csgo/csgo/addons/source-python/packages/source-python/__init__.py", line

91, in load

setup_data()



File

"/local/gameserver/85.14.230.125/csgo/csgo/addons/source-python/packages/source-python/__init__.py", line

162, in setup_data

_fire_output = entities._BaseEntityOutput.fire_output



File

"/local/gameserver/85.14.230.125/csgo/csgo/addons/source-python/packages/source-python/memory/manager.py"

, line 659, in __get__

return_type



TypeError: 'Convention' object is not callable

[Source.Python] Could not initialize python.

Failed to load plugin "addons/source-python"

[Source.Python] Unloading...

PreMinidumpCallback: updating dump comment

No minidump written, nothing to upload.
User avatar
Ayuto
Project Leader
Posts: 1967
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Error installing Python on a Linux Server

Postby Ayuto » Thu Mar 07, 2019 10:04 pm

I still don't know what you did to install it. However, I guess you extraced the archive on your server and added a plugin_load line to your autoexec.cfg. That could cause the errors, because it gets loaded twice (via the vdf file and autoexec.cfg).

See also:
http://wiki.sourcepython.com/general/installation.html
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Re: Error installing Python on a Linux Server

Postby para97 » Fri Mar 08, 2019 9:05 am

Hello,

no, I did not create a autoexec. I installed the server itself (csgo) from the webinterface. After that, i extracted the downloaded archive on my server. That's all. It may crash because of GLIBC 2.17 or later is required ?

I'll create a support ticket on ngz to see if it's the problem. However, i noticed on another fresh installed that 9 files are not transfered to my ftp which are the .exe files in \python\addons\source-python\Python3\distutils\command. It's the wininstall files.

//edit

some more logs after the update today, dunno if sth important is in it

Code: Select all

# File '..sys', line 1: RuntimeWarning

# to-Python converter for mstudioattachment_t* already registered; second

# conversion method ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for modtype_t already registered; second conversion method

# ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for IMDLCache* already registered; second conversion method

# ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for MDLCacheDataType_t already registered; second conversion

# method ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for WeaponSound_t already registered; second conversion

# method ignored.

#

#

#[SP] Encountered a Warning:

# File '..sys', line 1: RuntimeWarning

# to-Python converter for WeaponProficiency_t already registered; second

# conversion method ignored.

#

#[Source.Python] Failed to load the main module due to following exception:

#Traceback (most recent call last):



File

"/local/gameserver/85.14.230.xxx/csgo/csgo/addons/source-python/packages/source-python/__init__.py", line

91, in load

setup_data()



File

"/local/gameserver/85.14.230.xxx/csgo/csgo/addons/source-python/packages/source-python/__init__.py", line

162, in setup_data

_fire_output = entities._BaseEntityOutput.fire_output



File

"/local/gameserver/85.14.230.xxx/csgo/csgo/addons/source-python/packages/source-python/memory/manager.py"

, line 659, in __get__

return_type



TypeError: 'Convention' object is not callable

#[Source.Python] Could not initialize python.

#Failed to load plugin "addons/source-python"

#[Source.Python] Unloading...

[Source.Python] Unloaded successfully.

Unable to load plugin "addons/source-python"

L 03/08/2019 - 08:24:21: server_cvar: "cash_player_interact_with_hostage" "300"

L 03/08/2019 - 08:24:21: server_cvar: "cash_team_elimination_hostage_map_t" "3000"

L 03/08/2019 - 08:24:21: server_cvar: "cash_team_elimination_hostage_map_ct" "3000"

L 03/08/2019 - 08:24:21: server_cvar: "cash_team_hostage_interaction" "600"

L 03/08/2019 - 08:24:21: server_cvar: "cash_team_rescued_hostage" "600"

L 03/08/2019 - 08:24:21: server_cvar: "cash_team_win_by_defusing_bomb" "3500"

L 03/08/2019 - 08:24:21: server_cvar: "cash_team_win_by_hostage_rescue" "2900"

L 03/08/2019 - 08:24:21: server_cvar: "mp_freezetime" "15"

L 03/08/2019 - 08:24:21: server_cvar: "mp_friendlyfire" "1"

L 03/08/2019 - 08:24:21: server_cvar: "mp_maxrounds" "30"

L 03/08/2019 - 08:24:21: server_cvar: "mp_roundtime" "1.92"

L 03/08/2019 - 08:24:21: server_cvar: "mp_roundtime_hostage" "1.92"

L 03/08/2019 - 08:24:21: server_cvar: "mp_roundtime_defuse" "1.92"

L 03/08/2019 - 08:24:21: server_cvar: "mp_timelimit" "0"

L 03/08/2019 - 08:24:21: server_cvar: "sv_deadtalk" "1"

PrecacheScriptSound 'Snowball.Bounce' failed, no such sound script entry

CHostage::Precache: missing hostage models for map de_dust2. Adding the default models.

Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Error parsing BotProfile.db - unknown attribute 'Rank'

Initializing Steam libraries for secure Internet server

[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.

CAppInfoCacheReadFromDiskThread took 0 milliseconds to initialize

CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on

CAppInfoCacheReadFromDiskThread)

Setting breakpad minidump AppID = 730

dlopen failed trying to load:

/local/gameserver/85.14.230.xxx/csgo/.steam/sdk32/steamclient.so

with error:

/local/gameserver/85.14.230.xxx/csgo/.steam/sdk32/steamclient.so: cannot open shared object file: No such

file or directory

Looking up breakpad interfaces from steamclient

Calling BreakpadMiniDumpSystemInit

Setting breakpad minidump AppID = 740

Logging into Steam gameserver account with logon token 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

SteamDatagramServer_Init succeeded

L 03/08/2019 - 08:24:22: World triggered "Round_Start"

Connection to Steam servers successful.
User avatar
L'In20Cible
Project Leader
Posts: 1146
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Error installing Python on a Linux Server

Postby L'In20Cible » Fri Mar 08, 2019 11:09 am

Delete your ../addons/source-python.vdf file. Source.Python is clearly trying to load while it is already loaded which causes the interpreter to shut down.
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Re: Error installing Python on a Linux Server

Postby para97 » Fri Mar 08, 2019 5:29 pm

It's really strange because somehow I managed to load source.python on the gameserver with plugin_load. But typing sp info into results in unknown command errors.

I'll try to contact the hoster about the problem
ae2x
Junior Member
Posts: 22
Joined: Mon Apr 09, 2018 4:26 pm

Re: Error installing Python on a Linux Server

Postby ae2x » Fri Mar 08, 2019 6:14 pm

i would reinstall and try it then
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Re: Error installing Python on a Linux Server

Postby para97 » Fri Mar 08, 2019 6:19 pm

I did that several times already. I tried it with a standard install and also with a deleted vdf, aswell as trying to load the plugin with deleted vdf via server config (plugin load addons/source-python).

Always unknown command when trying to get sp info
ae2x
Junior Member
Posts: 22
Joined: Mon Apr 09, 2018 4:26 pm

Re: Error installing Python on a Linux Server

Postby ae2x » Fri Mar 08, 2019 6:41 pm

well i got almoust same problem but with css , and i reinstalled whole steam (ofc im using dedicated root access) after that it worked .. i guess its bugged there or smth if its load twice .vdf file .. this is really strange :S if you can remove server and reinstall it i would give it a try
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Re: Error installing Python on a Linux Server

Postby para97 » Fri Mar 08, 2019 7:20 pm

Steps :

- installed fresh version of the gameserver
- downloaded source python for csgo
- extracted into csgo directory
- deleted vdf to load it manually
- NO changes in server.cfg, no created autoexec

have still "unknown command", here is a screenshot : http://i.epvpimg.com/rPg7gab.png
User avatar
Ayuto
Project Leader
Posts: 1967
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Error installing Python on a Linux Server

Postby Ayuto » Sat Mar 09, 2019 12:43 am

Well, sp is a server command. So, if you use your client console, you need to use rcon (like described in the installation steps).
para97
Junior Member
Posts: 16
Joined: Thu Mar 07, 2019 1:24 pm

Re: Error installing Python on a Linux Server

Postby para97 » Tue Mar 12, 2019 7:20 pm

My hoster upgraded the gameserver to the required repos and now everything is working. ty for the help!

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests