phy icon indicating copy to clipboard operation
phy copied to clipboard

Fail installation klustakwik2

Open JudithLim opened this issue 4 years ago • 0 comments

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:

  • error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  • Failed to build klustakwik2 Installing collected packages: klustakwik2 Running setup.py install for klustakwik2 ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\Judith\anaconda3\envs\phy2\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Judith\\AppData\\Local\\Temp\\pip-install-xe0liao6\\klustakwik2_afac62fff8734d218b49a9d42e5acc6e\\setup.py'"'"'; __file__='"'"'C:\\Users\\Judith\\AppData\\Local\\Temp\\pip-install-xe0liao6\\klustakwik2_afac62fff8734d218b49a9d42e5acc6e\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Judith\AppData\Local\Temp\pip-record-1_yn_icl\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Judith\anaconda3\envs\phy2\Include\klustakwik2' cwd: C:\Users\Judith\AppData\Local\Temp\pip-install-xe0liao6\klustakwik2_afac62fff8734d218b49a9d42e5acc6e\

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!

JudithLim avatar Feb 18 '21 15:02 JudithLim