Skip to content

Compiling on Windows 10 #1

Description

@kutschkem

When trying to install sqlite-spellfix via pypi, I get the following output:

Collecting sqlite-spellfix
  Using cached sqlite-spellfix-1.0.tar.gz (27 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: sqlite-spellfix
  Building wheel for sqlite-spellfix (setup.py): started
  Building wheel for sqlite-spellfix (setup.py): finished with status 'error'
  ERROR: Command errored out with exit status 1:
   command: 'c:\legacyapp\python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\uidj1662\\AppData\\Local\\Temp\\pip-install-1wkorcj8\\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\\setup.py'"'"'; __file__='"'"'C:\\Users\\uidj1662\\AppData\\Local\\Temp\\pip-install-1wkorcj8\\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\\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\uidj1662\AppData\Local\Temp\pip-wheel-xt_946uz'
       cwd: C:\Users\uidj1662\AppData\Local\Temp\pip-install-1wkorcj8\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\
  Complete output (14 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  copying sqlite_spellfix.py -> build\lib.win-amd64-3.6
  running build_ext
  building 'spellfix1' extension
  creating build\temp.win-amd64-3.6
  creating build\temp.win-amd64-3.6\Release
  c:\LegacyApp\Microsoft Visual Studio\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\legacyapp\python36\include -Ic:\legacyapp\python36\include "-Ic:\LegacyApp\Microsoft Visual Studio\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-Ic:\LegacyApp\Microsoft Visual Studio\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-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" /Tcspellfix.c /Fobuild\temp.win-amd64-3.6\Release\spellfix.obj
  spellfix.c
  spellfix.c(17): fatal error C1083: Cannot open include file: 'sqlite3ext.h': No such file or directory
  error: command 'c:\\LegacyApp\\Microsoft Visual Studio\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for sqlite-spellfix
  Running setup.py clean for sqlite-spellfix
Failed to build sqlite-spellfix
Installing collected packages: sqlite-spellfix
    Running setup.py install for sqlite-spellfix: started
    Running setup.py install for sqlite-spellfix: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: 'c:\legacyapp\python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\uidj1662\\AppData\\Local\\Temp\\pip-install-1wkorcj8\\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\\setup.py'"'"'; __file__='"'"'C:\\Users\\uidj1662\\AppData\\Local\\Temp\\pip-install-1wkorcj8\\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\\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\uidj1662\AppData\Local\Temp\pip-record-3b559fus\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\legacyapp\python36\Include\sqlite-spellfix'
         cwd: C:\Users\uidj1662\AppData\Local\Temp\pip-install-1wkorcj8\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\
    Complete output (16 lines):
    running install
    c:\legacyapp\python36\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
    creating build\lib.win-amd64-3.6
    copying sqlite_spellfix.py -> build\lib.win-amd64-3.6
    running build_ext
    building 'spellfix1' extension
    creating build\temp.win-amd64-3.6
    creating build\temp.win-amd64-3.6\Release
    c:\LegacyApp\Microsoft Visual Studio\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\legacyapp\python36\include -Ic:\legacyapp\python36\include "-Ic:\LegacyApp\Microsoft Visual Studio\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-Ic:\LegacyApp\Microsoft Visual Studio\VC\Tools\MSVC\14.16.27023\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-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" /Tcspellfix.c /Fobuild\temp.win-amd64-3.6\Release\spellfix.obj
    spellfix.c
    spellfix.c(17): fatal error C1083: Cannot open include file: 'sqlite3ext.h': No such file or directory
    error: command 'c:\\LegacyApp\\Microsoft Visual Studio\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\legacyapp\python36\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\uidj1662\\AppData\\Local\\Temp\\pip-install-1wkorcj8\\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\\setup.py'"'"'; __file__='"'"'C:\\Users\\uidj1662\\AppData\\Local\\Temp\\pip-install-1wkorcj8\\sqlite-spellfix_405ffd966c0c4b059d974ca2289434d5\\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\uidj1662\AppData\Local\Temp\pip-record-3b559fus\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\legacyapp\python36\Include\sqlite-spellfix' Check the logs for full command output.

I am using Python 3.6 on Windows 10. I see the missing include is the error, but don't know what to do about it.

spellfix.c(17): fatal error C1083: Cannot open include file: 'sqlite3ext.h': No such file or directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions