Skip to content

[BUG] Deprecated/removed code. #102

@Limeisland

Description

@Limeisland

Error when attempting to run latest python release of save editor.
Traceback (most recent call last):
File ”/…/Graveyard-Keeper-Savefile-Editor-master/main.py", line 1115, in
run()
File ”/…/Graveyard-Keeper-Savefile-Editor-master/main.py", line 1085, in run
eel_version = pkg_resources.get_distribution("eel").version
AttributeError: module 'pkg_resources' has no attribute 'get_distribution'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File ”/…/Graveyard-Keeper-Savefile-Editor-master/main.py", line 1119, in
run()
File ”/…/Graveyard-Keeper-Savefile-Editor-master/main.py", line 1085, in run
eel_version = pkg_resources.get_distribution("eel").version
AttributeError: module 'pkg_resources' has no attribute 'get_distribution'

Most likely due to https://setuptools.pypa.io/en/latest/deprecated/pkg_resources.html

Usage of pkg_resources is no longer included in current distributions/installations as of setuptools v82.0.0

Steps to reproduce the behavior:

  1. install latest setuptools
  2. run main.py
  3. See error

Additional context
This was when attempting to run on a mac using Python v.3.9.6 and setuptools v.82.0.1

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions