XCoder icon indicating copy to clipboard operation
XCoder copied to clipboard

pylzham installation error (Python v3.11)

Open Muffin902 opened this issue 2 years ago • 9 comments

Need Help Defaulting to user installation because normal site-packages is not writeable Collecting pylzham Using cached pylzham-0.1.3.tar.gz (112 kB) Preparing metadata (setup.py) ... done Installing collected packages: pylzham DEPRECATION: pylzham is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for pylzham ... error error: subprocess-exited-with-error

× Running setup.py install for pylzham did not run successfully. │ exit code: 1 ╰─> [22 lines of output] WARNING: '' not a valid package name; please use only .-separated package names in setup.py running install C:\Program Files\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 creating build\lib.win-amd64-cpython-311\lzham copying src\lzham\compress.py -> build\lib.win-amd64-cpython-311\lzham copying src\lzham\decompress.py -> build\lib.win-amd64-cpython-311\lzham copying src\lzham_init_.py -> build\lib.win-amd64-cpython-311\lzham running build_ext building '_lzham' extension creating build\temp.win-amd64-cpython-311 creating build\temp.win-amd64-cpython-311\Release creating build\temp.win-amd64-cpython-311\Release\src creating build\temp.win-amd64-cpython-311\Release\src\lib "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD "-IC:\Program Files\Python311\include" "-IC:\Program Files\Python311\Include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /EHsc /Tpsrc/lib/lzham_api.cpp /Fobuild\temp.win-amd64-cpython-311\Release\src/lib/lzham_api.obj lzham_api.cpp C:\Users\komar\AppData\Local\Temp\pip-install-olv8x8kn\pylzham_2da7e0719a7a478f8529a8fe698927b1\src\lib\lzham_core.h(61): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: windows.h: No such file or directory, error: command 'C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\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. ╰─> pylzham

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

Muffin902 avatar Jun 02 '23 07:06 Muffin902

Try just not to install pylzham. the sc compression module may use a native windows library for this compression type

danila-schelkov avatar Jun 02 '23 13:06 danila-schelkov

How do i not install pylzham?

Muffin902 avatar Jun 02 '23 15:06 Muffin902

what the command prompt are you using

danila-schelkov avatar Jun 02 '23 16:06 danila-schelkov

What do you mean by that?

Muffin902 avatar Jun 02 '23 17:06 Muffin902

how did you install the requirements

danila-schelkov avatar Jun 02 '23 17:06 danila-schelkov

pip install -r requirements.txt

Muffin902 avatar Jun 02 '23 17:06 Muffin902

If you have discord can you add me 3D Printing Guy#9881 I think it will be easier to discuss this.

Muffin902 avatar Jun 02 '23 17:06 Muffin902

Hello I have sent you a friend request, hope you can respond

Muffin902 avatar Jun 03 '23 15:06 Muffin902

Have you solved your problem?

danila-schelkov avatar Mar 14 '24 12:03 danila-schelkov