aidenlab / straw

Extract data quickly from Juicebox via straw
MIT License
61 stars 36 forks source link

Could not install on windows. #115

Open liudonghua123 opened 1 year ago

liudonghua123 commented 1 year ago

Describe the bug I tried to use pip to install this package on windows, but I got the following errors.

To Reproduce Steps to reproduce the behavior:

  1. set INCLUDE=%INCLUDE%;D:\apps\anaconda3\Library\include
  2. python -m pip install -U hic-straw

Expected behavior The installation should fine.

Screenshots

(plus) D:\code\python\hicplus>set INCLUDE=%INCLUDE%;D:\apps\anaconda3\Library\include

(plus) D:\code\python\hicplus>python -m pip install -U hic-straw
Requirement already satisfied: hic-straw in d:\apps\anaconda3\envs\plus\lib\site-packages (0.0.6)
Collecting hic-straw
  Using cached hic-straw-1.3.1.tar.gz (18 kB)
  Preparing metadata (setup.py) ... done
Collecting pybind11>=2.4
  Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)
Building wheels for collected packages: hic-straw
  Building wheel for hic-straw (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [40 lines of output]
      D:\apps\anaconda3\envs\plus\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      running bdist_wheel
      running build
      running build_ext
      building 'hicstraw' extension
      creating build
      creating build\temp.win-amd64-3.8
      creating build\temp.win-amd64-3.8\Release
      creating build\temp.win-amd64-3.8\Release\src
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\liu.d.h\appdata\local\temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\.eggs\pybind11-2.10.0-py3.8.egg\pybind11\include -Ic:\users\liu.d.h\appdata\local\temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\.eggs\pybind11-2.10.0-py3.8.egg\pybind11\include -ID:\apps\anaconda3\envs\plus\include -ID:\apps\anaconda3\envs\plus\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I%INCLUDE% -ID:\apps\anaconda3\Library\include -ID:\apps\anaconda3\Library\include /EHsc /Tpsrc/straw.cpp /Fobuild\temp.win-amd64-3.8\Release\src/straw.obj /EHsc /DVERSION_INFO=\\\"1.3.1\\\"
      straw.cpp
      C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\src\straw.h(74): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data
      src/straw.cpp(338): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data
      src/straw.cpp(340): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data
      src/straw.cpp(1023): warning C4244: 'return': conversion from 'uint64_t' to 'long', possible loss of data      src/straw.cpp(1286): warning C4244: 'argument': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1396): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1397): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1398): error C2131: expression did not evaluate to a constant
      src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime
      src/straw.cpp(1398): note: see usage of 'numRows'
      src/straw.cpp(1398): error C2131: expression did not evaluate to a constant
      src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime
      src/straw.cpp(1398): note: see usage of 'numCols'
      src/straw.cpp(1401): error C3863: array type 'float [numRows][numCols]' is not assignable
      src/straw.cpp(1407): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1408): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1410): error C3863: array type 'float [numRows][numCols]' is not assignable
      src/straw.cpp(1413): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1414): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1416): error C3863: array type 'float [numRows][numCols]' is not assignable
      src/straw.cpp(1526): error C2131: expression did not evaluate to a constant
      src/straw.cpp(1526): note: failure was caused by a read of a variable outside its lifetime
      src/straw.cpp(1526): note: see usage of 'this'
      src/straw.cpp(1530): error C3863: array type 'chromosome ['function']' is not assignable
      src/straw.cpp(1690): error C2017: illegal escape sequence
      src/straw.cpp(1690): error C2001: newline in constant
      src/straw.cpp(1694): error C2143: syntax error: missing ';' before '}'
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for hic-straw
  Running setup.py clean for hic-straw
Failed to build hic-straw
Installing collected packages: pybind11, hic-straw
  Attempting uninstall: hic-straw
    Found existing installation: hic-straw 0.0.6
    Uninstalling hic-straw-0.0.6:
      Successfully uninstalled hic-straw-0.0.6
  Running setup.py install for hic-straw ... error
  error: subprocess-exited-with-error

  × Running setup.py install for hic-straw did not run successfully.
  │ exit code: 1
  ╰─> [40 lines of output]
      running install
      D:\apps\anaconda3\envs\plus\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      building 'hicstraw' extension
      creating build
      creating build\temp.win-amd64-3.8
      creating build\temp.win-amd64-3.8\Release
      creating build\temp.win-amd64-3.8\Release\src
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\apps\anaconda3\envs\plus\lib\site-packages\pybind11\include -ID:\apps\anaconda3\envs\plus\lib\site-packages\pybind11\include -ID:\apps\anaconda3\envs\plus\include -ID:\apps\anaconda3\envs\plus\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I%INCLUDE% -ID:\apps\anaconda3\Library\include -ID:\apps\anaconda3\Library\include /EHsc /Tpsrc/straw.cpp /Fobuild\temp.win-amd64-3.8\Release\src/straw.obj /EHsc /DVERSION_INFO=\\\"1.3.1\\\"
      straw.cpp
      C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\src\straw.h(74): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data
      src/straw.cpp(338): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data
      src/straw.cpp(340): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data
      src/straw.cpp(1023): warning C4244: 'return': conversion from 'uint64_t' to 'long', possible loss of data      src/straw.cpp(1286): warning C4244: 'argument': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1396): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1397): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1398): error C2131: expression did not evaluate to a constant
      src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime
      src/straw.cpp(1398): note: see usage of 'numRows'
      src/straw.cpp(1398): error C2131: expression did not evaluate to a constant
      src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime
      src/straw.cpp(1398): note: see usage of 'numCols'
      src/straw.cpp(1401): error C3863: array type 'float [numRows][numCols]' is not assignable
      src/straw.cpp(1407): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1408): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1410): error C3863: array type 'float [numRows][numCols]' is not assignable
      src/straw.cpp(1413): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1414): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data
      src/straw.cpp(1416): error C3863: array type 'float [numRows][numCols]' is not assignable
      src/straw.cpp(1526): error C2131: expression did not evaluate to a constant
      src/straw.cpp(1526): note: failure was caused by a read of a variable outside its lifetime
      src/straw.cpp(1526): note: see usage of 'this'
      src/straw.cpp(1530): error C3863: array type 'chromosome ['function']' is not assignable
      src/straw.cpp(1690): error C2017: illegal escape sequence
      src/straw.cpp(1690): error C2001: newline in constant
      src/straw.cpp(1694): error C2143: syntax error: missing ';' before '}'
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  WARNING: No metadata found in d:\apps\anaconda3\envs\plus\lib\site-packages
  Rolling back uninstall of hic-straw
  Moving to d:\apps\anaconda3\envs\plus\lib\site-packages\hic_straw-0.0.6.dist-info\
   from D:\apps\anaconda3\envs\plus\Lib\site-packages\~ic_straw-0.0.6.dist-info
  Moving to d:\apps\anaconda3\envs\plus\lib\site-packages\straw\
   from D:\apps\anaconda3\envs\plus\Lib\site-packages\~traw
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> hic-straw

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

(plus) D:\code\python\hicplus>

Desktop (please complete the following information):

Additional context See https://github.com/aidenlab/straw/issues/112#issuecomment-1222599863 also.

sa501428 commented 1 year ago

What are the python and c++ versions on your system?

On Mon, Aug 22, 2022, 8:47 PM liudonghua @.***> wrote:

Describe the bug I tried to use pip to install this package on windows, but I got the following errors.

To Reproduce Steps to reproduce the behavior:

  1. set INCLUDE=%INCLUDE%;D:\apps\anaconda3\Library\include
  2. python -m pip install -U hic-straw

Expected behavior The installation should fine.

Screenshots

(plus) D:\code\python\hicplus>set INCLUDE=%INCLUDE%;D:\apps\anaconda3\Library\include

(plus) D:\code\python\hicplus>python -m pip install -U hic-straw

Requirement already satisfied: hic-straw in d:\apps\anaconda3\envs\plus\lib\site-packages (0.0.6)

Collecting hic-straw

Using cached hic-straw-1.3.1.tar.gz (18 kB)

Preparing metadata (setup.py) ... done

Collecting pybind11>=2.4

Using cached pybind11-2.10.0-py3-none-any.whl (213 kB)

Building wheels for collected packages: hic-straw

Building wheel for hic-straw (setup.py) ... error

error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.

│ exit code: 1

╰─> [40 lines of output]

  D:\apps\anaconda3\envs\plus\lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.

    warnings.warn(

  running bdist_wheel

  running build

  running build_ext

  building 'hicstraw' extension

  creating build

  creating build\temp.win-amd64-3.8

  creating build\temp.win-amd64-3.8\Release

  creating build\temp.win-amd64-3.8\Release\src

  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\liu.d.h\appdata\local\temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\.eggs\pybind11-2.10.0-py3.8.egg\pybind11\include -Ic:\users\liu.d.h\appdata\local\temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\.eggs\pybind11-2.10.0-py3.8.egg\pybind11\include -ID:\apps\anaconda3\envs\plus\include -ID:\apps\anaconda3\envs\plus\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I%INCLUDE% -ID:\apps\anaconda3\Library\include -ID:\apps\anaconda3\Library\include /EHsc /Tpsrc/straw.cpp /Fobuild\temp.win-amd64-3.8\Release\src/straw.obj /EHsc /DVERSION_INFO=\\\"1.3.1\\\"

  straw.cpp

  C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\src\straw.h(74): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data

  src/straw.cpp(338): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data

  src/straw.cpp(340): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data

  src/straw.cpp(1023): warning C4244: 'return': conversion from 'uint64_t' to 'long', possible loss of data      src/straw.cpp(1286): warning C4244: 'argument': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1396): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1397): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1398): error C2131: expression did not evaluate to a constant

  src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime

  src/straw.cpp(1398): note: see usage of 'numRows'

  src/straw.cpp(1398): error C2131: expression did not evaluate to a constant

  src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime

  src/straw.cpp(1398): note: see usage of 'numCols'

  src/straw.cpp(1401): error C3863: array type 'float [numRows][numCols]' is not assignable

  src/straw.cpp(1407): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1408): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1410): error C3863: array type 'float [numRows][numCols]' is not assignable

  src/straw.cpp(1413): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1414): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1416): error C3863: array type 'float [numRows][numCols]' is not assignable

  src/straw.cpp(1526): error C2131: expression did not evaluate to a constant

  src/straw.cpp(1526): note: failure was caused by a read of a variable outside its lifetime

  src/straw.cpp(1526): note: see usage of 'this'

  src/straw.cpp(1530): error C3863: array type 'chromosome ['function']' is not assignable

  src/straw.cpp(1690): error C2017: illegal escape sequence

  src/straw.cpp(1690): error C2001: newline in constant

  src/straw.cpp(1694): error C2143: syntax error: missing ';' before '}'

  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

ERROR: Failed building wheel for hic-straw

Running setup.py clean for hic-straw

Failed to build hic-straw

Installing collected packages: pybind11, hic-straw

Attempting uninstall: hic-straw

Found existing installation: hic-straw 0.0.6

Uninstalling hic-straw-0.0.6:

  Successfully uninstalled hic-straw-0.0.6

Running setup.py install for hic-straw ... error

error: subprocess-exited-with-error

× Running setup.py install for hic-straw did not run successfully.

│ exit code: 1

