-
Notifications
You must be signed in to change notification settings - Fork 915
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
Missing pkg_resources attribute from umap-learn (v 0.5.5) #8283
Comments
I had the same issue with the same seurat5.01 and umap-learn0.5.5 installed via Conda. |
I had the same error and solved it for now by downgrading my umap-learn to 0.5.3 via reticulate. |
Hi, I tried with umap-learn v0.5.3 but I end up with another error : 0it [00:00, ?it/s] How may I be able to solve this please? Here is my codes:
Also attaching my session info:
|
have to downgrade the umap-learn=0.5.4 in conda env |
Thanks for the tips on downgrading Also a reminder to folks to restart their R sessions after downgrading. Seurat uses reticulate which loads python imports into memory. You can double-check the versions of loaded libraries via: > cat(names(reticulate::import("umap")), sep="\n")
aligned_umap
AlignedUMAP
catch_warnings
distances
layouts
numba
ParametricUMAP
pkg_resources
simplefilter
sparse
spectral
UMAP
umap_
utils
warn
> subset(reticulate::py_list_packages(), package=="umap-learn")
package version requirement channel
24 umap-learn 0.5.4 umap-learn=0.5.4 pypi
> umap_import$`__version__`
[1] "0.5.4"
> packageVersion("Seurat")
[1] ‘5.0.1’
> reticulate::py_config()
[elided]
umap: [elided]/lib/python3.11/site-packages/umap
NOTE: Python version was forced by use_python() function
> If you've downgraded umap to |
When installing umap-learn=0.5.4 with
Additionally specifying a compatible numpy version seems to work around the issue:
|
Hello! I messed up and accidental upgraded "conda upgrade all". I have downgraded, but I'm still getting this error:
Here are my checks. I reinstalled conda using the python for the version of Ubuntu I'm using is 3.8.10, should I upgrade it?
I'm kind of stuck as I'm in the middle of a large dataset and I need these to compare to the others. I guess this has been open for a long while. Any advice is greatly appreciated. |
Hi !
I've noticed a bug when computing UMAP using a
Graph
(thus, usingumap-learn
). See the code below to reproduce. Please note that the version of theumap-learn
python module I'm using is0.5.5
and I've installed it using conda (conda-forge)Here's the output of
reticulate::py_last_error()
I've noticed in seurat/R/dimensional_reduction.R that the way to check for the version of
umap-learn
is not compatible with version 0.5.5 :It's seems that the change happen for version 0.5.5 (lmcinnes/umap@c427b48)
Thus, I think there might be a way to correct that, maybe with a
tryCatch
? Also,umap$`__version__`
might be a valid alternative.Best,
Florian
PS: Here is the output of
sessionInfo()
The text was updated successfully, but these errors were encountered: