How to solve these error :
c:\users\home pc\appdata\local\temp\pip-build-ficc_3vk\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2
Related
I want to install pari-jupyter. I get the following error:
PARIKernel\kernel.c(679): fatal error C1083: Cannot open include file: 'pari/pari.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\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 pari-jupyter
Failed to build pari-jupyter
ERROR: Could not build wheels for pari-jupyter, which is required to install pyproject.toml-based projects
How can I find pari/pari.h, and tell the compiler its location?
when I try to install with pip install pysha3, I get the error "ERROR: Failed building wheel for pysha3". I did already install the Windows build tools. I can't find much help on Google unfortunately. I am on Windows 11.
Here is the log
`
PS C:\Users\Alexis> pip3 install pysha3
Collecting pysha3
Using cached pysha3-1.0.2.tar.gz (829 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pysha3
Building wheel for pysha3 (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
copying sha3.py -> build\lib.win-amd64-cpython-311
running build_ext
building '_pysha3' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\Modules
creating build\temp.win-amd64-cpython-311\Release\Modules\_sha3
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPY_WITH_KECCAK=1 -IC:\Python311\include -IC:\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\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" /TcModules/_sha3/sha3module.c /Fobuild\temp.win-amd64-cpython-311\Release\Modules/_sha3/sha3module.obj
sha3module.c
C:\Users\Alexis\AppData\Local\Temp\pip-install-78ji94vk\pysha3_9e9c90f2f01445aeb1ab3ed6a6c14e42\Modules\_sha3\backport.inc(78): fatal error C1083: Cannot open include file: 'pystrhex.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\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 pysha3
Running setup.py clean for pysha3
Failed to build pysha3
Installing collected packages: pysha3
Running setup.py install for pysha3 ... error
error: subprocess-exited-with-error
× Running setup.py install for pysha3 did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running install
C:\Python311\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_py
creating build
creating build\lib.win-amd64-cpython-311
copying sha3.py -> build\lib.win-amd64-cpython-311
running build_ext
building '_pysha3' extension
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\Modules
creating build\temp.win-amd64-cpython-311\Release\Modules\_sha3
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DPY_WITH_KECCAK=1 -IC:\Python311\include -IC:\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\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" /TcModules/_sha3/sha3module.c /Fobuild\temp.win-amd64-cpython-311\Release\Modules/_sha3/sha3module.obj
sha3module.c
C:\Users\Alexis\AppData\Local\Temp\pip-install-78ji94vk\pysha3_9e9c90f2f01445aeb1ab3ed6a6c14e42\Modules\_sha3\backport.inc(78): fatal error C1083: Cannot open include file: 'pystrhex.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\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: legacy-install-failure
× Encountered error while trying to install package.
╰─> pysha3
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
`
I did install the Windows Build tools for c++
Having this same issue, last time I resolved it by back-switching to Python 3.8.7 perhaps. But now I installed 3.11 and now again pysha3 is not installing. (Window 10)
As a final resort I hope that someone here can help me. I've been trying to install node-expat but no luck.
I have installed from a packagemanager before, but when it installs from source I get the following errors:
..\..\..\deps\libexpat\lib\xmltok.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
..\..\..\deps\libexpat\lib\xmlparse.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
..\..\..\deps\libexpat\lib\xmlrole.c(5): fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
C:\Program Files (x86)\Windows Kits\8.0\Include\um\windows.h(160): fatal error C1083: Cannot open include file: 'excpt.h': No such file or directory (C:\Users\currentuser\AppData\Roaming\npm\node_modules\node-gyp\src\win_delay_load_hook.c) [c:\dev\node-expat\build\deps\libexpat\expat.vcxproj]
Thank you in advance!
I'm installing Boost 1.57.0 through the VS 2015 CTP6 Command Prompt, and I'm at the Boost.Build compile stage, but I get many of the below errors when running tools\build\bootstrap.bat:
e:\boost_1_57_0\tools\build\src\engine\jam.h(34): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory
I have been spending the last few days trying to get node-mapnik running but with no success.
Initially inspired by Wilhelm Berg's demo (https://www.youtube.com/watch?v=GlTaRpg3CbQ) which renders pure vector maps using node-mapnik I was interested in getting this running on a Windows Server.
I have worked through all of the StackExchange issues on these topics including Wilhelm's checklist for getting this working on Windows 7 x64 but I am at a dead end and my knowledge is really limited in being able to further diagnose the problem.
My environment is:
Windows 2008 Server R2 x64
Visual Studio Express 2012 Desktop Edition (32 & 64 bit)
Node.js v0.10.26 (64 bit)
Python27 (32 bit)
I have taken the following steps:
Installed Mapnik 2.2.0 SDK downloaded from git and placed in C:\apps\mapnik-v2.2.0
Added to PATH:
C:\apps\mapnik-v2.2.0\lib
C:\apps\mapnik-v2.2.0\bin
Installed Python v2.7 (32bit) downloaded and placed in C:\apps\python27
Added to PATH:
C:\apps\python27
C:\apps\python27\scripts
Added to PYTHONPATH:
C:\apps\Python27\Lib; C:\apps\Python27\DLLs;
C:\apps\Python27\Lib\lib-tk;
C:\apps\mapnik-v2.2.0\python\2.7\site-packages;
Rebuild node-gyp using VS 2012
node-gyp rebuild --msvs_version=2012
Downloaded and installed protobuf (32 bit) and placed in c:\apps\protobuf
Added to PATH:
c:\apps\protobuf
Installed protobuf using NPM
npm install protobuf --msvs_version=2012
Downloaded Cairo using git
git clone git://anongit.freedesktop.org/git/cairo
Copy Cairo files to mapnik:
Copy cairo\src\cairo-svg-surface.c to C:\apps\mapnik-v2.2.0\include
Copy cairo\src\cairo-svg.h to C:\apps\mapnik-v2.2.0\include
Copy cairo\src\cairo-svg-surface-private.h to C:\apps\mapnik-v2.2.0\include
Make proj4 epsg files available:
SET PROJ_LIB=C:\apps\mapnik-v2.2.0\share\proj
Attempt to install node-mapnik
npm install node-mapnik --msvs_version=2012
I receive the following errors:
node-pre-gyp ERR! Source compile required: 404 status code downloading
tarball ... mapnik_grid.cpp
c:\users\administrator\node_modules\node-mapnik\build\release\obj\global_interm
ediate\vector_tile.pb.h(9): fatal error C1083: Cannot open include
file: 'googl e/protobuf/stubs/common.h': No such file or directory
(C:\Users\Administrator\n
ode_modules\node-mapnik\build\Release\obj\global_intermediate\vector_tile.pb.cc
)
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_geometry.cpp)
[C:\Users\Administrator\node_modules\node-mapnik
\build\mapnik.vcxproj] mapnik_layer.cpp mapnik_cairo_surface.cpp
c:\users\administrator\node_modules\node-mapnik\src\mapnik_featureset.hpp(6):
f atal error C1083: Cannot open include file:
'mapnik/datasource_cache.hpp': No s uch file or directory
(..\src\mapnik_featureset.cpp) [C:\Users\Administrator\no
de_modules\node-mapnik\build\mapnik.vcxproj] mapnik_image.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_map.cpp) [C:\U
sers\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
mapnik_datasource.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_color.cpp) [C:
\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
node_mapnik.cpp ..\src\mapnik_grid_view.cpp(9): fatal error C1083:
Cannot open include file: 'm apnik/grid/grid.hpp': No such file or
directory [C:\Users\Administrator\node_mo
dules\node-mapnik\build\mapnik.vcxproj] mapnik_projection.cpp
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_layer.cpp) [C:
\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
mapnik_feature.cpp ..\src\mapnik_grid.cpp(9): fatal error C1083:
Cannot open include file: 'mapnik /version.hpp': No such file or
directory [C:\Users\Administrator\node_modules\n
ode-mapnik\build\mapnik.vcxproj] mapnik_palette.cpp
..\src\mapnik_image_view.cpp(11): fatal error C1083: Cannot open
include file: 'mapnik/color.hpp': No such file or directory
[C:\Users\Administrator\node_modu
les\node-mapnik\build\mapnik.vcxproj] mapnik_vector_tile.cpp
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_cairo_surface.cpp)
[C:\Users\Administrator\node_modules\node-m
apnik\build\mapnik.vcxproj] mapnik_expression.cpp
mapnik_memory_datasource.cpp ..\src\mapnik_memory_datasource.cpp(3):
fatal error C1083: Cannot open include file: 'mapnik/version.hpp': No
such file or directory [C:\Users\Administrator\n
ode_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_feature.cpp)
[C:\Users\Administrator\node_modules\node-mapnik\
build\mapnik.vcxproj] ..\src\mapnik_image.cpp(7): fatal error C1083:
Cannot open include file: 'mapni k/color.hpp': No such file or
directory [C:\Users\Administrator\node_modules\no
de-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_datasource.cpp )
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_projection.cpp )
[C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\mapnik_palette.cpp) [
C:\Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
C:\Users\Administrator\node_modules\node-mapnik\node_modules\mapnik-vector-tile
\src\mapnik3x_compatibility.hpp(4): fatal error C1083: Cannot open
include file : 'mapnik/version.hpp': No such file or directory
(..\src\node_mapnik.cpp) [C:\
Users\Administrator\node_modules\node-mapnik\build\mapnik.vcxproj]
c:\users\administrator\node_modules\node-mapnik\src\utils.hpp(11):
fatal error C1083: Cannot open include file: 'mapnik/unicode.hpp': No
such file or director y (..\src\mapnik_vector_tile.cpp)
[C:\Users\Administrator\node_modules\node-map
nik\build\mapnik.vcxproj]
node-mapnik now ships with windows binaries, so none of the above steps should be needed. See https://github.com/mapnik/node-mapnik#installing for details.