╰─> [40 lines of output]

  running install

  D:\apps\anaconda3\envs\plus\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

    warnings.warn(

  running build

  running build_ext

  building 'hicstraw' extension

  creating build

  creating build\temp.win-amd64-3.8

  creating build\temp.win-amd64-3.8\Release

  creating build\temp.win-amd64-3.8\Release\src

  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -ID:\apps\anaconda3\envs\plus\lib\site-packages\pybind11\include -ID:\apps\anaconda3\envs\plus\lib\site-packages\pybind11\include -ID:\apps\anaconda3\envs\plus\include -ID:\apps\anaconda3\envs\plus\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.19041.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -I%INCLUDE% -ID:\apps\anaconda3\Library\include -ID:\apps\anaconda3\Library\include /EHsc /Tpsrc/straw.cpp /Fobuild\temp.win-amd64-3.8\Release\src/straw.obj /EHsc /DVERSION_INFO=\\\"1.3.1\\\"

  straw.cpp

  C:\Users\Liu.D.H\AppData\Local\Temp\pip-install-06_988jz\hic-straw_aa7b592d70914d3b886a3aa3d4054df1\src\straw.h(74): warning C4244: 'argument': conversion from '__int64' to 'int', possible loss of data

  src/straw.cpp(338): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data

  src/straw.cpp(340): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data

  src/straw.cpp(1023): warning C4244: 'return': conversion from 'uint64_t' to 'long', possible loss of data      src/straw.cpp(1286): warning C4244: 'argument': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1396): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1397): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1398): error C2131: expression did not evaluate to a constant

  src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime

  src/straw.cpp(1398): note: see usage of 'numRows'

  src/straw.cpp(1398): error C2131: expression did not evaluate to a constant

  src/straw.cpp(1398): note: failure was caused by a read of a variable outside its lifetime

  src/straw.cpp(1398): note: see usage of 'numCols'

  src/straw.cpp(1401): error C3863: array type 'float [numRows][numCols]' is not assignable

  src/straw.cpp(1407): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1408): warning C4244: 'initializing': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1410): error C3863: array type 'float [numRows][numCols]' is not assignable

  src/straw.cpp(1413): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1414): warning C4244: '=': conversion from 'int64_t' to 'int32_t', possible loss of data

  src/straw.cpp(1416): error C3863: array type 'float [numRows][numCols]' is not assignable

  src/straw.cpp(1526): error C2131: expression did not evaluate to a constant

  src/straw.cpp(1526): note: failure was caused by a read of a variable outside its lifetime

  src/straw.cpp(1526): note: see usage of 'this'

  src/straw.cpp(1530): error C3863: array type 'chromosome ['function']' is not assignable

  src/straw.cpp(1690): error C2017: illegal escape sequence

  src/straw.cpp(1690): error C2001: newline in constant

  src/straw.cpp(1694): error C2143: syntax error: missing ';' before '}'

  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.33.31629\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

WARNING: No metadata found in d:\apps\anaconda3\envs\plus\lib\site-packages

Rolling back uninstall of hic-straw

Moving to d:\apps\anaconda3\envs\plus\lib\site-packages\hic_straw-0.0.6.dist-info\

from D:\apps\anaconda3\envs\plus\Lib\site-packages\~ic_straw-0.0.6.dist-info

Moving to d:\apps\anaconda3\envs\plus\lib\site-packages\straw\

from D:\apps\anaconda3\envs\plus\Lib\site-packages\~traw

error: legacy-install-failure

× Encountered error while trying to install package.

╰─> hic-straw

note: This is an issue with the package mentioned above, not pip.

hint: See above for output from the failure.

(plus) D:\code\python\hicplus>

Desktop (please complete the following information):

  • OS: Microsoft Windows [Version 10.0.22000.856]
  • Version 1.3.1 from pypi

Additional context See #112 (comment) https://github.com/aidenlab/straw/issues/112#issuecomment-1222599863 also.

— Reply to this email directly, view it on GitHub https://github.com/aidenlab/straw/issues/115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRT23PEWOM25X4UEL5OEJLV2QUS3ANCNFSM57JVIBBQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

liudonghua123 commented 1 year ago

@sa501428 hi, I use python 3.10.2 x64 and vs 2022 on windows 11.

fazhang-master commented 11 months ago

"I have the same question. Has it been resolved?"