Can't build some AUR packages

When I try to update (or remove and then install) ‘thonny’ I get-

ERROR Missing dependencies:
jaraco.text → inflect → pydantic>=1.9.1
==> ERROR: A failure occurred in build().

>pacman -Qi python-setuptools


Version : 1:65.6.3-1


> pacman -Qi python-pydantic


Version : 1.10.4-1

however in python

>>> import pkg_resources
>>> pkg_resources.get_distribution("pydantic").version



How can I fix this so python returns the correct version and allows build to continue?

This is the version from the repo package.

This could be the one you installed manually through pip, you can verify this through:
$ pip show pydantic
uninstall the pip version and you should be good to go.

Thank you
I didn’t realise I had this installed manually.
I thought I had only installed python packages with pip in a virtual env.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.