Skip to content

pkg_resources not found #107

Closed
Closed

Description

@soerendomroes

Description

Wenn ich dem Guide zum erstellen eines Python Spielers folge, bekomme ich folgenden Fehler:

Traceback (most recent call last):
  File "/home/sdo/Documents/socha/Development/python_player_test/logic.py", line 25, in <module>
    from socha.starter import Starter
  File "/home/sdo/Documents/socha/Development/python_player_test/venv/lib/python3.12/site-packages/socha/starter.py", line 12, in <module>
    import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

Environment

  • Python version: [e.g. 3.12]
  • Operating System: [Ubuntu 24.04]
  • Version of the Python SoCha Client: latest

Activity

  1. YoEnte commented on Sep 24, 2026

    @YoEnte
    Collaborator

    Auch dokumentationsproblem denke ich.
    setuptools muss schon beim starten installert sein und nicht nur für die abgabe, schlecht formuliert

  2. soerendomroes commented on Sep 29, 2026

    @soerendomroes
    MemberAuthor

    Ok, kannst du bitte die Dokumentation so anpassen, dass es funktionieren sollte, dann teste ich das noch mal. Einfach setuptools pip install setuptools installieren löst bei mir nicht das Problem.

  3. YoEnte commented on Oct 2, 2026

    @YoEnte
    Collaborator

    Probiere mal pip install setuptools==<version>

    Wobei von deiner Python Version abhängt, siehe readme (Abgabe vom Spieler):
    3.10: 58.1.0
    3.12: 75.8.0

    Ich füge diese Information ein, dass man das nicht nur für die Abgabe braucht, sondern auch für das bloße Ausführen, insofern es bei dir damit klappt.
    Wahrscheinlich ist das mir vorher nie aufgefallen, weil ich setuptools überall schon habe.

  4. soerendomroes commented on Oct 5, 2026

    @soerendomroes
    MemberAuthor

    Alles klar, dann lass ich das Ticket offen, bis das mit in der Doku steht.

  5. YoEnte commented on Oct 5, 2026

    @YoEnte
    Collaborator

    Funktioniert es denn so bei dir?

  6. linked a pull request that will close this issueDocs/issue 107 setuptools #112on Nov 1, 2026
  7. added a commit that references this issue on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions