Lz4 python error install

Pip install fails on python 3.6 #159 Comments I tried running pipenv install lz4 on 2 different machines and got the following on both. Works fine on python3.5 Collecting lz4==2.1.2 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00 Using cached https://files.pythonhosted.org/packages/f1/4f/878f1827042c5b6828bc23d160f31e242ec820810b8bd04b30b631029952/lz4-2.1.2.tar.gz Building wheels for collected packages: lz4 Running setup.py bdist_wheel for lz4: started Running setup.py bdist_wheel for lz4: […]

Содержание

  1. Pip install fails on python 3.6 #159
  2. Comments
  3. Failed building wheel for lz4 #43
  4. Comments
  5. LZ4FrameFile read() fails on windows #172
  6. Comments
  7. Console log
  8. Calling code
  9. Print statements added to _compression.py
  10. Simple test using lz4.frame.open() : test_lz4_read.py
  11. Console output
  12. Simple test using lz4.frame.LZ4FrameFile() : test_lz4_read_2.py
  13. Console output
  14. Test using bz2
  15. Console output
  16. Failed to load Python extension for LZ4 support #2
  17. Comments

Pip install fails on python 3.6 #159

I tried running pipenv install lz4 on 2 different machines and got the following on both. Works fine on python3.5

Collecting lz4==2.1.2 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00
Using cached https://files.pythonhosted.org/packages/f1/4f/878f1827042c5b6828bc23d160f31e242ec820810b8bd04b30b631029952/lz4-2.1.2.tar.gz
Building wheels for collected packages: lz4
Running setup.py bdist_wheel for lz4: started
Running setup.py bdist_wheel for lz4: finished with status ‘error’
Complete output from command /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/bin/python3.6 -u -c «import setuptools, tokenize;file=’/tmp/pip-install-jcwbyd6h/lz4/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d /tmp/pip-wheel-wgwe4jnx —python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/lz4
copying lz4/init.py -> build/lib.linux-x86_64-3.6/lz4
copying lz4/version.py -> build/lib.linux-x86_64-3.6/lz4
creating build/lib.linux-x86_64-3.6/lz4/block
copying lz4/block/init.py -> build/lib.linux-x86_64-3.6/lz4/block
creating build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/_compression.py -> build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/init.py -> build/lib.linux-x86_64-3.6/lz4/frame
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building ‘lz4._version’ extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/lz4
creating build/temp.linux-x86_64-3.6/lz4libs
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -I/home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/python3.6m -c lz4/_version.c -o build/temp.linux-x86_64-3.6/lz4/_version.o -O3 -Wall -Wundef
In file included from lz4/_version.c:38:0:
py3c/py3c.h:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1

Running setup.py clean for lz4
Failed to build lz4
Installing collected packages: lz4
Running setup.py install for lz4: started
Running setup.py install for lz4: finished with status ‘error’
Complete output from command /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/bin/python3.6 -u -c «import setuptools, tokenize;file=’/tmp/pip-install-jcwbyd6h/lz4/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-record-5dla696c/install-record.txt —single-version-externally-managed —compile —install-headers /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/site/python3.6/lz4:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/lz4
copying lz4/init.py -> build/lib.linux-x86_64-3.6/lz4
copying lz4/version.py -> build/lib.linux-x86_64-3.6/lz4
creating build/lib.linux-x86_64-3.6/lz4/block
copying lz4/block/init.py -> build/lib.linux-x86_64-3.6/lz4/block
creating build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/_compression.py -> build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/init.py -> build/lib.linux-x86_64-3.6/lz4/frame
warning: build_py: byte-compiling is disabled, skipping.

Failed building wheel for lz4
Command «/home/david/.local/share/virtualenvs/shoup-MJkOh-Us/bin/python3.6 -u -c «import setuptools, tokenize;file=’/tmp/pip-install-jcwbyd6h/lz4/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-record-5dla696c/install-record.txt —single-version-externally-managed —compile —install-headers /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/site/python3.6/lz4″ failed with error code 1 in /tmp/pip-install-jcwbyd6h/lz4/

The text was updated successfully, but these errors were encountered:

Источник

Failed building wheel for lz4 #43

Trying to install on Windows but getting the following; any idea? Thank you very much for any help!

1.SER\AppData\Local\Temp\2\pip-build-bj0wwmph\lz4 setup.py’;exec(compile(open(__file__).read().replace(‘rn’, ‘n’), __file__, ‘ exec’))» bdist_wheel -d C:UsersJENKIN

1.SERAppDataLocalTemp2tmphdjbyvorpi p-wheel-: running bdist_wheel running build running build_ext building ‘lz4’ extension Traceback (most recent call last): File » «, line 1, in File «C:UsersJENKIN

