Closed reberya closed 3 years ago
I seem to have solved my own issue. For other's future reference what I did:
Looking at the output of reticulate::py_discover_config(required_module = "phate")
and reticulate::py_discover_config(required_module = "pyparsing")
you can see that the versions of python being used are different. I suspect this is because using an HPC's available modules of python has a different destination than phate which I installed via pip install --user phate
.
To address this I specified phate's target destination and reinstalled via:
pip install --user --target=/home/usr/.local/lib/python3.8/site-packages/phate --upgrade phate
This ensured that all the associated required packages would be installed in the same directory rather than relying on their presence in other python versions present on my system. Following this looking at the output below you can see that both pyparsing and phate have the same location within the system.
Other ways I think could solve this problem (granted I am obviously not that fluent with python/python envs):
Working output of reticulate::py_discover_config(required_module = "pyparsing")
:
Working output of reticulate::py_discover_config(required_module = "phate")
This website helped me solve my issue: https://www.bswen.com/2019/09/others-pip-install-conan-errors-and-exceptions.html
Describe the bug Hello,
I am trying to use Phate on my univeristy's HPC and have been unable to run phate to completion on any matrix due to an error with the associated pyparsing module. To address this I have tried to
pip install --user pyparsing
however I am informed that the requirement is already met:To Reproduce phateR::check_pyphate_version() is sufficient to trigger the error - output can be seen below
Expected behavior Phate to run to completion and return its output.
Actual behavior
following
counts_phate <- phate(counts_matrix)
the following error returns:System information:
Output of
phate.__version__
:Output of
pd.show_versions()
:Output of
sessionInfo()
:Output of
reticulate::py_discover_config(required_module = "phate")
:Output of
phateR::check_pyphate_version()
:Output of
reticulate::py_discover_config(required_module = "phate")
:Output of
reticulate::py_discover_config(required_module = "pyparsing")
: