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

Error during installation #2

Open
KiraJYQiu opened this issue Sep 25, 2022 · 3 comments
Open

Error during installation #2

KiraJYQiu opened this issue Sep 25, 2022 · 3 comments

Comments

@KiraJYQiu
Copy link

KiraJYQiu commented Sep 25, 2022

Hi developers
I encounter the following error during installation. I already installed "Microsoft C++ Build Tools".

In my computer, I can successfully install sparse_dot_topn, and string-grouper 0.5.0 (specifying version in the package list of Pycharm). Installing the newest version of string-grouper (0.6.1) is not successful due to failing to install this dependency.

@KiraJYQiu
Copy link
Author

Error message

Microsoft Windows [Version 10.0.19044.2006]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Kira>pip install sparse-dot-topn-for-blocks
Collecting sparse-dot-topn-for-blocks
  Using cached sparse_dot_topn_for_blocks-0.3.1.post3.tar.gz (17 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Collecting scipy>=1.2.3
  Using cached scipy-1.9.1-cp310-cp310-win_amd64.whl (38.6 MB)
Requirement already satisfied: setuptools>=42 in d:\program files\python310\lib\site-packages (from sparse-dot-topn-for-blocks) (63.2.0)
Collecting numpy>=1.16.6
  Using cached numpy-1.23.3-cp310-cp310-win_amd64.whl (14.6 MB)
Collecting cython>=0.29.15
  Using cached Cython-0.29.32-py2.py3-none-any.whl (986 kB)
Building wheels for collected packages: sparse-dot-topn-for-blocks
  Building wheel for sparse-dot-topn-for-blocks (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for sparse-dot-topn-for-blocks (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [45 lines of output]
      C:\Users\Kira\AppData\Local\Temp\pip-build-env-lq9ak75x\overlay\Lib\site-packages\setuptools\dist.py:530: UserWarning: Normalizing '0.3.1-3' to '0.3.1.post3'
        warnings.warn(tmpl.format(**locals()))
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-310
      creating build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\awesome_cossim_topn.py -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\__init__.py -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      running egg_info
      writing sparse_dot_topn_for_blocks.egg-info\PKG-INFO
      writing dependency_links to sparse_dot_topn_for_blocks.egg-info\dependency_links.txt
      writing requirements to sparse_dot_topn_for_blocks.egg-info\requires.txt
      writing top-level names to sparse_dot_topn_for_blocks.egg-info\top_level.txt
      reading manifest file 'sparse_dot_topn_for_blocks.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'LICENSE'
      writing manifest file 'sparse_dot_topn_for_blocks.egg-info\SOURCES.txt'
      copying sparse_dot_topn_for_blocks\array_wrappers.pxd -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\array_wrappers.pyx -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\sparse_dot_topn.pyx -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\sparse_dot_topn_parallel.cpp -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\sparse_dot_topn_parallel.h -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\sparse_dot_topn_source.cpp -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\sparse_dot_topn_source.h -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      copying sparse_dot_topn_for_blocks\sparse_dot_topn_threaded.pyx -> build\lib.win-amd64-cpython-310\sparse_dot_topn_for_blocks
      running build_ext
      cythoning ./sparse_dot_topn_for_blocks/array_wrappers.pyx to ./sparse_dot_topn_for_blocks\array_wrappers.cpp
      C:\Users\Kira\AppData\Local\Temp\pip-build-env-lq9ak75x\normal\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\Kira\AppData\Local\Temp\pip-install-co2r_oav\sparse-dot-topn-for-blocks_d59bab1a601b40b9acdd010ae9dba50f\sparse_dot_topn_for_blocks\array_wrappers.pxd
        tree = Parsing.p_module(s, pxd, full_module_name)
      cythoning ./sparse_dot_topn_for_blocks/sparse_dot_topn.pyx to ./sparse_dot_topn_for_blocks\sparse_dot_topn.cpp
      C:\Users\Kira\AppData\Local\Temp\pip-build-env-lq9ak75x\normal\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\Kira\AppData\Local\Temp\pip-install-co2r_oav\sparse-dot-topn-for-blocks_d59bab1a601b40b9acdd010ae9dba50f\sparse_dot_topn_for_blocks\sparse_dot_topn.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      cythoning ./sparse_dot_topn_for_blocks/sparse_dot_topn_threaded.pyx to ./sparse_dot_topn_for_blocks\sparse_dot_topn_threaded.cpp
      C:\Users\Kira\AppData\Local\Temp\pip-build-env-lq9ak75x\normal\Lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\Kira\AppData\Local\Temp\pip-install-co2r_oav\sparse-dot-topn-for-blocks_d59bab1a601b40b9acdd010ae9dba50f\sparse_dot_topn_for_blocks\sparse_dot_topn_threaded.pyx
        tree = Parsing.p_module(s, pxd, full_module_name)
      building 'sparse_dot_topn_for_blocks.array_wrappers' extension
      creating build\temp.win-amd64-cpython-310
      creating build\temp.win-amd64-cpython-310\Release
      creating build\temp.win-amd64-cpython-310\Release\sparse_dot_topn_for_blocks
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-ID:\Program Files\Python310\include" "-ID:\Program Files\Python310\Include" -IC:\Users\Kira\AppData\Local\Temp\pip-build-env-lq9ak75x\normal\Lib\site-packages\numpy\core\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.33.31629\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /EHsc /Tp./sparse_dot_topn_for_blocks\array_wrappers.cpp /Fobuild\temp.win-amd64-cpython-310\Release\./sparse_dot_topn_for_blocks\array_wrappers.obj -Ox
      array_wrappers.cpp
      D:\Program Files\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\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 sparse-dot-topn-for-blocks
Failed to build sparse-dot-topn-for-blocks
ERROR: Could not build wheels for sparse-dot-topn-for-blocks, which is required to install pyproject.toml-based projects

@KiraJYQiu
Copy link
Author

Installed components of "Microsoft C++ Build Tools"

2022-09-25 20-56-21

@anorthr-uncc
Copy link

I was getting a similar issue with sparse_dot_topn (which I believe is the basis for this project). Once I updated to new version, the topn was building okay. But now, as you've stated, topn_for_blocks is not building. Here was the sparse_dot_topn thread:
ing-bank/sparse_dot_topn#60

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

2 participants