cortex-lab / phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
BSD 3-Clause "New" or "Revised" License
313 stars 157 forks source link

Fail installation klustakwik2 #1077

Closed JudithLim closed 3 months ago

JudithLim commented 3 years ago

I have been struggling to properly install klustakwik2 within the developer version of phy2 on my Windows 10 PC. I followed the GitHub instructions and so far I have done the following:

  1. Installed Visual Studio Build Tools 2019
  2. Installed Anaconda Python 3.8 64-bit
  3. Cloned the GitHub phy repository to my PC
  4. Created a new environment with the environment file from the repository (python==3.7)
  5. Installed the packages defined in requirements.txt and requirements-dev.txt.
  6. Installed pip phylib and pip klusta within the phy2 environment.

However, when trying to install klustakwik2, I get a long list of (compiling) errors after my PC returns the message building wheel for klustakwik2 <setup.py> .... See attached text file with the error message copied. So far, I have tried to install different versions of Visual Studio Build Tools (2013, 2015, 2017, 2019) and different versions of python, re-installing Anaconda3 and Miniconda3, but it does not seem to help. fail_build_klustakwik2_error.txt

Some highlighted errors:

I am able to load in the .KWIK file into the phy2 GUI. However, I am not able to add FeatureView into the GUI (cannot create FeatureView), most probably because klustakwik2 is not installed. See: https://github.com/cortex-lab/phy/issues/1071#issuecomment-778118682.

Any help would be greatly appreciated!