Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to install lzss #3

Open
AndnixSH opened this issue Sep 22, 2020 · 0 comments
Open

Failed to install lzss #3

AndnixSH opened this issue Sep 22, 2020 · 0 comments

Comments

@AndnixSH
Copy link

AndnixSH commented Sep 22, 2020

I got error when trying to install lzss from pip. I'm using python 3.8.5 on Windows 10

PS E:\Downloads> python3 -m pip install lzss
Collecting lzss
  Using cached lzss-0.3.tar.gz (10 kB)
Building wheels for collected packages: lzss
  Building wheel for lzss (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'F:\Python3\python3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\meng\\AppData\\Local\\Temp\\pip-install-attmc01x\\lzss\\setup.py'"'"'; __file__='"'"'C:\\Users\\meng\\AppData\\Local\\Temp\\pip-install-attmc01x\\lzss\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\meng\AppData\Local\Temp\pip-wheel-jqpom4x2'
       cwd: C:\Users\meng\AppData\Local\Temp\pip-install-attmc01x\lzss\
  Complete output (11 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'lzss' extension
  creating build
  creating build\temp.win32-3.8
  creating build\temp.win32-3.8\Release
  D:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./include -IF:\Python3\include -IF:\Python3\include "-ID:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcpylzss.c /Fobuild\temp.win32-3.8\Release\pylzss.obj
  pylzss.c
  F:\Python3\include\pyconfig.h(206): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
  error: command 'D:\\Program Files\\VS2019\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
  ----------------------------------------
  ERROR: Failed building wheel for lzss
  Running setup.py clean for lzss
Failed to build lzss
Installing collected packages: lzss
    Running setup.py install for lzss ... error
    ERROR: Command errored out with exit status 1:
     command: 'F:\Python3\python3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\meng\\AppData\\Local\\Temp\\pip-install-attmc01x\\lzss\\setup.py'"'"'; __file__='"'"'C:\\Users\\meng\\AppData\\Local\\Temp\\pip-install-attmc01x\\lzss\\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\meng\AppData\Local\Temp\pip-record-ct5wd6fx\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\Python3\Include\lzss'
         cwd: C:\Users\meng\AppData\Local\Temp\pip-install-attmc01x\lzss\
    Complete output (11 lines):
    running install
    running build
    running build_ext
    building 'lzss' extension
    creating build
    creating build\temp.win32-3.8
    creating build\temp.win32-3.8\Release
    D:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./include -IF:\Python3\include -IF:\Python3\include "-ID:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-ID:\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcpylzss.c /Fobuild\temp.win32-3.8\Release\pylzss.obj
    pylzss.c
    F:\Python3\include\pyconfig.h(206): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
    error: command 'D:\\Program Files\\VS2019\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'F:\Python3\python3.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\meng\\AppData\\Local\\Temp\\pip-install-attmc01x\\lzss\\setup.py'"'"'; __file__='"'"'C:\\Users\\meng\\AppData\\Local\\Temp\\pip-install-attmc01x\\lzss\\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\meng\AppData\Local\Temp\pip-record-ct5wd6fx\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\Python3\Include\lzss' Check the logs for full command output.

Another error when installing from source

PS E:\pylzss-master> python3 setup.py install
running install
running bdist_egg
running egg_info
writing lzss.egg-info\PKG-INFO
writing dependency_links to lzss.egg-info\dependency_links.txt
writing top-level names to lzss.egg-info\top_level.txt
reading manifest file 'lzss.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: manifest_maker: MANIFEST.in, line 1: path 'include/' cannot end with '/'

writing manifest file 'lzss.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_ext
building 'lzss' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
D:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./include -IF:\Python3\include -IF:\Python3\include "-ID:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-ID:\Program Files\VS2019\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcpylzss.c /Fobuild\temp.win32-3.8\Release\pylzss.obj
pylzss.c
F:\Python3\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
error: command 'D:\\Program Files\
```\VS2019\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
PS E:\pylzss-master>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant