Installing Source.Python on CentOS 64-bit

All other Source.Python topics and issues.
popey456963
Junior Member
Posts: 1
Joined: Sat Jun 11, 2016 5:29 pm

Installing Source.Python on CentOS 64-bit

Postby popey456963 » Wed Feb 27, 2019 7:19 pm

Hey, wondering if anyone has had any success installing Source.Python on CentOS 64-bit? Having a few dependency related issues myself. If I install the 64-bit versions of various Source.Python requied libraries (libffi + zlib), I get errors like:

Code: Select all

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

  File "/home/csgoserver/serverfiles/csgo/addons/source-python/packages/source-python/__init__.py", line 86, in load
    setup_core_settings()

  File "/home/csgoserver/serverfiles/csgo/addons/source-python/packages/source-python/__init__.py", line 190, in setup_core_settings
    from core.settings import _core_settings

  File "/home/csgoserver/serverfiles/csgo/addons/source-python/packages/source-python/core/__init__.py", line 29, in <module>
    from urllib.request import urlopen

  File "/home/csgoserver/serverfiles/csgo/addons/source-python/Python3/urllib/request.py", line 84, in <module>
    import base64

  File "/home/csgoserver/serverfiles/csgo/addons/source-python/Python3/base64.py", line 11, in <module>
    import binascii

ImportError: libz.so.1: wrong ELF class: ELFCLASS64


If I install the 32-bit versions of libraries, I get:

Code: Select all

[Source.Python] Loading...
[Source.Python] Loaded successfully.
 failed to dlopen /home/csgoserver/serverfiles/csgo/addons/metamod/bin/linux64/server.so error=/home/csgoserver/serverfiles/csgo/addons/metamod/bin/linux64/server.so: wrong ELF class: ELFCLASS64
Unable to load plugin "addons/metamod/bin/linux64/server"


In the latter scenario, SourcePython actually functions, as far as I can tell:

Code: Select all

IMPORTANT: Please copy the full output.
--------------------------------------------------------
Checksum      : 2af7086237e31b1912d2a9635f50247b
Date          : 2019-02-27 19:15:27.448478
OS            : Linux-4.15.18-10-pve-x86_64-with-centos-7.6.1810-Core
Game          : csgo
SP version    : 680
Github commit : acaa34e53d708064c2130276a35232c1929788b7
Server plugins:
   00: Source.Python, (C) 2012-2018, Source.Python Team.
   01: Metamod:Source 1.11.0-dev+1116
SP plugins:
--------------------------------------------------------


I can also run the test1 program:

Code: Select all

sp plugin load test1
[SP] Loading plugin 'test1'...
Plugin has been loaded successfully!
[SP] Successfully loaded plugin 'test1'.
sp plugin unload test1
[SP] Unloading plugin 'test1'...
Plugin has been unloaded
[SP] Successfully unloaded plugin 'test1'.


The error just slightly concerns me. Is this something I need to worry about?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: Installing Source.Python on CentOS 64-bit

Postby L'In20Cible » Thu Feb 28, 2019 2:42 am

popey456963 wrote:The error just slightly concerns me. Is this something I need to worry about?

As you can see in the error:
Unable to load plugin "addons/metamod/bin/linux64/server"

Basically you either have a .vdf file in your addons folder or a plugin_load command somewhere in your .cfg files that reference that non-existing plugin that is failing to load. That message is just a notice for informational purposes and there is nothing to worry about. Also note that Metamod is unrelated to Source.Python and you should looks over there for installation steps: https://wiki.alliedmods.net/Installing_Metamod:Source

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 19 guests