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.gu...@...com schrieb am 01.04.24 um 20:10:
>> 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)
>
> 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.
>
>
>> #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
>
> 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
>
> _______________________________________________
> lxml - The Python XML Toolkit mailing list -- lxml@python.org
> To unsubscribe send an email to lxml-le...@python.org
> https://mail.python.org/mailman3/lists/lxml.python.org/
> Member address: mail.python-...@moddev.pro
_______________________________________________
lxml - The Python XML Toolkit mailing list -- lxml@python.org
To unsubscribe send an email to lxml-le...@python.org
https://mail.python.org/mailman3/lists/lxml.python.org/
Member address: arch...@mail-archive.com

Reply via email to