Skip to content

Replace Linux only 'resource' library with cross-platform 'psutil' library#3037

Merged
dgtlmoon merged 1 commit into
dgtlmoon:masterfrom
nicoell:replace-resource-lib
Mar 21, 2025
Merged

Replace Linux only 'resource' library with cross-platform 'psutil' library#3037
dgtlmoon merged 1 commit into
dgtlmoon:masterfrom
nicoell:replace-resource-lib

Conversation

@nicoell
Copy link
Copy Markdown
Contributor

@nicoell nicoell commented Mar 20, 2025

I cannot run tests on windows because 'resource' library is not available on windows

ModuleNotFoundError: No module named 'resource',

I replaced the 'resource' library with psutil: https://pypi.org/project/psutil/

Cross-platform lib for process and system monitoring in Python.

@dgtlmoon
Copy link
Copy Markdown
Owner

ah nice one, thanks!

@dgtlmoon
Copy link
Copy Markdown
Owner

actually to be honest i think it would be best to remove all the memory test stuff from the tests, i never look at it

@dgtlmoon dgtlmoon merged commit 70a18ee into dgtlmoon:master Mar 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants