Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install hic-straw on win11 python3.9 #129

Open
fazhang-master opened this issue Sep 16, 2023 · 6 comments
Open

can't install hic-straw on win11 python3.9 #129

fazhang-master opened this issue Sep 16, 2023 · 6 comments

Comments

@fazhang-master
Copy link

(autohic) C:\Users\Administrator>pip install hic-straw -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting hic-straw
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8e/ec/431c76970f8973ea5937a9b5f2d1689a641b3fe6475246a32451274fa2dd/hic-straw-1.3.1.tar.gz (18 kB)
Preparing metadata (setup.py) ... done
Collecting pybind11>=2.4 (from hic-straw)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/06/55/9f73c32dda93fa4f539fafa268f9504e83c489f460c380371d94296126cd/pybind11-2.11.1-py3-none-any.whl (227 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
╰─> [22 lines of output]
I:\conda\envs\autohic\lib\site-packages\setuptools_init_.py:84: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

          ********************************************************************************
          Requirements should be satisfied by a PEP 517 installer.
          If you are using pip, you can try `pip install --use-pep517`.
          ********************************************************************************

  !!
    dist.fetch_build_eggs(dist.setup_requires)
  running bdist_wheel
  running build
  running build_ext
  building 'hicstraw' extension
  creating build
  creating build\temp.win-amd64-cpython-39
  creating build\temp.win-amd64-cpython-39\Release
  creating build\temp.win-amd64-cpython-39\Release\src
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\users\administrator\appdata\local\temp\pip-install-0esd_50t\hic-straw_25cecc52233e4ddb94bfc9a631c3b6c7\.eggs\pybind11-2.10.4-py3.9.egg\pybind11\include -Ic:\users\administrator\appdata\local\temp\pip-install-0esd_50t\hic-straw_25cecc52233e4ddb94bfc9a631c3b6c7\.eggs\pybind11-2.10.4-py3.9.egg\pybind11\include -II:\conda\envs\autohic\include -II:\conda\envs\autohic\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/straw.cpp /Fobuild\temp.win-amd64-cpython-39\Release\src/straw.obj /EHsc /DVERSION_INFO=\\\"1.3.1\\\"
  straw.cpp
  src/straw.cpp(34): fatal error C1083: 无法打开包括文件: “curl/curl.h”: No such file or directory
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\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
ERROR: Could not build wheels for hic-straw, which is required to install pyproject.toml-based projects

@nchernia
Copy link
Contributor

nchernia commented Sep 16, 2023 via email

@fazhang-master
Copy link
Author

(autohic) C:\Users\Administrator>pip install --verbose hic-straw==1.3.1 --use-pep517
Using pip 23.2.1 from I:\conda\envs\autohic\lib\site-packages\pip (python 3.9)
Looking in indexes: https://pypi.douban.com/simple/
Collecting hic-straw==1.3.1
Using cached https://pypi.doubanio.com/packages/8e/ec/431c76970f8973ea5937a9b5f2d1689a641b3fe6475246a32451274fa2dd/hic-straw-1.3.1.tar.gz (18 kB)
Running command pip subprocess to install build dependencies
Looking in indexes: https://pypi.douban.com/simple/
Collecting setuptools>=40.8.0
Using cached https://pypi.doubanio.com/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl (804 kB)
Collecting wheel
Using cached https://pypi.doubanio.com/packages/61/86/cc8d1ff2ca31a312a25a708c891cf9facbad4eae493b3872638db6785eb5/wheel-0.40.0-py3-none-any.whl (64 kB)
Installing collected packages: wheel, setuptools
Successfully installed setuptools-68.0.0 wheel-0.40.0
Installing build dependencies ... done
Running command Getting requirements to build wheel
Getting requirements to build wheel ... done
Running command pip subprocess to install backend dependencies
Looking in indexes: https://pypi.douban.com/simple/
Collecting pybind11>=2.4
Using cached https://pypi.doubanio.com/packages/52/ed/68e989fdac8f352cb6d506fac111ba1e1b74c0ef3660fadeeeeb765bc03c/pybind11-2.10.4-py3-none-any.whl (222 kB)
Installing collected packages: pybind11
Successfully installed pybind11-2.10.4
Installing backend dependencies ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info
writing C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\PKG-INFO
writing dependency_links to C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\dependency_links.txt
writing requirements to C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\requires.txt
writing top-level names to C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\top_level.txt
writing manifest file 'C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw.egg-info\SOURCES.txt'
creating 'C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-uw96mjct\hic_straw-1.3.1.dist-info'
Preparing metadata (pyproject.toml) ... done
Collecting pybind11>=2.4 (from hic-straw==1.3.1)
Using cached https://pypi.doubanio.com/packages/52/ed/68e989fdac8f352cb6d506fac111ba1e1b74c0ef3660fadeeeeb765bc03c/pybind11-2.10.4-py3-none-any.whl (222 kB)
Building wheels for collected packages: hic-straw
Running command Building wheel for hic-straw (pyproject.toml)
running bdist_wheel
running build
running build_ext
building 'hicstraw' extension
creating build
creating build\temp.win-amd64-cpython-39
creating build\temp.win-amd64-cpython-39\Release
creating build\temp.win-amd64-cpython-39\Release\src
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\Administrator\AppData\Local\Temp\pip-build-env-_i4yf4ay\normal\Lib\site-packages\pybind11\include -IC:\Users\Administrator\AppData\Local\Temp\pip-build-env-_i4yf4ay\normal\Lib\site-packages\pybind11\include -II:\conda\envs\autohic\include -II:\conda\envs\autohic\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /Tpsrc/straw.cpp /Fobuild\temp.win-amd64-cpython-39\Release\src/straw.obj /EHsc /DVERSION_INFO=\"1.3.1\"
straw.cpp
src/straw.cpp(34): fatal error C1083: 无法打开包括文件: “curl/curl.h”: No such file or directory
error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.37.32822\bin\HostX86\x64\cl.exe' failed with exit code 2
error: subprocess-exited-with-error

× Building wheel for hic-straw (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'I:\conda\envs\autohic\python.exe' 'I:\conda\envs\autohic\lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py' build_wheel 'C:\Users\Administrator\AppData\Local\Temp\tmpo81ymztw'
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-791d60lq\hic-straw_dc45237ec34143368fcacff6feb26bb9
Building wheel for hic-straw (pyproject.toml) ... error
ERROR: Failed building wheel for hic-straw
Failed to build hic-straw
ERROR: Could not build wheels for hic-straw, which is required to install pyproject.toml-based projects

@fazhang-master
Copy link
Author

fazhang-master commented Sep 16, 2023 via email

@nchernia
Copy link
Contributor

nchernia commented Sep 16, 2023 via email

@fazhang-master
Copy link
Author

fazhang-master commented Sep 16, 2023 via email

@DavidWarrenKatz
Copy link

I am having the same problem on the bridges2 cluster on PSC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants