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

Windows 10 64bit #77

Open
ghost opened this issue Nov 26, 2023 · 4 comments
Open

Windows 10 64bit #77

ghost opened this issue Nov 26, 2023 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 26, 2023

I tried all methods you mentied but still same result..

PS C:\test\python-lzo> python -m build -w
* Creating venv isolated environment...
* Installing packages in isolated environment... (setuptools>=42, wheel)
* Getting build dependencies for wheel...
running egg_info
creating python_lzo.egg-info
writing python_lzo.egg-info\PKG-INFO
writing dependency_links to python_lzo.egg-info\dependency_links.txt
writing requirements to python_lzo.egg-info\requires.txt
writing top-level names to python_lzo.egg-info\top_level.txt
writing manifest file 'python_lzo.egg-info\SOURCES.txt'
reading manifest file 'python_lzo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
writing manifest file 'python_lzo.egg-info\SOURCES.txt'
* Installing packages in isolated environment... (wheel)
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-312
copying tarxfz.py -> build\lib.win-amd64-cpython-312
running egg_info
writing python_lzo.egg-info\PKG-INFO
writing dependency_links to python_lzo.egg-info\dependency_links.txt
writing requirements to python_lzo.egg-info\requires.txt
writing top-level names to python_lzo.egg-info\top_level.txt
reading manifest file 'python_lzo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
writing manifest file 'python_lzo.egg-info\SOURCES.txt'
running build_ext
building 'lzo' extension
creating build\temp.win-amd64-cpython-312
creating build\temp.win-amd64-cpython-312\Release
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\lzo\include -IC:\Users\nexti\AppData\Local\Temp\build-env-twvj0p70\include "-IC:\Program Files\Python312\include" "-IC:\Program Files\Python312\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\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" /Tclzomodule.c /Fobuild\temp.win-amd64-cpython-312\Release\lzomodule.obj
lzomodule.c
lzomodule.c(38): fatal error C1083: Nejde otevřít soubor zahrnout: lzo/lzo1.h: No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2

ERROR Backend subprocess exited when trying to invoke build_wheel
PS C:\test\python-lzo>
PS C:\Users\nexti\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\python-lzo> pip install git+https://github.com/jd-boyd/python-lzo
Defaulting to user installation because normal site-packages is not writeable
Collecting git+https://github.com/jd-boyd/python-lzo
  Cloning https://github.com/jd-boyd/python-lzo to c:\users\nexti\appdata\local\temp\pip-req-build-ny9nwupi
  Running command git clone --filter=blob:none --quiet https://github.com/jd-boyd/python-lzo 'C:\Users\nexti\AppData\Local\Temp\pip-req-build-ny9nwupi'
  Resolved https://github.com/jd-boyd/python-lzo to commit 0eafa0a00e95229722eb65405ed648838b8fd936
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: python-lzo
  Building wheel for python-lzo (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for python-lzo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [23 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-312
      copying tarxfz.py -> build\lib.win-amd64-cpython-312
      running egg_info
      writing python_lzo.egg-info\PKG-INFO
      writing dependency_links to python_lzo.egg-info\dependency_links.txt
      writing requirements to python_lzo.egg-info\requires.txt
      writing top-level names to python_lzo.egg-info\top_level.txt
      reading manifest file 'python_lzo.egg-info\SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      adding license file 'COPYING'
      writing manifest file 'python_lzo.egg-info\SOURCES.txt'
      running build_ext
      building 'lzo' extension
      creating build\temp.win-amd64-cpython-312
      creating build\temp.win-amd64-cpython-312\Release
      "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\lzo\include "-IC:\Program Files\Python312\include" "-IC:\Program Files\Python312\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\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" /Tclzomodule.c /Fobuild\temp.win-amd64-cpython-312\Release\lzomodule.obj
      lzomodule.c
      lzomodule.c(38): fatal error C1083: Nejde otevýˇt soubor zahrnout: lzo/lzo1.h: No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\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 python-lzo
Failed to build python-lzo
ERROR: Could not build wheels for python-lzo, which is required to install pyproject.toml-based projects
PS C:\Users\nexti\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\python-lzo>

EDIT

* Installing packages in isolated environment... (wheel)
* Building wheel...
<string>:31: SyntaxWarning: invalid escape sequence '\i'
['C:\\lzo\\lzo-2.10\\include']
C:\Users\nexti\AppData\Local\Temp\build-env-rl6j5c1e\Lib\site-packages\setuptools\_distutils\extension.py:134: UserWarning: Unknown Extension options: 'library'
  warnings.warn(msg)
running bdist_wheel
running build
running build_py
copying tarxfz.py -> build\lib.win-amd64-cpython-312
running egg_info
writing python_lzo.egg-info\PKG-INFO
writing dependency_links to python_lzo.egg-info\dependency_links.txt
writing requirements to python_lzo.egg-info\requires.txt
writing top-level names to python_lzo.egg-info\top_level.txt
reading manifest file 'python_lzo.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'COPYING'
writing manifest file 'python_lzo.egg-info\SOURCES.txt'
running build_ext
building 'lzo' extension
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\lzo\lzo-2.10\include -IC:\Users\nexti\AppData\Local\Temp\build-env-rl6j5c1e\include "-IC:\Program Files\Python312\include" "-IC:\Program Files\Python312\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\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" /Tclzomodule.c /Fobuild\temp.win-amd64-cpython-312\Release\lzomodule.obj
lzomodule.c
lzomodule.c(628): warning C4141: dllexport: používá se víc než jednou
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\Users\nexti\AppData\Local\Temp\build-env-rl6j5c1e\libs "/LIBPATH:C:\Program Files\Python312\libs" "/LIBPATH:C:\Program Files\Python312" /LIBPATH:C:\Users\nexti\AppData\Local\Temp\build-env-rl6j5c1e\PCbuild\amd64 "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.38.33130\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64" /EXPORT:PyInit_lzo build\temp.win-amd64-cpython-312\Release\lzomodule.obj /OUT:build\lib.win-amd64-cpython-312\lzo.cp312-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-312\Release\lzo.cp312-win_amd64.lib
   Vytváří se knihovna build\temp.win-amd64-cpython-312\Release\lzo.cp312-win_amd64.lib a objekt build\temp.win-amd64-cpython-312\Release\lzo.cp312-win_amd64.exp.
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1y_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1x_optimize
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1f_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo_version_date
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1z_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo2a_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1f_1_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1a_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1x_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1y_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol __lzo_init_v2
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo_crc32
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo_adler32
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1b_1_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1_99_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1_decompress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1y_1_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1a_99_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1x_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1x_1_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1b_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1c_999_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1c_1_compress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1z_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1a_decompress
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1f_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo2a_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo_version_string
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1b_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo_version
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1c_decompress_safe
lzomodule.obj : error LNK2001: Nerozpoznaný externí symbol lzo1_compress
build\lib.win-amd64-cpython-312\lzo.cp312-win_amd64.pyd : fatal error LNK1120: Počet nerozpoznaných externích typů: 32
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.38.33130\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120

ERROR Backend subprocess exited when trying to invoke build_wheel
PS C:\lzo> 
@jd-boyd
Copy link
Owner

jd-boyd commented Nov 30, 2023

I tried all methods you mentied but still same result..

Yeah. I think this is a new issue with 3.12. Thank you for filing it.

@AT0myks
Copy link
Contributor

AT0myks commented Dec 24, 2023

For the first error, where did you get the source? git clone? source distribution?

For the second error it seems like you might have set the LZO_DIR environment variable to C:\lzo and assuming it doesn't contain the include folder would explain the lzo/lzo1.h: No such file or directory error. This command should work if the environment variable is not set.

And what's the command you ran for the third error?

@Zacharia2
Copy link

Zacharia2 commented Jul 1, 2024

python_lzo-1.16-cp312-cp312-win_amd64.whl.txt

已编译,下载下来,去掉txt后缀,然后pip安装即可

@jd-boyd
Copy link
Owner

jd-boyd commented Jul 2, 2024

python_lzo-1.16-cp312-cp312-win_amd64.whl.txt

已编译,下载下来,去掉txt后缀,然后pip安装即可

Google suggests the translation as:

It has been compiled, download it, remove the txt suffix, and then install it with pip

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

3 participants