Skip to content
Dwayne Pryce edited this page Feb 10, 2021 · 5 revisions

Frequently Asked Questions

Installation

Cannot Import Graspologic

Graspologic can fail to import if some other libraries are installed in your environment.

umap

umap is a python library in PyPI. graspologic relies on the library umap-learn, which has a namespace of umap. This can cause problems with conflicts in namespaces when Python tries to load a function from the umap-learn library but is actually using the umap library.

Uninstalling umap and umap-learn, then reinstalling umap-learn fixes this issue.

Unfortunately, there is no fix if you wish to have both umap and umap-learn in the same project.

Conda Usage

Instructions for using graspologic with conda provided by @rajpratyush!

Step 1: Check if conda is installed in your path.

conda -V

Step 2: Update the conda environment

conda update conda

Step 3: Set up the virtual environment

  • Type conda search “^python$” to see the list of available python versions.
  • Now replace the envname with the name you want to give to your virtual environment and replace x.x with the python version you want to use.

conda create -n envname python=x.x anaconda

Step 4: Activating the virtual environment

  • To see the list of all the available environments use command conda info -e
  • To activate the virtual environment, enter the given command and replace your given environment name with envname

conda activate envname

Step 5: Installation of required packages to the virtual environment

Type the following command to install the graspologic package to the environment and replace envname with the name of your environment.

pip install graspologic

Step 6: Deactivating the virtual environment

  • To come out of the particular environment type the following command. The settings of the environment will remain as it is.

conda deactivate envname