Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running STEAMWORKS() #99

Closed
gungugugungu opened this issue Mar 6, 2024 · 1 comment
Closed

Error when running STEAMWORKS() #99

gungugugungu opened this issue Mar 6, 2024 · 1 comment

Comments

@gungugugungu
Copy link

Hi! I've used this library before, and it worked perfectly but when I tried it again, this time on another system, it didn't work. I used a version of SteamworksPy.so that I compiled from the latest version but when I ran it, I got this error:

Traceback (most recent call last):
  File "/home/gungu/Documents/coding/python/Steam game/main.py", line 9, in <module>
    steamworks = STEAMWORKS()
  File "/home/gungu/Documents/coding/python/Steam game/steamworks/__init__.py", line 52, in __init__
    self._initialize()
  File "/home/gungu/Documents/coding/python/Steam game/steamworks/__init__.py", line 101, in _initialize
    self._cdll 		= CDLL(library_path) # Throw native exception in case of error
  File "/usr/lib/python3.10/ctypes/__init__.py", line 374, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: /home/gungu/Documents/coding/python/Steam game/SteamworksPy.so: undefined symbol: SteamAPI_Init

Here are the contents of my folder:
data(folder) libsteam_api.so main.py sdk(folder) steam(folder) steam_appid.txt steamworks(folder) SteamworksPy.so

@gungugugungu
Copy link
Author

So, I recompiled SteamwoksPy.so, with changes made from this post: #94 (comment)
and it just suprisingly worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant