PyCharacterAI
PyCharacterAI copied to clipboard
Removed dependency on deprecated package "uuid"
The project lists uuid as a dependency. This causes pip to download the dependency from https://pypi.org/project/uuid/. This package is for older versions of Python and is not relevant now for following reasons:
- Since Python 2.5 the
uuidmodule is now a part of standard library. And installing it from PyPI is now deprecated. https://docs.python.org/3/whatsnew/2.5.html#:~:text=New%20module%3A%20the%20uuid%20module%20generates%20universally%20unique%20identifiers%20(UUIDs)%20according%20to%20RFC%204122. - The package causes errors during compilation in some environments. This error-prone behavior has been observed while I was using
PyCharacterAIpackage in Cloud Functions on Yandex Cloud. The cloud apparently needs to compile Python, it could not compileuuidpackage because of some old code in theuuidpackage. Removing theuuidpackage from dependencies and using the built-inuuidmodule solved the problem.
Therefore, I removed uuid package from dependencies of PyCharacterAI project in this PR.