gallantlab / pycortex

Pycortex is a python-based toolkit for surface visualization of fMRI data
https://gallantlab.github.io/pycortex
BSD 2-Clause "Simplified" License
581 stars 137 forks source link

Installation error #505

Open davidmwatson opened 10 months ago

davidmwatson commented 10 months ago

Hello,

I ran into the following error when attempting to pip install pycortex on Linux:

pip3 install --user git+https://github.com/gallantlab/pycortex

  error: could not create '/usr/share/pycortex': Permission denied
  ----------------------------------------
  ERROR: Failed building wheel for pycortex
Failed to build pycortex
ERROR: Could not build wheels for pycortex which use PEP 517 and cannot be installed directly

This seems to be a permissions error - I did specify the --user flag to pip, but the setup seems to be ignoring it. Looking at the history of setup.py, it looks like commit 156c66f changed a reference to self.install_data to be self.install_base. I changed this back to self.install_data, and the installation seems to have run fine for me now, so maybe this has something to do with it? This might also be related to issue #495 .

kroq-gar78 commented 6 days ago

I think I've only run into this issue when installing outside of a virtual environment or conda environment. I can confirm changing self.install_data to self.install_base does fix it though.