Closed flyingpang closed 5 months ago
With this and https://github.com/python-openxml/python-docx/issues/1385, I think it looks like pinning lxml
to the previous major version in 5a80006553f982ef47ebc9b4eb3652452b3c07e7 did more harm than good.
@musicinmybrain it looks like #1385 is unrelated to the lxml
pin.
However a build problem on Python 3.12 is enough to consider reverting this pin ...
Yeah, I'm going to pull that pin. It looks like the cure is worse than the disease. The intent was to allow it to install smoothly on Apple Silicon, but if it breaks elsewhere that's just as bad. We'll just have to live with some folks with newer Macs having to work a little harder to get lxml
installed and hope that problem goes away.
I'm getting the same error on pip install. If it ends up being relevant:
OSX 13.4.1
@flyingpang @musicinmybrain @evaneill I've pulled that pin on the develop
branch up on GitHub.
Can you try a clean install from that branch and see if that resolves this problem?
$ pip uninstall python-docx
$ pip install git+https://github.com/python-openxml/python-docx@develop
@flyingpang @musicinmybrain @evaneill I've pulled that pin on the
develop
branch up on GitHub.Can you try a clean install from that branch and see if that resolves this problem?
$ pip uninstall python-docx $ pip install git+https://github.com/python-openxml/python-docx@develop
Thanks, I can now install the develop branch in a clean environment
@evaneill thanks! That's super helpful :)
I'll push a new maintenance release here ...
https://github.com/python-openxml/python-docx@develop
I tested in my clean python3.12 env, it can successful install develop branch. Thanks!
Okay, v1.1.2 is up on PyPI :)
I tested that Python3.12 can successfully install lxml==5.2.1 in my mac and also can install python-docx==1.1.0 But pip install python-docx==1.1.1 required lxml<=4.9.2,>=3.1.0, raise errors as blow:
I try to upgrade pip, setuptools and wheel, The error is still unresolved. Could you please improve lxml version requirement in the future release?
`Using cached python_docx-1.1.1-py3-none-any.whl (242 kB) Building wheels for collected packages: lxml Building wheel for lxml (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for lxml (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [175 lines of output]