You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to configure the RDF-to-SemanticWiki and When i use docker-compose up -d until #7 it works fine but then it gives this ERROR: Failed building wheel for lxml. Below is the error. Also, i did upgrade the pip but still the same error.
[ontology 4/5] RUN pip install --no-cache-dir -r requirements.txt:
11.46 Building wheel for MarkupSafe (setup.py): started
11.99 Building wheel for MarkupSafe (setup.py): finished with status 'done'
12.00 Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-cp312-cp312-linux_x86_64.whl size=30292 sha256=8687e6d9ddd0b3a61aa10daf7e1e89b2145e2be36093572ac607d6684a252a16
12.00 Stored in directory: /tmp/pip-ephem-wheel-cache-hesm3jr4/wheels/ff/6d/06/f08a8fbf292f9c43851e9d71174d98d1262f11ddaeb5dbe290
12.02 Successfully built coverage green MarkupSafe
12.02 Failed to build lxml
12.03 ERROR: Could not build wheels for lxml, which is required to install pyproject.toml-based projects
12.25
12.25 [notice] A new release of pip is available: 23.2.1 -> 23.3.1
12.25 [notice] To update, run: pip install --upgrade pip
failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
`
The text was updated successfully, but these errors were encountered:
Hi thanks for catching this!. The problem seems to be that the newest version of Python is missing a header file required by lxml. Since I don't work at MfN-Berlin anymore, I corrected this here: https://github.com/aot29/RDF-to-SemanticWiki
Hi.
I am trying to configure the RDF-to-SemanticWiki and When i use
docker-compose up -d
until #7 it works fine but then it gives thisERROR: Failed building wheel for lxml
. Below is the error. Also, i did upgrade the pip but still the same error.`#8 [ontology 4/5] RUN pip install --no-cache-dir -r requirements.txt
#8 2.765 Collecting atomicwrites==1.3.0 (from -r requirements.txt (line 1))
#8 2.917 Downloading atomicwrites-1.3.0-py2.py3-none-any.whl (5.9 kB)
#8 2.969 Collecting attrs==19.1.0 (from -r requirements.txt (line 2))
#8 2.981 Downloading attrs-19.1.0-py2.py3-none-any.whl (35 kB)
#8 3.025 Collecting certifi==2019.6.16 (from -r requirements.txt (line 3))
#8 3.040 Downloading certifi-2019.6.16-py2.py3-none-any.whl (157 kB)
#8 3.067 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 157.1/157.1 kB 9.1 MB/s eta 0:00:00
#8 3.122 Collecting chardet==3.0.4 (from -r requirements.txt (line 4))
#8 3.134 Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
#8 3.152 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.4/133.4 kB 394.7 MB/s eta 0:00:00
#8 3.183 Collecting colorama==0.4.1 (from -r requirements.txt (line 5))
#8 3.220 Downloading colorama-0.4.1-py2.py3-none-any.whl (15 kB)
#8 3.250 Collecting configparser==3.7.4 (from -r requirements.txt (line 6))
#8 3.263 Downloading configparser-3.7.4-py2.py3-none-any.whl (22 kB)
#8 3.892 Collecting coverage==4.4.1 (from -r requirements.txt (line 7))
#8 3.909 Downloading coverage-4.4.1.tar.gz (369 kB)
#8 3.945 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 369.8/369.8 kB 13.6 MB/s eta 0:00:00
#8 4.071 Preparing metadata (setup.py): started
#8 4.538 Preparing metadata (setup.py): finished with status 'done'
#8 4.598 Collecting green==2.16.1 (from -r requirements.txt (line 8))
#8 4.617 Downloading green-2.16.1.tar.gz (66 kB)
#8 4.640 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 66.2/66.2 kB 7.5 MB/s eta 0:00:00
#8 4.663 Preparing metadata (setup.py): started
#8 4.929 Preparing metadata (setup.py): finished with status 'done'
#8 4.955 Collecting idna==2.8 (from -r requirements.txt (line 9))
#8 4.974 Downloading idna-2.8-py2.py3-none-any.whl (58 kB)
#8 4.977 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.6/58.6 kB 198.3 MB/s eta 0:00:00
#8 5.062 Collecting importlib-metadata==0.19 (from -r requirements.txt (line 10))
#8 5.080 Downloading importlib_metadata-0.19-py2.py3-none-any.whl (26 kB)
#8 5.376 Collecting lxml==4.4.0 (from -r requirements.txt (line 11))
#8 5.393 Downloading lxml-4.4.0.tar.gz (4.5 MB)
#8 5.843 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.5/4.5 MB 10.1 MB/s eta 0:00:00
#8 6.446 Preparing metadata (setup.py): started
#8 6.944 Preparing metadata (setup.py): finished with status 'done'
#8 7.069 Collecting MarkupSafe==1.1.1 (from -r requirements.txt (line 12))
#8 7.085 Downloading MarkupSafe-1.1.1.tar.gz (19 kB)
#8 7.108 Preparing metadata (setup.py): started
#8 7.293 Preparing metadata (setup.py): finished with status 'done'
#8 7.354 Collecting more-itertools==7.2.0 (from -r requirements.txt (line 13))
#8 7.371 Downloading more_itertools-7.2.0-py3-none-any.whl (57 kB)
#8 7.433 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.3/57.3 kB 937.3 kB/s eta 0:00:00
#8 7.495 Collecting packaging==19.1 (from -r requirements.txt (line 14))
#8 7.509 Downloading packaging-19.1-py2.py3-none-any.whl (30 kB)
#8 7.571 Collecting pluggy==0.12.0 (from -r requirements.txt (line 15))
#8 7.623 Downloading pluggy-0.12.0-py2.py3-none-any.whl (17 kB)
#8 7.705 Collecting py==1.8.0 (from -r requirements.txt (line 16))
#8 7.739 Downloading py-1.8.0-py2.py3-none-any.whl (83 kB)
#8 7.751 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 83.7/83.7 kB 167.1 MB/s eta 0:00:00
#8 7.813 Collecting pyparsing==2.4.2 (from -r requirements.txt (line 17))
#8 7.840 Downloading pyparsing-2.4.2-py2.py3-none-any.whl (65 kB)
#8 7.847 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 kB 17.2 MB/s eta 0:00:00
#8 7.936 Collecting pytest==5.0.1 (from -r requirements.txt (line 18))
#8 7.954 Downloading pytest-5.0.1-py3-none-any.whl (221 kB)
#8 7.971 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 221.8/221.8 kB 16.3 MB/s eta 0:00:00
#8 8.011 Collecting pytest-cov==2.7.1 (from -r requirements.txt (line 19))
#8 8.022 Downloading pytest_cov-2.7.1-py2.py3-none-any.whl (17 kB)
#8 8.095 Collecting requests==2.22.0 (from -r requirements.txt (line 20))
#8 8.113 Downloading requests-2.22.0-py2.py3-none-any.whl (57 kB)
#8 8.116 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.0/58.0 kB 312.5 MB/s eta 0:00:00
#8 8.146 Collecting six==1.12.0 (from -r requirements.txt (line 21))
#8 8.161 Downloading six-1.12.0-py2.py3-none-any.whl (10 kB)
#8 8.195 Collecting Unidecode==1.1.1 (from -r requirements.txt (line 22))
#8 8.231 Downloading Unidecode-1.1.1-py2.py3-none-any.whl (238 kB)
#8 8.239 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 238.3/238.3 kB 108.2 MB/s eta 0:00:00
#8 8.300 Collecting urllib3==1.24.3 (from -r requirements.txt (line 23))
#8 8.341 Downloading urllib3-1.24.3-py2.py3-none-any.whl (118 kB)
#8 8.361 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 118.8/118.8 kB 403.3 MB/s eta 0:00:00
#8 8.409 Collecting wcwidth==0.1.7 (from -r requirements.txt (line 24))
#8 8.423 Downloading wcwidth-0.1.7-py2.py3-none-any.whl (21 kB)
#8 8.473 Collecting zipp==0.5.2 (from -r requirements.txt (line 25))
#8 8.501 Downloading zipp-0.5.2-py2.py3-none-any.whl (3.8 kB)
#8 8.845 Building wheels for collected packages: coverage, green, lxml, MarkupSafe
#8 8.849 Building wheel for coverage (setup.py): started
#8 9.986 Building wheel for coverage (setup.py): finished with status 'done'
#8 9.989 Created wheel for coverage: filename=coverage-4.4.1-py3-none-any.whl size=166618 sha256=6410c5f6a14bd7c9ba1c8532d78c07b9a42954c4ba62d07c35d22dcf1e03851f
#8 9.990 Stored in directory: /tmp/pip-ephem-wheel-cache-hesm3jr4/wheels/53/ca/3d/bb1d63ac88d345a8d8fbe5f3b50f0cc85ec0d55ec3e861d422
#8 9.997 Building wheel for green (setup.py): started
#8 10.35 Building wheel for green (setup.py): finished with status 'done'
#8 10.35 Created wheel for green: filename=green-2.16.1-py3-none-any.whl size=69351 sha256=5437c70b67071889a16e6d8d5ba82b3803009a9f26933edfcd8721bf3bda2645
#8 10.35 Stored in directory: /tmp/pip-ephem-wheel-cache-hesm3jr4/wheels/61/67/57/ef7f834f1ebbb83a56d28464eea87e2a33b22462053775fa0e
#8 10.36 Building wheel for lxml (setup.py): started
#8 11.24 Building wheel for lxml (setup.py): finished with status 'error'
#8 11.26 error: subprocess-exited-with-error
#8 11.26
#8 11.26 × python setup.py bdist_wheel did not run successfully.
#8 11.26 │ exit code: 1
#8 11.26 ╰─> [88 lines of output]
#8 11.26 Building lxml version 4.4.0.
#8 11.26 /tmp/pip-install-4ewc_aj4/lxml_6cb829a2acf040e595ce0229a5c39c04/setup.py:61: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
#8 11.26 import pkg_resources
#8 11.26 Building without Cython.
#8 11.26 Using build configuration of libxslt 1.1.35
#8 11.26 running bdist_wheel
#8 11.26 running build
#8 11.26 running build_py
#8 11.26 creating build
#8 11.26 creating build/lib.linux-x86_64-cpython-312
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/sax.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/cssselect.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/init.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/builder.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/init.py -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/diff.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/defs.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/init.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/builder.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/clean.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-cpython-312/lxml/html
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/isoschematron
#8 11.26 copying src/lxml/isoschematron/init.py -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron
#8 11.26 copying src/lxml/etree.h -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/etree_api.h -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-cpython-312/lxml
#8 11.26 copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/init.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-cpython-312/lxml/includes
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/rng
#8 11.26 copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/rng
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl
#8 11.26 copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl
#8 11.26 copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl
#8 11.26 creating build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-cpython-312/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
#8 11.26 running build_ext
#8 11.26 building 'lxml.etree' extension
#8 11.26 creating build/temp.linux-x86_64-cpython-312
#8 11.26 creating build/temp.linux-x86_64-cpython-312/src
#8 11.26 creating build/temp.linux-x86_64-cpython-312/src/lxml
#8 11.26 gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -DCYTHON_CLINE_IN_TRACEBACK=0 -I/usr/include/libxml2 -Isrc -Isrc/lxml/includes -I/usr/local/include/python3.12 -c src/lxml/etree.c -o build/temp.linux-x86_64-cpython-312/src/lxml/etree.o -w
#8 11.26 src/lxml/etree.c:289:12: fatal error: longintrepr.h: No such file or directory
#8 11.26 289 | #include "longintrepr.h"
#8 11.26 | ^~~~~~~~~~~~~~~
#8 11.26 compilation terminated.
#8 11.26 Compile failed: command '/usr/bin/gcc' failed with exit code 1
#8 11.26 creating tmp
#8 11.26 cc -I/usr/include/libxml2 -I/usr/include/libxml2 -c /tmp/xmlXPathInitwz6p2wa3.c -o tmp/xmlXPathInitwz6p2wa3.o
#8 11.26 cc tmp/xmlXPathInitwz6p2wa3.o -lxml2 -o a.out
#8 11.26 error: command '/usr/bin/gcc' failed with exit code 1
#8 11.26 [end of output]
#8 11.26
#8 11.26 note: This error originates from a subprocess, and is likely not a problem with pip.
#8 11.26 Running setup.py clean for lxml
#8 11.26 ERROR: Failed building wheel for lxml
#8 11.46 Building wheel for MarkupSafe (setup.py): started
#8 11.99 Building wheel for MarkupSafe (setup.py): finished with status 'done'
#8 12.00 Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-cp312-cp312-linux_x86_64.whl size=30292 sha256=8687e6d9ddd0b3a61aa10daf7e1e89b2145e2be36093572ac607d6684a252a16
#8 12.00 Stored in directory: /tmp/pip-ephem-wheel-cache-hesm3jr4/wheels/ff/6d/06/f08a8fbf292f9c43851e9d71174d98d1262f11ddaeb5dbe290
#8 12.02 Successfully built coverage green MarkupSafe
#8 12.02 Failed to build lxml
#8 12.03 ERROR: Could not build wheels for lxml, which is required to install pyproject.toml-based projects
#8 12.25
#8 12.25 [notice] A new release of pip is available: 23.2.1 -> 23.3.1
#8 12.25 [notice] To update, run: pip install --upgrade pip
#8 ERROR: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
`
The text was updated successfully, but these errors were encountered: