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

Unable to instantiate main class in linux #104

Open
Wemmy0 opened this issue Aug 17, 2024 · 0 comments
Open

Unable to instantiate main class in linux #104

Wemmy0 opened this issue Aug 17, 2024 · 0 comments

Comments

@Wemmy0
Copy link

Wemmy0 commented Aug 17, 2024

I cloned the repo and created a library using python setup.py sdist
(I'm not sure if this is right, there are a lot of references to a Steamworks.py file that I can't find anywhere)

I then installed this with pip install dist/steamworks-2.0.0.tar.gz which suceeded.

Trying:

from steamworks import STEAMWORKS

steamworks = STEAMWORKS()
steamworks.initialize()

Throws the error:

Traceback (most recent call last):
  File "/home/******/PycharmProjects/SamRevitalised/main.py", line 5, in <module>
    steamworks = STEAMWORKS()
                 ^^^^^^^^^^^^
  File "/home/******/PycharmProjects/SamRevitalised/.venv/lib/python3.12/site-packages/steamworks/__init__.py", line 52, in __init__
    self._initialize()
  File "/home/******/PycharmProjects/SamRevitalised/.venv/lib/python3.12/site-packages/steamworks/__init__.py", line 101, in _initialize
    self._cdll 		= CDLL(library_path) # Throw native exception in case of error
                   ^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/******/PycharmProjects/SamRevitalised/SteamworksPy.so: undefined symbol: SteamAPI_Init

This may be due to I'm using this v1.6.1 SteamworksPy.so which seems very outdated but it's the most recent pre-compiled linux build. Trying to build from source results in this build error

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