Code Monkey home page Code Monkey logo

Comments (7)

Hao228 avatar Hao228 commented on June 9, 2024 1

Hi @xiaxilin , I followed the way in (https://pypims.readthedocs.io/en/latest/quickstart.html#installing-on-windows), but I get the error:嗨@xiaxilin,我按照(https://pypims.readthedocs.io/en/latest/quickstart.html#installing-on-windows)的方式操作,但是我得到了错误:

running install
D:\miniconda3\envs\pims\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
D:\miniconda3\envs\pims\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
creating pypims.egg-info
writing pypims.egg-info\PKG-INFO
writing dependency_links to pypims.egg-info\dependency_links.txt
writing requirements to pypims.egg-info\requires.txt
writing top-level names to pypims.egg-info\top_level.txt
writing manifest file 'pypims.egg-info\SOURCES.txt'
reading manifest file 'pypims.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.rst'
warning: no files found matching '*.npy' under directory 'pypims'
warning: no files found matching '*.asc' under directory 'pypims'
adding license file 'LICENSE.txt'
adding license file 'authors.md'
writing manifest file 'pypims.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\pypims
copying pypims\version.py -> build\lib.win-amd64-cpython-37\pypims
copying pypims\__init__.py -> build\lib.win-amd64-cpython-37\pypims
creating build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Boundary.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\demo_functions.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\grid_show.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\indep_functions.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\InputHipims.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Landcover.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\OutputHipims.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Rainfall.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\rainfall_processing.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Raster.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\spatial_analysis.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Summary.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\__init__.py -> build\lib.win-amd64-cpython-37\pypims\IO
creating build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\DEM.gz -> build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\landcover.gz -> build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\rain_mask.gz -> build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\rain_source.csv -> build\lib.win-amd64-cpython-37\pypims\IO\sample
running build_ext
The cuda toolkit root path is
cmake "E:\PyCode\pycharm\Other Project\pypims_learn\pypims" "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\lib.win-amd64-cpython-37\pypims" -A x64
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.37.32822.0
-- The CXX compiler identification is MSVC 19.37.32822.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at pypims/CMakeLists.txt:42:
  Syntax Warning in cmake code at column 22

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pypims/CMakeLists.txt:1 (find_package):
  Policy CMP0146 is not set: The FindCUDA module is removed.  Run "cmake
  --help-policy CMP0146" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.2 (found version "12.2") 
CXX  Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc/Zi
NVCC Flags: -arch=sm_35--expt-extended-lambda
CMake Warning (dev) at pypims/CMakeLists.txt:20 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: D:/miniconda3/envs/pims/python.exe (found version "3.7.1") 
CMake Warning (dev) at pypims/CMakeLists.txt:21 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: D:/miniconda3/envs/pims/libs/python37.lib (found version "3.7.1")
适用于 .NET Framework MSBuild 版本 17.7.2+d6990bcfa

  1>Checking Build System
  1>Creating directories for 'pybind11_sources-populate'
  Performing download step (git clone) for 'pybind11_sources-populate'
  Cloning into 'pybind11_sources-src'...
  fatal: unable to access 'https://github.com/pybind/pybind11.git/': Recv failure: Connection was reset
  Cloning into 'pybind11_sources-src'...
  fatal: unable to access 'https://github.com/pybind/pybind11.git/': Failed to connect to github.com port 443 after 21054 ms: Couldn't connect to server
  Cloning into 'pybind11_sources-src'...
  fatal: unable to access 'https://github.com/pybind/pybind11.git/': Failed to connect to github.com port 443 after 21059 ms: Couldn't connect to server
  -- Had to git clone more than once: 3 times.
  CMake Error at pybind11_sources-subbuild/pybind11_sources-populate-prefix/tmp/pybind11_sources-populate-gitclone.cmake:39 (message):
    Failed to clone repository: 'https://github.com/pybind/pybind11.git'


D:\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(249,5): error MSB8066: “E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\tem
p.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-download.rule;E:\PyCode\pycharm\Other Project\py
pims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-update.rule;E:\PyCode
\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-popul
ate-patch.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff
5\pybind11_sources-populate-configure.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\878
18e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-build.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources
-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-install.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Rele
ase\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-test.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.wi
n-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\85d44322a5083d791e5a060f16841afb\pybind11_sources-populate-complete.rule;E:\PyCode\pycharm\Other Project\pypims
_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\d05674d655e162ab0b004291dee87600\pybind11_sources-populate.rule;E:\PyCode\pycharm\Ot
her Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeLists.txt”的自定义生成已退出,代码为 1。 [E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate.vcxproj]

CMake Error at D:/miniconda3/envs/pims/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1662 (message):
  Build step for pybind11_sources failed: 1
Call Stack (most recent call first):
  D:/miniconda3/envs/pims/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1802:EVAL:2 (__FetchContent_directPopulate)
  D:/miniconda3/envs/pims/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1802 (cmake_language)
  pypims/CMakeLists.txt:34 (FetchContent_Populate)


-- Configuring incomplete, errors occurred!
error: command 'D:\\miniconda3\\envs\\pims\\Scripts\\cmake.exe' failed with exit code 1

My device is python 3.7, cuda 10.1, with vs studio我的设备是python3.7,cuda10.1,与vs工作室

I meet the same issue, and this may help you.

from pypims.

xiaxilin avatar xiaxilin commented on June 9, 2024

Can you provide more information? Such as OS version. I am afraid that there are some known issues with installations on Windows, which are related to some of the dependent packages such as GDAL. I would recommend installing it on Linux.

from pypims.

arjunmahe-work avatar arjunmahe-work commented on June 9, 2024

@xiaxilin. Thanks for the reply. I am working on windows 10

This is the error am facing:

(fm) PS C:\Users\rssky> pip install pypims
Collecting pypims
Using cached pypims-0.0.3.0.tar.gz (810 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (1.19.5)
Requirement already satisfied: scipy in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (1.5.4)
Requirement already satisfied: matplotlib in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (3.3.4)
Requirement already satisfied: imageio in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (2.15.0)
Requirement already satisfied: pandas in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (1.1.5)
Requirement already satisfied: pyshp in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (2.3.0)
Requirement already satisfied: fiona in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pypims) (1.8.20)
Requirement already satisfied: attrs>=17 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (21.4.0)
Requirement already satisfied: certifi in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (2020.6.20)
Requirement already satisfied: click>=4.0 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (8.0.4)
Requirement already satisfied: cligj>=0.5 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (0.7.2)
Requirement already satisfied: click-plugins>=1.0 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (1.1.1)
Requirement already satisfied: six>=1.7 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (1.16.0)
Requirement already satisfied: munch in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (2.5.0)
Requirement already satisfied: setuptools in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from fiona->pypims) (59.6.0)
Requirement already satisfied: pillow>=8.3.2 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from imageio->pypims) (8.4.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from matplotlib->pypims) (2.8.2)
Requirement already satisfied: cycler>=0.10 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from matplotlib->pypims) (0.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from matplotlib->pypims) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from matplotlib->pypims) (3.0.9)
Requirement already satisfied: pytz>=2017.2 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from pandas->pypims) (2022.1)
Requirement already satisfied: colorama in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from click>=4.0->fiona->pypims) (0.4.5)
Requirement already satisfied: importlib-metadata in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from click>=4.0->fiona->pypims) (4.8.3)
Requirement already satisfied: zipp>=0.5 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from importlib-metadata->click>=4.0->fiona->pypims) (3.6.0)
Requirement already satisfied: typing-extensions>=3.6.4 in c:\users\rssky\anaconda3\envs\fm\lib\site-packages (from importlib-metadata->click>=4.0->fiona->pypims) (4.1.1)
Building wheels for collected packages: pypims
Building wheel for pypims (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\rssky\anaconda3\envs\fm\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\setup.py'"'"'; file='"'"'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\rssky\AppData\Local\Temp\pip-wheel-4f1q_pny'
cwd: C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf
Complete output (74 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\pypims
copying pypims\version.py -> build\lib.win-amd64-3.6\pypims
copying pypims_init_.py -> build\lib.win-amd64-3.6\pypims
creating build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Boundary.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\demo_functions.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\grid_show.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\indep_functions.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\InputHipims.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Landcover.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\OutputHipims.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Rainfall.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\rainfall_processing.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Raster.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\spatial_analysis.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Summary.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO_init_.py -> build\lib.win-amd64-3.6\pypims\IO
creating build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\DEM.gz -> build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\landcover.gz -> build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\rain_mask.gz -> build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\rain_source.csv -> build\lib.win-amd64-3.6\pypims\IO\sample
running build_ext
The cuda toolkit root path is
C:\Users\rssky\anaconda3\envs\fm\Library\bin\cmake.exe C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\lib.win-amd64-3.6\pypims -A x64
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.32.31332.0
-- The CXX compiler identification is MSVC 19.32.31332.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at pypims/CMakeLists.txt:42:
Syntax Warning in cmake code at column 22

Argument not separated from preceding token by whitespace.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7 (found version "11.7")
CXX Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc/Zi
NVCC Flags: -arch=sm_35--expt-extended-lambda
-- Found PythonInterp: C:/Users/rssky/anaconda3/envs/fm/python.exe (found version "3.6.13")
-- Found PythonLibs: C:/Users/rssky/anaconda3/envs/fm/libs/python36.lib (found version "3.6.13")
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(524,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release_deps\pybind11_sources-subbuild\ZERO_CHECK.vcxproj]
Checking Build System
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(524,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release_deps\pybind11_sources-subbuild\pybind11_sources-populate.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1171,14): error MSB4023: Cannot evaluate the item metadata "%(RootDir)". The item metadata "%(FullPath)" cannot be applied to the path "C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release_deps\pybind11_sources-subbuild\pybind11_sources-populate-prefix\src\pybind11_sources-populate-stamp\Debug\pybind11_sources-populate-mkdir". Path: C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release_deps\pybind11_sources-subbuild\pybind11_sources-populate-prefix\src\pybind11_sources-populate-stamp\Debug\pybind11_sources-populate-mkdir exceeds the OS max path limit. The fully qualified file name must be less than 260 characters. [C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release_deps\pybind11_sources-subbuild\pybind11_sources-populate.vcxproj]

CMake Error at C:/Users/rssky/anaconda3/envs/fm/Library/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message):
Build step for pybind11_sources failed: 1
Call Stack (most recent call first):
C:/Users/rssky/anaconda3/envs/fm/Library/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
C:/Users/rssky/anaconda3/envs/fm/Library/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
pypims/CMakeLists.txt:34 (FetchContent_Populate)

-- Configuring incomplete, errors occurred!
See also "C:/Users/rssky/AppData/Local/Temp/pip-install-tmti919n/pypims_076947a8057a48fd9ef72e3bc07069cf/build/temp.win-amd64-3.6/Release/CMakeFiles/CMakeOutput.log".
error: command 'C:\Users\rssky\anaconda3\envs\fm\Library\bin\cmake.exe' failed with exit status 1

ERROR: Failed building wheel for pypims
Running setup.py clean for pypims
Failed to build pypims
Installing collected packages: pypims
Running setup.py install for pypims ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\rssky\anaconda3\envs\fm\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\setup.py'"'"'; file='"'"'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rssky\AppData\Local\Temp\pip-record-c70d68ml\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\rssky\anaconda3\envs\fm\Include\pypims'
cwd: C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf
Complete output (75 lines):
running install
c:\users\rssky\anaconda3\envs\fm\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_py
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\pypims
copying pypims\version.py -> build\lib.win-amd64-3.6\pypims
copying pypims_init_.py -> build\lib.win-amd64-3.6\pypims
creating build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Boundary.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\demo_functions.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\grid_show.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\indep_functions.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\InputHipims.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Landcover.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\OutputHipims.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Rainfall.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\rainfall_processing.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Raster.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\spatial_analysis.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO\Summary.py -> build\lib.win-amd64-3.6\pypims\IO
copying pypims\IO_init_.py -> build\lib.win-amd64-3.6\pypims\IO
creating build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\DEM.gz -> build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\landcover.gz -> build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\rain_mask.gz -> build\lib.win-amd64-3.6\pypims\IO\sample
copying pypims\IO\sample\rain_source.csv -> build\lib.win-amd64-3.6\pypims\IO\sample
running build_ext
The cuda toolkit root path is
C:\Users\rssky\anaconda3\envs\fm\Library\bin\cmake.exe C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\lib.win-amd64-3.6\pypims -A x64
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
-- The C compiler identification is MSVC 19.32.31332.0
-- The CXX compiler identification is MSVC 19.32.31332.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at pypims/CMakeLists.txt:42:
Syntax Warning in cmake code at column 22

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v11.7 (found version "11.7")
CXX  Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc/Zi
NVCC Flags: -arch=sm_35--expt-extended-lambda
-- Found PythonInterp: C:/Users/rssky/anaconda3/envs/fm/python.exe (found version "3.6.13")
-- Found PythonLibs: C:/Users/rssky/anaconda3/envs/fm/libs/python36.lib (found version "3.6.13")
Microsoft (R) Build Engine version 17.2.1+52cd2da31 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(524,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\ZERO_CHECK.vcxproj]
  Checking Build System
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(524,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(1171,14): error MSB4023: Cannot evaluate the item metadata "%(RootDir)". The item metadata "%(FullPath)" cannot be applied to the path "C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate-prefix\src\pybind11_sources-populate-stamp\Debug\pybind11_sources-populate-mkdir". Path: C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate-prefix\src\pybind11_sources-populate-stamp\Debug\pybind11_sources-populate-mkdir exceeds the OS max path limit. The fully qualified file name must be less than 260 characters. [C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate.vcxproj]

CMake Error at C:/Users/rssky/anaconda3/envs/fm/Library/share/cmake-3.22/Modules/FetchContent.cmake:1087 (message):
  Build step for pybind11_sources failed: 1
Call Stack (most recent call first):
  C:/Users/rssky/anaconda3/envs/fm/Library/share/cmake-3.22/Modules/FetchContent.cmake:1216:EVAL:2 (__FetchContent_directPopulate)
  C:/Users/rssky/anaconda3/envs/fm/Library/share/cmake-3.22/Modules/FetchContent.cmake:1216 (cmake_language)
  pypims/CMakeLists.txt:34 (FetchContent_Populate)


-- Configuring incomplete, errors occurred!
See also "C:/Users/rssky/AppData/Local/Temp/pip-install-tmti919n/pypims_076947a8057a48fd9ef72e3bc07069cf/build/temp.win-amd64-3.6/Release/CMakeFiles/CMakeOutput.log".
error: command 'C:\\Users\\rssky\\anaconda3\\envs\\fm\\Library\\bin\\cmake.exe' failed with exit status 1
----------------------------------------

ERROR: Command errored out with exit status 1: 'c:\users\rssky\anaconda3\envs\fm\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\setup.py'"'"'; file='"'"'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\rssky\AppData\Local\Temp\pip-record-c70d68ml\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\rssky\anaconda3\envs\fm\Include\pypims' Check the logs for full command output.
Traceback (most recent call last):
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 365, in exit
if cb(*exc_details):
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 284, in exit_wrapper
return cm_exit(cm, *exc_details)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\temp_dir.py", line 156, in exit
self.cleanup()
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\temp_dir.py", line 173, in cleanup
rmtree(self.path)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 326, in wrapped_f
return self(f, *args, **kw)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 406, in call
do = self.iter(retry_state=retry_state)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init_.py", line 362, in iter
raise retry_exc.reraise()
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init_.py", line 195, in reraise
raise self.last_attempt.result()
File "c:\users\rssky\anaconda3\envs\fm\lib\concurrent\futures_base.py", line 425, in result
return self.__get_result()
File "c:\users\rssky\anaconda3\envs\fm\lib\concurrent\futures_base.py", line 384, in __get_result
raise self.exception
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 409, in call
result = fn(*args, **kwargs)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\misc.py", line 126, in rmtree
shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 500, in rmtree
return _rmtree_unsafe(path, onerror)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 390, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 390, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 390, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
[Previous line repeated 5 more times]
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 399, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 397, in _rmtree_unsafe
os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate-prefix\src\pybind11_sources-populate-stamp'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\rssky\anaconda3\envs\fm\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\rssky\anaconda3\envs\fm\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\rssky\anaconda3\envs\fm\Scripts\pip.exe_main
.py", line 9, in
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\cli\main.py", line 70, in main
return command.main(cmd_args)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\cli\base_command.py", line 98, in main
return self._main(args)
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 88, in exit
next(self.gen)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\cli\command_context.py", line 20, in main_context
yield
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 380, in exit
raise exc_details[1]
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 99, in exit
self.gen.throw(type, value, traceback)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\temp_dir.py", line 70, in tempdir_registry
yield _tempdir_registry
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 365, in exit
if cb(*exc_details):
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 284, in exit_wrapper
return cm_exit(cm, *exc_details)
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 88, in exit
next(self.gen)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\temp_dir.py", line 36, in global_tempdir_manager
tempdir_manager = old_tempdir_manager
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 380, in exit
raise exc_details[1]
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 365, in exit
if cb(*exc_details):
File "c:\users\rssky\anaconda3\envs\fm\lib\contextlib.py", line 284, in exit_wrapper
return cm_exit(cm, *exc_details)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\temp_dir.py", line 156, in exit
self.cleanup()
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\temp_dir.py", line 173, in cleanup
rmtree(self.path)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 326, in wrapped_f
return self(f, *args, **kw)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 406, in call
do = self.iter(retry_state=retry_state)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 362, in iter
raise retry_exc.reraise()
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 195, in reraise
raise self.last_attempt.result()
File "c:\users\rssky\anaconda3\envs\fm\lib\concurrent\futures_base.py", line 425, in result
return self.__get_result()
File "c:\users\rssky\anaconda3\envs\fm\lib\concurrent\futures_base.py", line 384, in __get_result
raise self.exception
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_vendor\tenacity_init
.py", line 409, in call
result = fn(*args, **kwargs)
File "c:\users\rssky\anaconda3\envs\fm\lib\site-packages\pip_internal\utils\misc.py", line 126, in rmtree
shutil.rmtree(dir, ignore_errors=ignore_errors, onerror=rmtree_errorhandler)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 500, in rmtree
return _rmtree_unsafe(path, onerror)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 390, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 390, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 390, in _rmtree_unsafe
_rmtree_unsafe(fullname, onerror)
[Previous line repeated 6 more times]
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 399, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File "c:\users\rssky\anaconda3\envs\fm\lib\shutil.py", line 397, in _rmtree_unsafe
os.rmdir(path)
OSError: [WinError 145] The directory is not empty: 'C:\Users\rssky\AppData\Local\Temp\pip-install-tmti919n\pypims_076947a8057a48fd9ef72e3bc07069cf\build\temp.win-amd64-3.6\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate-prefix\src\pybind11_sources-populate-stamp'

from pypims.

xiaxilin avatar xiaxilin commented on June 9, 2024

Hi, I have managed to find a way to install on Windows, the full steps are updated in the online document. Hope this is helpful

https://pypims.readthedocs.io/en/latest/quickstart.html#installing-on-windows

from pypims.

arjunmahe-work avatar arjunmahe-work commented on June 9, 2024

from pypims.

xiaxilin avatar xiaxilin commented on June 9, 2024

from pypims.

chooron avatar chooron commented on June 9, 2024

Hi @xiaxilin , I followed the way in (https://pypims.readthedocs.io/en/latest/quickstart.html#installing-on-windows), but I get the error:

running install
D:\miniconda3\envs\pims\lib\site-packages\setuptools\command\install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  setuptools.SetuptoolsDeprecationWarning,
D:\miniconda3\envs\pims\lib\site-packages\setuptools\command\easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  EasyInstallDeprecationWarning,
running bdist_egg
running egg_info
creating pypims.egg-info
writing pypims.egg-info\PKG-INFO
writing dependency_links to pypims.egg-info\dependency_links.txt
writing requirements to pypims.egg-info\requires.txt
writing top-level names to pypims.egg-info\top_level.txt
writing manifest file 'pypims.egg-info\SOURCES.txt'
reading manifest file 'pypims.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'README.rst'
warning: no files found matching '*.npy' under directory 'pypims'
warning: no files found matching '*.asc' under directory 'pypims'
adding license file 'LICENSE.txt'
adding license file 'authors.md'
writing manifest file 'pypims.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\pypims
copying pypims\version.py -> build\lib.win-amd64-cpython-37\pypims
copying pypims\__init__.py -> build\lib.win-amd64-cpython-37\pypims
creating build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Boundary.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\demo_functions.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\grid_show.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\indep_functions.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\InputHipims.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Landcover.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\OutputHipims.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Rainfall.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\rainfall_processing.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Raster.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\spatial_analysis.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\Summary.py -> build\lib.win-amd64-cpython-37\pypims\IO
copying pypims\IO\__init__.py -> build\lib.win-amd64-cpython-37\pypims\IO
creating build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\DEM.gz -> build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\landcover.gz -> build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\rain_mask.gz -> build\lib.win-amd64-cpython-37\pypims\IO\sample
copying pypims\IO\sample\rain_source.csv -> build\lib.win-amd64-cpython-37\pypims\IO\sample
running build_ext
The cuda toolkit root path is
cmake "E:\PyCode\pycharm\Other Project\pypims_learn\pypims" "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\lib.win-amd64-cpython-37\pypims" -A x64
-- Building for: Visual Studio 17 2022
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22000.
-- The C compiler identification is MSVC 19.37.32822.0
-- The CXX compiler identification is MSVC 19.37.32822.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at pypims/CMakeLists.txt:42:
  Syntax Warning in cmake code at column 22

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pypims/CMakeLists.txt:1 (find_package):
  Policy CMP0146 is not set: The FindCUDA module is removed.  Run "cmake
  --help-policy CMP0146" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v12.2 (found version "12.2") 
CXX  Flags: /DWIN32 /D_WINDOWS /W3 /GR /EHsc/Zi
NVCC Flags: -arch=sm_35--expt-extended-lambda
CMake Warning (dev) at pypims/CMakeLists.txt:20 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: D:/miniconda3/envs/pims/python.exe (found version "3.7.1") 
CMake Warning (dev) at pypims/CMakeLists.txt:21 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonLibs: D:/miniconda3/envs/pims/libs/python37.lib (found version "3.7.1")
适用于 .NET Framework MSBuild 版本 17.7.2+d6990bcfa

  1>Checking Build System
  1>Creating directories for 'pybind11_sources-populate'
  Performing download step (git clone) for 'pybind11_sources-populate'
  Cloning into 'pybind11_sources-src'...
  fatal: unable to access 'https://github.com/pybind/pybind11.git/': Recv failure: Connection was reset
  Cloning into 'pybind11_sources-src'...
  fatal: unable to access 'https://github.com/pybind/pybind11.git/': Failed to connect to github.com port 443 after 21054 ms: Couldn't connect to server
  Cloning into 'pybind11_sources-src'...
  fatal: unable to access 'https://github.com/pybind/pybind11.git/': Failed to connect to github.com port 443 after 21059 ms: Couldn't connect to server
  -- Had to git clone more than once: 3 times.
  CMake Error at pybind11_sources-subbuild/pybind11_sources-populate-prefix/tmp/pybind11_sources-populate-gitclone.cmake:39 (message):
    Failed to clone repository: 'https://github.com/pybind/pybind11.git'


D:\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(249,5): error MSB8066: “E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\tem
p.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-download.rule;E:\PyCode\pycharm\Other Project\py
pims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-update.rule;E:\PyCode
\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-popul
ate-patch.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff
5\pybind11_sources-populate-configure.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\878
18e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-build.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources
-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-install.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Rele
ase\_deps\pybind11_sources-subbuild\CMakeFiles\87818e516471b5f5b9d1b49c4d998ff5\pybind11_sources-populate-test.rule;E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.wi
n-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\85d44322a5083d791e5a060f16841afb\pybind11_sources-populate-complete.rule;E:\PyCode\pycharm\Other Project\pypims
_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeFiles\d05674d655e162ab0b004291dee87600\pybind11_sources-populate.rule;E:\PyCode\pycharm\Ot
her Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\CMakeLists.txt”的自定义生成已退出,代码为 1。 [E:\PyCode\pycharm\Other Project\pypims_learn\pypims\build\temp.win-amd64-cpython-37\Release\_deps\pybind11_sources-subbuild\pybind11_sources-populate.vcxproj]

CMake Error at D:/miniconda3/envs/pims/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1662 (message):
  Build step for pybind11_sources failed: 1
Call Stack (most recent call first):
  D:/miniconda3/envs/pims/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1802:EVAL:2 (__FetchContent_directPopulate)
  D:/miniconda3/envs/pims/Lib/site-packages/cmake/data/share/cmake-3.27/Modules/FetchContent.cmake:1802 (cmake_language)
  pypims/CMakeLists.txt:34 (FetchContent_Populate)


-- Configuring incomplete, errors occurred!
error: command 'D:\\miniconda3\\envs\\pims\\Scripts\\cmake.exe' failed with exit code 1

My device is python 3.7, cuda 10.1, with vs studio

from pypims.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.