-
Notifications
You must be signed in to change notification settings - Fork 15
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
No module named 'pkg_resources' #148
Comments
@carissableker ... thanks for pointing this out, and double-thanks for the workaround! Certainly, it's time to move on from colorbrewer ... I guess this happens from time to time. A quick look at PyPI indicates that https://pypi.org/project/palettable/ may be a reasonable path. I'll give a deeper look later today. I'll be looking for something that works with >= Python 3.8 without major trauma to the py4cytoscape source or unit tests. (Fortunately, the unit tests set some good guard rails for demonstrating correctness.) Feel free to comment or offer alternatives. Thanks! |
@carissableker ... my approach was to create my own copy of colorbrewer and use it directly ... and then eliminate references to the colorbrewer package. I have this working on my development machine, and will release it once it's properly tested. Thanks again! |
In case you want to keep with colorbrewer, the developers there have responded and made the repository public here: https://github.com/hoffmangroup/colorbrewer It seems they plan to update it. |
@carissableker Indeed, they have updated it far more quickly than I expected. In the meantime, there are a number of other Python 3.13.2 issues in py4cytoscape, too. I have addressed them and am now doing regression testing. Please stand by. |
@carissableker Please try out my working copy of py4cytoscape in the 1.12.0 branch, which isn't released to Master yet. It now uses the 0.3.0 Colorbrewer module. Thanks for enlisting those maintainers to update this module! |
Seems all good now! conda create -n p4c-1.12.0 python=3.13
conda activate p4c-1.12.0
pip install "py4cytoscape @ git+ssh://git@github.com/cytoscape/py4cytoscape.git@1.12.0"
python --version
python -c 'import py4cytoscape as p4c; print("Yay!")'
|
This is a note in case other users come across a similar issue before it is fixed by colorbrewer
In a fresh install with Python 3.13.2
I got the following error:
This is due to
pkg_resources
being deprecated and then removed in Python 3.12: https://setuptools.pypa.io/en/latest/pkg_resources.html https://docs.python.org/3/whatsnew/3.12.htmlpkg_resources
is not a direct dependency of py4cytoscape, but ofcolorbrewer
(PyPi: https://pypi.org/project/colorbrewer/).Since there is no GitHub or working project page of
colorbrewer
, I am have reached out directly to ask that they update, and will update/close this issue if I hear back.Temporary fix
The text was updated successfully, but these errors were encountered: