fatal error grib_api.h no such file directory - python

I am going to install pygrib. However, whenever I try to install it, fatal error C1083 appears and says I can't find grib_api.h. Visual studio was also reinstalled, and github found grib_api.h and put it in the path, but it changed to a new error that there was no times in sys. When I solved this error, the error suddenly increased. No matter how hard I try with pip install, that error keeps coming out.
E:\pygrib-master>python setup.py install
eccodes not found, build may fail...
running install
C:\Users\zingg\AppData\Local\Programs\Python\Python310\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(
C:\Users\zingg\AppData\Local\Programs\Python\Python310\lib\site-
packages\setuptools\command\easy_install.py:160: EasyInstallDeprecationWarning:
easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running bdist_egg
running egg_info
writing src\pygrib.egg-info\PKG-INFO
writing dependency_links to src\pygrib.egg-info\dependency_links.txt
writing requirements to src\pygrib.egg-info\requires.txt
writing top-level names to src\pygrib.egg-info\top_level.txt
reading manifest file 'src\pygrib.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.def' under directory 'eccodes'
adding license file 'LICENSE'
writing manifest file 'src\pygrib.egg-info\SOURCES.txt'
installing library code to build\bdist.win-amd64\egg
running install_lib
running build_py
running build_ext
skipping 'src/pygrib\_pygrib.c' Cython extension (up-to-date)
building 'pygrib._pygrib' extension
"C:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.31.31103\bin\HostX86\x64\cl.exe" /c /nologo /O2
/W3 /GL /DNDEBUG /MD -IC:\Users\zingg\AppData\Local\Programs\Python\Python310\include -
IC:\Users\zingg\AppData\Local\Programs\Python\Python310\Include -
IC:\Users\zingg\AppData\Local\Programs\Python\Python310\lib\site-
packages\numpy\core\include "-IC:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.31.31103\ATLMFC\include" "-IC:\Program
Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.31.31103\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\\shared" "-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\\winrt" "-IC:\Program Files (x86)\Windows
Kits\10\\include\10.0.19041.0\\cppwinrt" /Tcsrc/pygrib\_pygrib.c /Fobuild\temp.win-
amd64-3.10\Release\src/pygrib\_pygrib.obj
_pygrib.c
C:\Users\zingg\AppData\Local\Programs\Python\Python310\lib\site-
packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using
deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
src/pygrib\_pygrib.c(697): fatal error C1083: 포함 파일을 열 수 없습니다. 'grib_api.h': No
such file or directory
error: command 'C:\\Program Files\\Microsoft Visual
Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed
with exit code 2

Related

pip can't build pyaudio wheel on Windows 64-bit

I'm trying to do
pip install Pyaudio
but I get this error:
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
_portaudiomodule.c
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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 pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
error: subprocess-exited-with-error
× Running setup.py install for pyaudio did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying src\pyaudio.py -> build\lib.win-amd64-3.9
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include -IC:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.9\Release\src/_portaudiomodule.obj
_portaudiomodule.c
C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
src/_portaudiomodule.c: note: see previous definition of 'MS_WIN64'
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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.
╰─> pyaudio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
WARNING: There was an error checking the latest version of pip
I have installed VS build tools.
It seems like the Python version you're using is not compatible with the pyAudio.
Please refer to the docs here.

how to fix pyaudio installation problem windows 11

C:\Users\HP\Downloads>pip install pyaudio
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for pyaudio, since package 'wheel' is not installed.
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
error: subprocess-exited-with-error
× Running setup.py install for pyaudio did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Users\HP\AppData\Local\Programs\Python\Python310\include -IC:\Users\HP\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\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\shared -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\winrt -IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.10\Release\src/_portaudiomodule.obj
_portaudiomodule.c
C:\Users\HP\AppData\Local\Programs\Python\Python310\include\pyconfig.h(117): warning C4005: 'MS_WIN64': macro redefinition
C:\Users\HP\AppData\Local\Programs\Python\Python310\include\pyconfig.h(117): note: 'MS_WIN64' previously declared on the command line
src/_portaudiomodule.c(29): fatal error C1083: Cannot open include file: 'portaudio.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.32.31326\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]

Installing qdldl for Python creates a Cmake CMakeLists.txt 4 error

I've been trying to install qdldl in a virtual machine.
It seemed like the issue was because I did not have the correct version of Visual Studio, but I've downloaded multiple versions of it now and it fails on all of them. I've also downloaded the Visual Studio Build Tools and tried versions 2015 to 2022.
I downloaded CMake as well. I'm getting the following error:
Collecting qdldl
Using cached qdldl-0.1.5.post2.tar.gz (69 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.7 in c:\users\kaik\documents\studyduck\studyducknew\backend\python-envs\senv\lib\site-packages (from qdldl) (1.22.4)
Requirement already satisfied: scipy>=0.13.2 in c:\users\kaik\documents\studyduck\studyducknew\backend\python-envs\senv\lib\site-packages (from qdldl) (1.8.1)
Building wheels for collected packages: qdldl
Building wheel for qdldl (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
running bdist_wheel
running build
running build_ext
CMake Error at CMakeLists.txt:4 (project):
Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Kaik/AppData/Local/Temp/pip-install-u4o43rtd/qdldl_2d10c3a1f1e34da88439806f5a0e900a/c/build/CMakeFiles/CMakeOutput.log".
CMake Error:
Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
building 'qdldl' extension
creating build
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\Kaik\Documents\studyduck\StudyDuckNew\backend\python-envs\senv\lib\site-packages\pybind11\include
-IC:\Users\Kaik\Documents\studyduck\StudyDuckNew\backend\python-envs\senv\lib\site-packages\pybind11\include -IC:\Users\Kaik\Documents\studyduck\StudyDuckNew\backend\python-envs\senv\include -IC:\Users\Kaik\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\Kaik\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win32-3.8\Release\cpp\qdldl.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
qdldl.cpp
c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for qdldl
Running setup.py clean for qdldl
Failed to build qdldl
Installing collected packages: qdldl
Running setup.py install for qdldl ... error
error: subprocess-exited-with-error
× Running setup.py install for qdldl did not run successfully.
│ exit code: 1
╰─> [33 lines of output]
running install
running build
running build_ext
CMake Error at CMakeLists.txt:4 (project):
Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Kaik/AppData/Local/Temp/pip-install-u4o43rtd/qdldl_2d10c3a1f1e34da88439806f5a0e900a/c/build/CMakeFiles/CMakeOutput.log".
CMake Error:
Generator
Visual Studio 17 2022
could not find any instance of Visual Studio.
building 'qdldl' extension
creating build
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic -Ic\qdldl\include -IC:\Users\Kaik\Documents\studyduck\StudyDuckNew\backend\python-envs\senv\lib\site-packages\pybind11\include
-IC:\Users\Kaik\Documents\studyduck\StudyDuckNew\backend\python-envs\senv\lib\site-packages\pybind11\include -IC:\Users\Kaik\Documents\studyduck\StudyDuckNew\backend\python-envs\senv\include -IC:\Users\Kaik\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\Kaik\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\cppwinrt" /EHsc /Tpcpp\qdldl.cpp /Fobuild\temp.win32-3.8\Release\cpp\qdldl.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
qdldl.cpp
c\qdldl/include/qdldl.h(5): fatal error C1083: Cannot open include file: 'qdldl_types.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 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.
╰─> qdldl
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Also note: here is the CMakeLists.txt file:
# To ensure maximum portability across various compilers and platforms
# deactivate any compiler extensions
set(CMAKE_CXX_EXTENSIONS FALSE)
# source files for CMake std library
set(SRCS cm/bits/fs_path.cxx
cm/bits/string_view.cxx
cm/filesystem
cm/memory
cm/optional
cm/shared_mutex
cm/string_view
cm/utility
cmext/string_view)
add_library(cmstd STATIC ${SRCS})

how to install causalml packages

windows 10
IDE:Spyder
Python 3.7.9
I failed to install this package and the error in cmd is shown as follow:
python setup.py install running install running bdist_egg running
egg_info writing causalml.egg-info\PKG-INFO writing dependency_links
to causalml.egg-info\dependency_links.txt writing requirements to
causalml.egg-info\requires.txt writing top-level names to
causalml.egg-info\top_level.txt reading manifest file
'causalml.egg-info\SOURCES.txt' reading manifest template
'MANIFEST.in' warning: no files found matching '.pxd' under directory
'causalml' warning: no files found matching '.h' under directory
'causalml' adding license file 'LICENSE' writing manifest file
'causalml.egg-info\SOURCES.txt' installing library code to
build\bdist.win-amd64\egg running install_lib running build_py running
build_ext building 'causalml.inference.tree.causaltree' extension
C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe
/c /nologo /Ox /W3 /GL /DNDEBUG /MD
-IC:\Users\absence\AppData\Local\Programs\Spyder\pkgs\numpy\core\include
-IC:\Users\absence\AppData\Local\Programs\Spyder\pkgs\numpy\core\include
-IC:\Users\absence\AppData\Local\Programs\Spyder\Python\include -IC:\Users\absence\AppData\Local\Programs\Spyder\Python\include "-IC:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\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\shared"
"-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\winrt"
"-IC:\Program Files (x86)\Windows
Kits\10\include\10.0.19041.0\cppwinrt"
/Tccausalml/inference/tree/causaltree.c
/Fobuild\temp.win-amd64-3.7\Release\causalml/inference/tree/causaltree.obj
-O3 causaltree.c causalml/inference/tree/causaltree.c(31): fatal error C1083: “Python.h”: No such file or directory error: command
'C:\Program Files (x86)\Microsoft Visual
Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe'
failed with exit status 2
May I ask a help for how to solve it?

file module in python install failing

I have a code that uses a module which in turn uses the python module "file". Right now when I run my code I get the error -
File "c:\users\sss\appdata\local\programs\python\python36-32\lib\site-packages\enmscripting\common\element.py", line 3, in <module>
from file import FileResult
ModuleNotFoundError: No module named 'file'
So then I went to console and ran "import file". Sure enough I don't have that module.
import file
Traceback (most recent call last):
File "<ipython-input-27-f5da65cb6f61>", line 1, in <module>
import file
ModuleNotFoundError: No module named 'file'
I then proceeded with installing file using pip. Getting the error below. Please advise. I have searched a lot and haven't been able to find a fix.
C:\Users\sss>pip install file
Collecting file
Using cached https://files.pythonhosted.org/packages/0a/49/317ac8ed10afb25c4c24972ea4de4c5507d6b0ab13bca4941c9a0bdc64ea/file-0.3.0.tar.gz
Requirement already satisfied: cffi>=1.0.0 in c:\users\sss\appdata\local\programs\python\python36-32\lib\site-packages (from file)
Requirement already satisfied: pycparser in c:\users\sss\appdata\local\programs\python\python36-32\lib\site-packages (from cffi>=1.0.0->file)
Installing collected packages: file
Running setup.py install for file ... error
Complete output from command c:\users\sss\appdata\local\programs\python\python36-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Public\\Documents\\Wonder
share\\CreatorTemp\\pip-build-fe5vpmot\\file\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec
'))" install --record C:\Users\Public\Documents\Wondershare\CreatorTemp\pip-jqpbad1d-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\file
copying src\file\_libmagic_build.py -> build\lib.win32-3.6\file
copying src\file\__init__.py -> build\lib.win32-3.6\file
running egg_info
writing src\file.egg-info\PKG-INFO
writing dependency_links to src\file.egg-info\dependency_links.txt
writing requirements to src\file.egg-info\requires.txt
writing top-level names to src\file.egg-info\top_level.txt
reading manifest file 'src\file.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '*.dylib' found anywhere in distribution
writing manifest file 'src\file.egg-info\SOURCES.txt'
running build_ext
generating cffi module 'build\\temp.win32-3.6\\Release\\file._libmagic.c'
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
building 'file._libmagic' extension
creating build\temp.win32-3.6\Release\build
creating build\temp.win32-3.6\Release\build\temp.win32-3.6
creating build\temp.win32-3.6\Release\build\temp.win32-3.6\Release
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\sss\appdata\local\
programs\python\python36-32\include -Ic:\users\sss\appdata\local\programs\python\python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\
14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files
(x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0
\cppwinrt" /Tcbuild\temp.win32-3.6\Release\file._libmagic.c /Fobuild\temp.win32-3.6\Release\build\temp.win32-3.6\Release\file._libmagic.obj
file._libmagic.c
build\temp.win32-3.6\Release\file._libmagic.c(492): fatal error C1083: Cannot open include file: 'magic.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
Installed Magic again. No change -
C:\Users\sss>pip install libmagic
Collecting libmagic
Downloading https://files.pythonhosted.org/packages/83/86/419ddfc3879b4565a60e0c75b6d19baec48428cbc2f15aca5320b3d136f6/libmagic-1.0.tar.gz
Installing collected packages: libmagic
Running setup.py install for libmagic ... done
Successfully installed libmagic-1.0
Error - Same as before
ile._libmagic.c
build\temp.win32-3.6\Release\file._libmagic.c(492): fatal error C1083: Cannot open include file: 'magic.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
Resolved -
I downgraded to Python 2.7 and everything works. It appears there are some compatibility issues with Python 3.6.
Resolved - I downgraded to Python 2.7 and everything works. It appears there are some compatibility issues with Python 3.6.

Categories