1.SERAppDataLocalTemp2pip-build-bj0wwmphlz4setu p.py», line 42, in ‘Programming Language :: Python :: 3.3’, File «C:Python34libdistutilscore.py», line 148, in setup dist.run_commands() File «C:Python34libdistutilsdist.py», line 955, in run_commands self.run_command(cmd) File «C:Python34libdistutilsdist.py», line 974, in run_command cmd_obj.run() File «C:Python34libsite-packageswheelbdist_wheel.py», line 175, in run self.run_command(‘build’) File «C:Python34libdistutilscmd.py», line 313, in run_command self.distribution.run_command(command) File «C:Python34libdistutilsdist.py», line 974, in run_command cmd_obj.run() File «C:Python34libdistutilscommandbuild.py», line 126, in run self.run_command(cmd_name) File «C:Python34libdistutilscmd.py», line 313, in run_command self.distribution.run_command(command) File «C:Python34libdistutilsdist.py», line 974, in run_command cmd_obj.run() File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptoolsc ommandbuild_ext.py», line 49, in run File «C:Python34libdistutilscommandbuild_ext.py», line 339, in run self.build_extensions() File «C:Python34libdistutilscommandbuild_ext.py», line 448, in build_ex tensions self.build_extension(ext) File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptoolsc ommandbuild_ext.py», line 174, in build_extension File «C:Python34libdistutilscommandbuild_ext.py», line 503, in build_ex tension depends=ext.depends) File «C:Python34libdistutilsmsvc9compiler.py», line 460, in compile self.initialize() File «C:Python34libdistutilsmsvc9compiler.py», line 371, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptoolsm svc9_support.py», line 52, in query_vcvarsall File «C:Python34libdistutilsmsvc9compiler.py», line 287, in query_vcvars all raise ValueError(str(list(result.keys()))) ValueError: [‘path’] —————————————- Failed building wheel for lz4 Failed to build lz4 Installing collected packages: lz4 Running setup.py install for lz4 Complete output from command C:Python34python.exe -c «import setuptools, t okenize;__file__=’C:\Users\JENKIN

1.SER\AppData\Local\Temp\2\pip-build-bj 0wwmph\lz4\setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(__file__).re ad().replace(‘rn’, ‘n’), __file__, ‘exec’))» install —record C:UsersJENKIN

1.SERAppDataLocalTemp2pip-rxf1v3y6-recordinstall-record.txt —single-vers ion-externally-managed —compile: running install running build running build_ext building ‘lz4’ extension Traceback (most recent call last): File » «, line 1, in File «C:UsersJENKIN

1.SERAppDataLocalTemp2pip-build-bj0wwmphlz4se tup.py», line 42, in ‘Programming Language :: Python :: 3.3’, File «C:Python34libdistutilscore.py», line 148, in setup dist.run_commands() File «C:Python34libdistutilsdist.py», line 955, in run_commands self.run_command(cmd) File «C:Python34libdistutilsdist.py», line 974, in run_command cmd_obj.run() File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptools commandinstall.py», line 61, in run File «C:Python34libdistutilscommandinstall.py», line 539, in run self.run_command(‘build’) File «C:Python34libdistutilscmd.py», line 313, in run_command self.distribution.run_command(command) File «C:Python34libdistutilsdist.py», line 974, in run_command cmd_obj.run() File «C:Python34libdistutilscommandbuild.py», line 126, in run self.run_command(cmd_name) File «C:Python34libdistutilscmd.py», line 313, in run_command self.distribution.run_command(command) File «C:Python34libdistutilsdist.py», line 974, in run_command cmd_obj.run() File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptools commandbuild_ext.py», line 49, in run File «C:Python34libdistutilscommandbuild_ext.py», line 339, in run self.build_extensions() File «C:Python34libdistutilscommandbuild_ext.py», line 448, in build_ extensions self.build_extension(ext) File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptools commandbuild_ext.py», line 174, in build_extension File «C:Python34libdistutilscommandbuild_ext.py», line 503, in build_ extension depends=ext.depends) File «C:Python34libdistutilsmsvc9compiler.py», line 460, in compile self.initialize() File «C:Python34libdistutilsmsvc9compiler.py», line 371, in initialize vc_env = query_vcvarsall(VERSION, plat_spec) File «C:Python34libsite-packagessetuptools-18.0.1-py3.4.eggsetuptools msvc9_support.py», line 52, in query_vcvarsall File «C:Python34libdistutilsmsvc9compiler.py», line 287, in query_vcva rsall raise ValueError(str(list(result.keys()))) ValueError: [‘path’] —————————————- Command «C:Python34python.exe -c «import setuptools, tokenize;__file__=’C:\Us ers\JENKIN

1.SER\AppData\Local\Temp\2\pip-build-bj0wwmph\lz4\setup.py’;e xec(compile(getattr(tokenize, ‘open’, open)(__file__).read().replace(‘rn’, ‘n ‘), __file__, ‘exec’))» install —record C:UsersJENKIN

1.SERAppDataLocalTem p2pip-rxf1v3y6-recordinstall-record.txt —single-version-externally-managed — -compile» failed with error code 1 in C:UsersJENKIN

The text was updated successfully, but these errors were encountered:

Источник

LZ4FrameFile read() fails on windows #172

Tested with Python 3.7.3, 3.6.x, and 3.5.x. Code works fine under linux but consistently fails under windows 10.

In this example, ‘tprofFile’ was compressed using lz4 frame format by another application.

Console log

A few print() statements were added to __compression.py to localize the issue.
This is console output from the code below.

Calling code

This is the code that uses lz4.frame.LZ4FrameFile . The size of the input file is about 1GB.

Print statements added to _compression.py

The call to self._decompressor.decompress(rawblock, size) is returning 64KB but the requested size was 8KB.

The text was updated successfully, but these errors were encountered:

I added a few more debug prints and located a possible root cause. len(data) is 65536 but len(byte_view) is len(byte_view) is only 8192. The memoryview buffer is smaller than the data buffer returned by self.read(len(byte_view)).

Can you please format code sections and backtraces using backticks so they’re actually readable. Please see the github markdown help.

I edited the initial comment with markdown formatting.

Thank you, that makes it much more readable.

I am confused. You say that TprofFile uses lz4.frame.LZ4FrameFile , but the code you show doesn’t at all. Instead it’s using lz4.frame.open() directly.

Honestly, it’s hard to help you without you showing the actual code, or, better, providing a simple reproducer. It would be worth your time reducing the part that is your only code to a simple reproducer, and then we can proceed.

Results are the same when using either lz4.frame.LZ4FrameFile or lz4.frame.open() directly. Here is a simple test showing the failure.

Simple test using lz4.frame.open() : test_lz4_read.py

Console output

Simple test using lz4.frame.LZ4FrameFile() : test_lz4_read_2.py

Console output

That’s great, thanks. I’ve now been able to reproduce this on the Appveyor builders for the issue-172 branch. So, that’s a start.

(Note that the first fail is for Python 2.7, which uses a bundled version of _compression.py, and the error message is different, but the underlying issue is the same).

Out of interest, does your test example succeed if instead you use bz2? (https://docs.python.org/3/library/bz2.html) — I’d try this, but I don’t have access to windows (other than thru Appveyor builds).

Disappointingly, this seems to be unreproducible now:

It definitely did occur once on Appveyor, but I haven’t managed to get it to trigger again. Do you see it every time, or just intermittently?

The test example succeeds when using bz2.

Test using bz2

Console output

Did you mean to close this issue?

Hit wrong button.

Ok, just checking.

So, do you see this problem every time? Or intermittently?

I see this problem every time the original uncompressed source is larger than 8KB. As I mentioned in the edited initial comment, the call to self._decompressor.decompress(rawblock, size) is returning 64KB for very large input files.

OK, I cannot get this to reproduce on Appveyor using your test case. See, eg:

where this test is being run:

Can you confirm:

  1. exactly which python lz4 package you’re using
  2. whether you’re using the lz4 library files, or a system lz4 library. If the latter, which version.
  3. does the problem still manifest if you start with a clean virtualenv and install the lz4 binaries using pip install —no-binary lz4 .

At this point, I am thinking it’s some sort of weird bug with the MSVC compiler that only manifests on some builds — each Appveyor run recompiles the extension modules, you see.

Not using system lz4

Don’t know how to use this option. After py -m pip uninstall lz4 , I tried this:

Источник

Failed to load Python extension for LZ4 support #2

Importing «bagpy» throws the following message:
«Failed to load Python extension for LZ4 support. LZ4 compression will not be available.»

This results in the following error when trying to read messages/topics from rosbag file:
«rosbag.bag.ROSBagException: unsupported compression type: lz4»

System OS: Windows 10
Python Version: 3.8.3

The text was updated successfully, but these errors were encountered:

Can you try installing lz4?

pip install lz4

I don’t have a windows machine currently, so it will be hard to debug. In Ubuntu «Failed to load Python extension for LZ4 support. LZ4 compression will not be available.» is a warning and yet it runs. You can provide a minimum viable code snippet to reproduce your issue and that may help.

@tyagi86 I have a suggestion on reading bag files. You can use Google Colab if you don’t have access to Linux. See the example: https://colab.research.google.com/drive/1ZNeVcYmvd6WHgXvdfi-MD6pdZAjWTyqZ?usp=sharing

Hello, if someone have a solution on windows I would be also interested !

I have multiples files of

2/3 GB to read so google colab does not seem to be a good solution as I would have to upload them .

@tyagi86 @julienguegan
I checked on a Windows system.

  1. Here are the following steps that I performed:
  2. I installed Anaconda and ran its Jupyter Server. Then in the notebook, I installed bagpy using the following command:
  1. Restarted the kernel and executed the following code:

and I was able to see the plot I was expecting.

Note that I still get Failed to load Python extension for LZ4 support. LZ4 compression will not be available. , but that’s just a warning and it didn’t hinder me from doing any downstream analysis.

Also, @tyagi86 @julienguegan
Do an update of a package

and the warning/error message will go away.

One final thing. If your bag file uses lz4 compression, then in Windows, bagpy will not be able to decode that, as .so file for lz4 compression works only on Linux. For windows, an equivalent of .so compression is .dll file. Generating a .dll file is beyond the scope of my package. However, you can install the Ubuntu subsystem on windows and still be able to read .bag file from the Ubuntu subsystem.

Источник

I tried running pipenv install lz4 on 2 different machines and got the following on both. Works fine on python3.5

Collecting lz4==2.1.2 ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 0/1 — 00:00:00
Using cached https://files.pythonhosted.org/packages/f1/4f/878f1827042c5b6828bc23d160f31e242ec820810b8bd04b30b631029952/lz4-2.1.2.tar.gz
Building wheels for collected packages: lz4
Running setup.py bdist_wheel for lz4: started
Running setup.py bdist_wheel for lz4: finished with status ‘error’
Complete output from command /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/bin/python3.6 -u -c «import setuptools, tokenize;file=’/tmp/pip-install-jcwbyd6h/lz4/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d /tmp/pip-wheel-wgwe4jnx —python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/lz4
copying lz4/init.py -> build/lib.linux-x86_64-3.6/lz4
copying lz4/version.py -> build/lib.linux-x86_64-3.6/lz4
creating build/lib.linux-x86_64-3.6/lz4/block
copying lz4/block/init.py -> build/lib.linux-x86_64-3.6/lz4/block
creating build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/_compression.py -> build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/init.py -> build/lib.linux-x86_64-3.6/lz4/frame
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building ‘lz4._version’ extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/lz4
creating build/temp.linux-x86_64-3.6/lz4libs
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -I/home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/python3.6m -c lz4/_version.c -o build/temp.linux-x86_64-3.6/lz4/_version.o -O3 -Wall -Wundef
In file included from lz4/_version.c:38:0:
py3c/py3c.h:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1


Running setup.py clean for lz4
Failed to build lz4
Installing collected packages: lz4
Running setup.py install for lz4: started
Running setup.py install for lz4: finished with status ‘error’
Complete output from command /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/bin/python3.6 -u -c «import setuptools, tokenize;file=’/tmp/pip-install-jcwbyd6h/lz4/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-record-5dla696c/install-record.txt —single-version-externally-managed —compile —install-headers /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/site/python3.6/lz4:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/lz4
copying lz4/init.py -> build/lib.linux-x86_64-3.6/lz4
copying lz4/version.py -> build/lib.linux-x86_64-3.6/lz4
creating build/lib.linux-x86_64-3.6/lz4/block
copying lz4/block/init.py -> build/lib.linux-x86_64-3.6/lz4/block
creating build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/_compression.py -> build/lib.linux-x86_64-3.6/lz4/frame
copying lz4/frame/init.py -> build/lib.linux-x86_64-3.6/lz4/frame
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'lz4._version' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/lz4
creating build/temp.linux-x86_64-3.6/lz4libs
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilz4libs -Ipy3c -I/usr/include/python3.6m -I/home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/python3.6m -c lz4/_version.c -o build/temp.linux-x86_64-3.6/lz4/_version.o -O3 -Wall -Wundef
In file included from lz4/_version.c:38:0:
py3c/py3c.h:28:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Failed building wheel for lz4
Command «/home/david/.local/share/virtualenvs/shoup-MJkOh-Us/bin/python3.6 -u -c «import setuptools, tokenize;file=’/tmp/pip-install-jcwbyd6h/lz4/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-record-5dla696c/install-record.txt —single-version-externally-managed —compile —install-headers /home/david/.local/share/virtualenvs/shoup-MJkOh-Us/include/site/python3.6/lz4″ failed with error code 1 in /tmp/pip-install-jcwbyd6h/lz4/

Recommend Projects

  • React photo

    React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo

    Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo

    Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo

    TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo

    Django

    The Web framework for perfectionists with deadlines.

  • Laravel photo

    Laravel

    A PHP framework for web artisans

  • D3 photo

    D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Visualization

    Some thing interesting about visualization, use data art

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo

    Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo

    Microsoft

    Open source projects and samples from Microsoft.

  • Google photo

    Google

    Google ❤️ Open Source for everyone.

  • Alibaba photo

    Alibaba

    Alibaba Open Source for everyone

  • D3 photo

    D3

    Data-Driven Documents codes.

  • Tencent photo

    Tencent

    China tencent open source team.

Здравствуйте форумчане!
Первый раз с таким сталкиваюсь.
Пробовал переустанавливать python не помогло.
Полный текст ошибки из консоли:
(pythonparse) PS C:gitgit_practice> pip install lxml
Collecting lxml
Downloading lxml-4.9.1.tar.gz (3.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 2.0 MB/s eta 0:00:00
Preparing metadata (setup.py) … done
Installing collected packages: lxml
DEPRECATION: lxml 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 lxml … error
error: subprocess-exited-with-error

× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [76 lines of output]
Building lxml version 4.9.1.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:gitgit_practicepythonparseLibsite-packagessetuptoolscommandinstall.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 buildlib.win-amd64-cpython-311
creating buildlib.win-amd64-cpython-311lxml
copying srclxmlbuilder.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlcssselect.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmldoctestcompare.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlElementInclude.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlpyclasslookup.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlsax.py -> buildlib.win-amd64-cpython-311lxml
copying srclxmlusedoctest.py -> buildlib.win-amd64-cpython-311lxml
copying srclxml_elementpath.py -> buildlib.win-amd64-cpython-311lxml
copying srclxml__init__.py -> buildlib.win-amd64-cpython-311lxml
creating buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludes__init__.py -> buildlib.win-amd64-cpython-311lxmlincludes
creating buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlbuilder.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlclean.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmldefs.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmldiff.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlElementSoup.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlformfill.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlhtml5parser.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlsoupparser.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtmlusedoctest.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml_diffcommand.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml_html5builder.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml_setmixin.py -> buildlib.win-amd64-cpython-311lxmlhtml
copying srclxmlhtml__init__.py -> buildlib.win-amd64-cpython-311lxmlhtml
creating buildlib.win-amd64-cpython-311lxmlisoschematron
copying srclxmlisoschematron__init__.py -> buildlib.win-amd64-cpython-311lxmlisoschematron
copying srclxmletree.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmletree_api.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmllxml.etree.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmllxml.etree_api.h -> buildlib.win-amd64-cpython-311lxml
copying srclxmlincludesc14n.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesconfig.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesdtdvalid.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesetreepublic.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludeshtmlparser.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesrelaxng.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesschematron.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludestree.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesuri.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxinclude.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxmlerror.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxmlparser.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxmlschema.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxpath.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesxslt.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludes__init__.pxd -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludesetree_defs.h -> buildlib.win-amd64-cpython-311lxmlincludes
copying srclxmlincludeslxml-version.h -> buildlib.win-amd64-cpython-311lxmlincludes
creating buildlib.win-amd64-cpython-311lxmlisoschematronresources
creating buildlib.win-amd64-cpython-311lxmlisoschematronresourcesrng
copying srclxmlisoschematronresourcesrngiso-schematron.rng -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesrng
creating buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslRNG2Schtrn.xs l -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsl
copying srclxmlisoschematronresourcesxslXSD2Schtrn.xs l -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsl
creating buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_abstract_expand.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_dsdl_include.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_message.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_schematron_skeleton_for_xslt1.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1iso_svrl_for_xslt1.xsl -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
copying srclxmlisoschematronresourcesxsliso-schematron-xslt1readme.txt -> buildlib.win-amd64-cpython-311lxmlisoschematronresourcesxsliso-schematron-xslt1
running build_ext
building ‘lxml.etree’ extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with «Microsoft C++ Build Tools»: https://visualstudio.microsoft… ild-tools/
[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.
╰─> lxml

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

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Понравилась статья? Поделить с друзьями:
  • Lync exe системная ошибка
  • Lxml python install error
  • Lxc error unable to fetch gpg key from keyserver
  • Lx470 ошибка c1732
  • Lx470 ошибка c1531