flatironinstitute / CaImAn

Computational toolbox for large scale Calcium Imaging Analysis, including movie handling, motion correction, source extraction, spike deconvolution and result visualization.
https://caiman.readthedocs.io
GNU General Public License v2.0
640 stars 370 forks source link

Tensorflow-base is corrupted #1159

Closed wkuthsc closed 1 year ago

wkuthsc commented 1 year ago

Please fill in the following for any issues

Your setup:

  1. Operating System (Linux, MacOS, Windows): Windows
  2. Hardware type (x86, ARM..) and RAM: 64bit
  3. Python Version (e.g. 3.9): 3.11.4
  4. Caiman version (e.g. 1.9.12): not installed
  5. Which demo exhibits the problem (if applicable): caiman install pkg can't find tensorflow
  6. How you installed Caiman (pure conda, conda + compile, colab, ..): (base) PS C:\Users\wkrueger> mamba create -n caiman -c conda-forge caiman
  7. Details: My caiman install is halting because it cannot seem to find a compatible tensorflow pkg. I have pasted my error message below. I apologize if I have left anything out. New to the coding world. Thank you in advance!

Downloading and Extracting Packages

Preparing transaction: done Verifying transaction: failed The package for tensorflow-base located at C:\Users\wkrueger\AppData\Local\miniconda3\pkgs\tensorflow-base-2.10.0-mkl_py310h6a7f48e_0 appears to be corrupted. The path 'Lib/site-packages/tensorflow/include/external/llvm-project/mlir/_virtual_includes/AllocationOpInterfaceIncGen/mlir/Dialect/Bufferization/IR/AllocationOpInterface.cpp.inc' specified in the package manifest cannot be found.

pgunn commented 1 year ago

Hello, There are two possible issues (that I'm aware of) that can lead to this.

The first is easy (but a little less likely): Do a conda clean --all and then remove and recreate the environment. See if that helps. Sometimes a goof happens while unpacking things.

The second is to enable long file path support (more annoying to fix, but more likely the issue):

https://lifehacker.com/windows-10-allows-file-names-longer-than-260-characters-1785201032

wkuthsc commented 1 year ago

The long file path support worked. Thanks for the quick response Pat!