
I'm attempting to develop a project that has been operational for a while. The project makes use of mixbox which references this library. It seems that version 5.2.0 of lxml was released yesterday. Strangely, pytoml is encountering an error related to the pyproject.toml file. Can someone investigate this issue? #21 9.785 Saved /wheels/tox-2.7.0-py2.py3-none-any.whl 12:18:26 #21 9.806 Collecting lxml (from mixbox==1.0.5->-r requirements.txt (line 7)) 12:18:26 #21 10.88 Downloading https://.../lxml-5.2.0.tar.gz (3.7MB) 12:18:26 #21 15.22 Exception: 12:18:26 #21 15.22 Traceback (most recent call last): 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main 12:18:26 #21 15.22 status = self.run(options, args) 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/commands/wheel.py", line 161, in run 12:18:26 #21 15.22 resolver.resolve(requirement_set) 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 102, in resolve 12:18:26 #21 15.22 self._resolve_one(requirement_set, req) 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one 12:18:26 #21 15.22 abstract_dist = self._get_abstract_dist_for(req_to_install) 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for 12:18:26 #21 15.22 self.require_hashes 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 298, in prepare_linked_requirement 12:18:26 #21 15.22 abstract_dist.prep_for_dist(finder, self.build_isolation) 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 100, in prep_for_dist 12:18:26 #21 15.22 self.req.load_pyproject_toml() 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 428, in load_pyproject_toml 12:18:26 #21 15.22 str(self) 12:18:26 #21 15.22 File "/usr/lib/python3/dist-packages/pip/_internal/pyproject.py", line 43, in load_pyproject_toml 12:18:26 #21 15.22 pp_toml = pytoml.load(f) 12:18:26 #21 15.22 File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 303, in load 12:18:26 #21 15.22 filename=fin.name) 12:18:26 #21 15.22 File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 370, in loads 12:18:26 #21 15.22 toks.expect('=', 'expected_equals') 12:18:26 #21 15.22 File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 250, in expect 12:18:26 #21 15.22 self.error(error_text) 12:18:26 #21 15.22 File "/usr/share/python-wheels/pytoml-0.1.2-py2.py3-none-any.whl/pytoml/parser.py", line 253, in error 12:18:26 #21 15.22 raise TomlError(message, self.pos[0][0], self.pos[0][1], self._filename) 12:18:26 #21 15.22 pytoml.core.TomlError: /tmp/pip-wheel-29w0tw8j/lxml/pyproject.toml(26, 8): expected_equals

Hi, thanks for the report. da.ve.k.gupta@...com schrieb am 01.04.24 um 20:10:
Could you state the platform/architecture that you're running? And which Python version? I wonder why it picks up the source distribution instead of a ready-made binary wheel. lxml takes a while to build and requires external system libraries, so building from source is discouraged for "normal" use.
This seems to use an old version of pytoml, a library which (apparently) has been deprecated in favour of other tools. https://pypi.org/project/pytoml/ I'd try upgrading your build environment (pip, setuptools, wheel, etc.). Stefan

I ran into this same issue trying to install different packages in a few unrelated projects last week. `python -m pip install --upgrade pip` fixed the issue each time. All of them were failing with pip 19.x and working with, IIRC, v24.x Best, David Lakin -- On Mon, Apr 1, 2024, at 14:56, Stefan Behnel wrote:

Hi, thanks for the report. da.ve.k.gupta@...com schrieb am 01.04.24 um 20:10:
Could you state the platform/architecture that you're running? And which Python version? I wonder why it picks up the source distribution instead of a ready-made binary wheel. lxml takes a while to build and requires external system libraries, so building from source is discouraged for "normal" use.
This seems to use an old version of pytoml, a library which (apparently) has been deprecated in favour of other tools. https://pypi.org/project/pytoml/ I'd try upgrading your build environment (pip, setuptools, wheel, etc.). Stefan

I ran into this same issue trying to install different packages in a few unrelated projects last week. `python -m pip install --upgrade pip` fixed the issue each time. All of them were failing with pip 19.x and working with, IIRC, v24.x Best, David Lakin -- On Mon, Apr 1, 2024, at 14:56, Stefan Behnel wrote:
participants (4)
-
da.ve.k.gupta@gmail.com
-
David Lakin
-
Miro Hrončok
-
Stefan Behnel