Sourcepython installation libffi.so.6 error

All other Source.Python topics and issues.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Sourcepython installation libffi.so.6 error

Postby velocity » Wed Oct 03, 2018 11:53 am

I'm trying to install Sourcepython on a CSGO server on Ubuntu 18.04 LTS, I get the following error:

Code: Select all

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

Traceback (most recent call last):



  File "/home/ogp_agent/OGP_User_Files/1/csgo/addons/source-python/packages/source-python/__init__.py", line 98, in load

    setup_sqlite()



  File "/home/ogp_agent/OGP_User_Files/1/csgo/addons/source-python/packages/source-python/__init__.py", line 443, in setup_sqlite

    import ctypes



  File "/home/ogp_agent/OGP_User_Files/1/csgo/addons/source-python/Python3/ctypes/__init__.py", line 7, in <module>

    from _ctypes import Union, Structure, Array



ImportError: libffi.so.6: cannot open shared object file: No such file or directory
User avatar
Ayuto
Project Leader
Posts: 2193
Joined: Sat Jul 07, 2012 8:17 am
Location: Germany

Re: Sourcepython installation libffi.so.6 error

Postby Ayuto » Wed Oct 03, 2018 12:12 pm

Looks like the 32 bit version of libffi is missing. Please check the installation instructions on our wiki.
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Sourcepython installation libffi.so.6 error

Postby velocity » Wed Oct 03, 2018 8:47 pm

Oh yeah thanks, it mostly because I just go to builds and download right away, I don't see the installation instructions before I download.

I'm just gonna leave the solution here, if other people get confused:

Linux:

Code: Select all

apt-get install zlib1g:i386   
apt-get install libffi6:i386
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Sourcepython installation libffi.so.6 error

Postby velocity » Fri Oct 29, 2021 4:55 pm

I have same error again, but now I cannot do
apt-get install libffi6:i386
because the it cannot find the package. I think this is because of ubuntu 20.04
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Sourcepython installation libffi.so.6 error

Postby velocity » Fri Oct 29, 2021 8:49 pm

I'm using the Pterodactyl Panel, and I tried making a new CS:GO server where I installed Source-python, but now I get the same error. I have another csgo server on the panel, which was created very long time ago, where Source Python works fine, but on the new one I get the error. Pterodactyl is using dockers to run the servers, maybe it has something to do with that. I'm on Ubuntu 20.04
User avatar
velocity
Senior Member
Posts: 220
Joined: Sat May 10, 2014 6:17 pm

Re: Sourcepython installation libffi.so.6 error

Postby velocity » Fri Oct 29, 2021 9:15 pm

I fixed it, somehow

Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 34 guests