We could see the packages are installed already.
Original Message:
Sent: 08/28/26 12:17 PM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
Please install rust compiler and then try
dnf install rust cargo
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/28/26 10:11 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Please find the output below
autoh> /home/autoh/pydantic_core-2.46.4$pip3 install . -vv
Remote version of pip: 26.2.1
Local version of pip: 26.2.1
Was pip installed by pip? True
Using pip 26.2.1 from /home/autoh/.local/lib/python3.12/site-packages/pip (python 3.12)
Defaulting to user installation because normal site-packages is not writeable
Created temporary directory: /tmp/pip-build-tracker-z3dlsqb3
Initialized build tracking at /tmp/pip-build-tracker-z3dlsqb3
Created build tracker: /tmp/pip-build-tracker-z3dlsqb3
Entered build tracker: /tmp/pip-build-tracker-z3dlsqb3
Created temporary directory: /tmp/pip-install-20ovzpgu
Created temporary directory: /tmp/pip-ephem-wheel-cache-rrckr886
Processing ./.
Added file:///home/autoh/pydantic_core-2.46.4 to build tracker '/tmp/pip-build-tracker-z3dlsqb3'
ERROR: Could not install packages due to an OSError.
Check the permissions.
Traceback (most recent call last):
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 478, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 82, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 563, in collect_root_requirements
reqs = list(
^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 519, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 227, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 325, in __init__
super().__init__(
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 167, in __init__
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 245, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 336, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 664, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 783, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 82, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 49, in prepare_distribution_metadata
self.req.load_pyproject_toml()
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 481, in load_pyproject_toml
pyproject_toml_data = load_pyproject_toml(
^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/pyproject.py", line 63, in load_pyproject_toml
with open(pyproject_toml, encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] The file access permissions do not allow the specified action.: '/home/autoh/pydantic_core-2.46.4/pyproject.toml'
Removed file:///home/autoh/pydantic_core-2.46.4 from build tracker '/tmp/pip-build-tracker-z3dlsqb3'
Removed build tracker: '/tmp/pip-build-tracker-z3dlsqb3'
autoh> /home/autoh/pydantic_core-2.46.4$
autoh> /home/autoh/pydantic_core-2.46.4$pip3 install pydantic starlette click h11 typing-extensions
Defaulting to user installation because normal site-packages is not writeable
Collecting pydantic
Downloading pydantic-2.13.5-py3-none-any.whl.metadata (110 kB)
Collecting starlette
Using cached starlette-1.6.0-py3-none-any.whl.metadata (6.4 kB)
Collecting click
Using cached click-8.5.0-py3-none-any.whl.metadata (2.6 kB)
Collecting h11
Using cached h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
Requirement already satisfied: typing-extensions in /opt/freeware/lib/python3.12/site-packages (4.14.0)
Collecting annotated-types>=0.6.0 (from pydantic)
Using cached annotated_types-0.8.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.46.5 (from pydantic)
Downloading pydantic_core-2.46.5.tar.gz (472 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
installing build dependencies for pydantic-core did not run successfully.
exit code: 1
[32 lines of output]
Collecting maturin<2,>=1.10
Using cached maturin-1.15.0.tar.gz (385 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[5 lines of output]
/tmp/pip-build-env-mpg8tl2j/overlay/lib/python3.12/site-packages/setuptools/_vendor/wheel/bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
warn(
Python reports SOABI: cpython-312
Unsupported platform: 312
Rust not found, installing into a temporary directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
maturin
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pydantic-core' when installing build dependencies for pydantic-core
autoh> /home/autoh/pydantic_core-2.46.4$/opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/28/26 07:20 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Oh okay, then please only run these commands from the directory
pip3 install . -vv
pip3 install pydantic starlette click h11 typing-extensions
/opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
Let me know what happens
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/28/26 06:21 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
We could see its already in false state under Cargo.toml file . please assist next steps to proceed
lto = false
codegen-units = 1
strip = false
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/28/26 01:03 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
Is it possible for you to use vi or vim and then edit the Cargo.toml file to change around line 55 lto = false and strip = false?
And then try the pip commands?
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/27/26 10:17 PM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Installed sed command but still same error.
# /opt/freeware/bin/dnf install sed-4.9-1.ppc
Last metadata expiration check: 17:38:52 ago on Thu Aug 27 05:55:08 EST 2026.
Package sed-4.9-1.ppc is already installed.
Dependencies resolved.
Nothing to do.
Complete!
autoh> /home/autoh$cd /home/autoh/pydantic_core-2.46.4
autoh> /home/autoh/pydantic_core-2.46.4$cat << 'EOF' > patch.diff
> --- Cargo.toml
> +++ Cargo.toml
> @@ -55,9 +55,9 @@
> crate-type = ["cdylib", "rlib"]
>
> [profile.release]
> -lto = "fat"
> +lto = false
> codegen-units = 1
> -strip = true
> +strip = false
>
> [profile.bench]
> debug = true
> EOF
autoh> /home/autoh/pydantic_core-2.46.4$patch Cargo.toml patch.diff
patch: 3016-013 Too many file arguments.
autoh> /home/autoh/pydantic_core-2.46.4$sed -i 's/lto = "fat"/lto = false/g' Cargo.toml
sed: Not a recognized flag: i
Usage: sed [-n] [-u] Script [File ...]
sed [-n] [-u] [-e Script] ... [-f Script_file] ... [File ...]
autoh> /home/autoh/pydantic_core-2.46.4$sed -i 's/strip = true/strip = false/g' Cargo.toml
sed: Not a recognized flag: i
Usage: sed [-n] [-u] Script [File ...]
sed [-n] [-u] [-e Script] ... [-f Script_file] ... [File ...]
autoh> /home/autoh/pydantic_core-2.46.4$
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/27/26 02:22 PM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
dnf install sed-4.9-1.ppc
Please install sed and then try those sed commands and then the pip commands.
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/27/26 12:29 PM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
We executed it, we get error.
autoh> /home/autoh/pydantic_core-2.46.4$cat << 'EOF' > patch.diff
> --- Cargo.toml
> +++ Cargo.toml
> @@ -55,9 +55,9 @@
> crate-type = ["cdylib", "rlib"]
>
> [profile.release]
> -lto = "fat"
> +lto = false
> codegen-units = 1
> -strip = true
> +strip = false
>
> [profile.bench]
> debug = true
> EOF
autoh> /home/autoh/pydantic_core-2.46.4$patch Cargo.toml patch.diff
patch: 3016-013 Too many file arguments.
autoh> /home/autoh/pydantic_core-2.46.4$sed -i 's/lto = "fat"/lto = false/g' Cargo.toml
sed: Not a recognized flag: i
Usage: sed [-n] [-u] Script [File ...]
sed [-n] [-u] [-e Script] ... [-f Script_file] ... [File ...]
autoh> /home/autoh/pydantic_core-2.46.4$sed -i 's/strip = true/strip = false/g' Cargo.toml
sed: Not a recognized flag: i
Usage: sed [-n] [-u] Script [File ...]
sed [-n] [-u] [-e Script] ... [-f Script_file] ... [File ...]
autoh> /home/autoh/pydantic_core-2.46.4$
autoh> /home/autoh/pydantic_core-2.46.4$
autoh> /home/autoh/pydantic_core-2.46.4$pip3 install . -vv
Remote version of pip: 26.2.1
Local version of pip: 26.2.1
Was pip installed by pip? True
Using pip 26.2.1 from /home/autoh/.local/lib/python3.12/site-packages/pip (python 3.12)
Defaulting to user installation because normal site-packages is not writeable
Created temporary directory: /tmp/pip-build-tracker-y9wv8ksh
Initialized build tracking at /tmp/pip-build-tracker-y9wv8ksh
Created build tracker: /tmp/pip-build-tracker-y9wv8ksh
Entered build tracker: /tmp/pip-build-tracker-y9wv8ksh
Created temporary directory: /tmp/pip-install-j0rcexz4
Created temporary directory: /tmp/pip-ephem-wheel-cache-agust9q6
Processing ./.
Added file:///home/autoh/pydantic_core-2.46.4 to build tracker '/tmp/pip-build-tracker-y9wv8ksh'
ERROR: Could not install packages due to an OSError.
Check the permissions.
Traceback (most recent call last):
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 478, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 82, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 563, in collect_root_requirements
reqs = list(
^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 519, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 227, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 325, in __init__
super().__init__(
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 167, in __init__
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 245, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 336, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 664, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 783, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 82, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 49, in prepare_distribution_metadata
self.req.load_pyproject_toml()
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 481, in load_pyproject_toml
pyproject_toml_data = load_pyproject_toml(
^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/pyproject.py", line 63, in load_pyproject_toml
with open(pyproject_toml, encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] The file access permissions do not allow the specified action.: '/home/autoh/pydantic_core-2.46.4/pyproject.toml'
Removed file:///home/autoh/pydantic_core-2.46.4 from build tracker '/tmp/pip-build-tracker-y9wv8ksh'
Removed build tracker: '/tmp/pip-build-tracker-y9wv8ksh'
autoh> /home/autoh/pydantic_core-2.46.4$
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/27/26 06:41 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Please do the above inside /home/autoh/pydantic_core-2.46.4 folder.
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/27/26 06:39 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
cat << 'EOF' > patch.diff
--- Cargo.toml
+++ Cargo.toml
@@ -55,9 +55,9 @@
crate-type = ["cdylib", "rlib"]
[profile.release]
-lto = "fat"
+lto = false
codegen-units = 1
-strip = true
+strip = false
[profile.bench]
debug = true
EOF
patch Cargo.toml patch.diff
If that fails simply do
sed -i 's/lto = "fat"/lto = false/g' Cargo.toml
sed -i 's/strip = true/strip = false/g' Cargo.toml
Once the patch is applied or sed works the below three will succeed,
pip3 install . -vv
pip3 install pydantic starlette click h11 typing-extensions
/opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/27/26 06:10 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
We downloaded and executed the script but is shows some error, please find the output.
# rpm -qa | grep rust
rust1.96-community-license-1.96.0-0.ppc
rust1.96-1.96.0-0.ppc
rust-1.96.0-0.ppc
rust1.96-std-static-1.96.0-0.ppc
# /opt/freeware/bin/rustc --version
rustc 1.96.1 (8ef8a356f 2026-07-24) (IBM Open SDK for Rust on AIX 1.96.0.0 (5900-BND, 5765-J24))
root@oldtut004:/ # /opt/freeeware/bin/pip3 show pydantic_core
autoh> /home/autoh$pip3 show pydantic_core
Name: pydantic_core
Version: 2.41.4
Summary: Core functionality for Pydantic validation and serialization
Home-page: https://github.com/pydantic/pydantic-core
Author:
Author-email: Samuel Colvin <s@muelcolvin.com>, Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com>, David Montague <david@pydantic.dev>, David Hewitt <mail@davidhewitt.dev>, Sydney Runkle <sydneymarierunkle@gmail.com>, Victorien Plot <contact@vctrn.dev>
License-Expression: MIT
Location: /opt/freeware/lib64/python3.12/site-packages
Requires: typing-extensions
Required-by:
autoh> /home/autoh$cd pydantic_core-2.46.4
autoh> /home/autoh/pydantic_core-2.46.4$ls
Cargo.lock LICENSE PKG-INFO build.rs python tests
Cargo.toml Makefile README.md pyproject.toml src
autoh> /home/autoh/pydantic_core-2.46.4$patch Cargo.toml << 'EOF'
> --- Cargo.toml_orig
> +++ Cargo.toml
> @@ -55,9 +55,9 @@
> crate-type = ["cdylib", "rlib"]
>
> [profile.release]
> -lto = "fat"
> +lto = false
> codegen-units = 1
> -strip = true
> +strip = false
>
> [profile.bench]
> debug = true
> EOF
Processing... Looks like a unified context diff...
The text leading up to this was:
--------------------------
|--- Cargo.toml_orig
|+++ Cargo.toml
--------------------------
patch: 3016-007 Cannot open file Cargo.toml
autoh> /home/autoh/pydantic_core-2.46.4$
autoh> /home/autoh/pydantic_core-2.46.4$
autoh> /home/autoh/pydantic_core-2.46.4$
autoh> /home/autoh/pydantic_core-2.46.4$pip3 install . -vv
Remote version of pip: 26.2.1
Local version of pip: 26.2.1
Was pip installed by pip? True
Using pip 26.2.1 from /home/autoh/.local/lib/python3.12/site-packages/pip (python 3.12)
Defaulting to user installation because normal site-packages is not writeable
Created temporary directory: /tmp/pip-build-tracker-ivfue9kk
Initialized build tracking at /tmp/pip-build-tracker-ivfue9kk
Created build tracker: /tmp/pip-build-tracker-ivfue9kk
Entered build tracker: /tmp/pip-build-tracker-ivfue9kk
Created temporary directory: /tmp/pip-install-seugl7f0
Created temporary directory: /tmp/pip-ephem-wheel-cache-_zwuieg7
Processing ./.
Added file:///home/autoh/pydantic_core-2.46.4 to build tracker '/tmp/pip-build-tracker-ivfue9kk'
ERROR: Could not install packages due to an OSError.
Check the permissions.
Traceback (most recent call last):
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 478, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 82, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 563, in collect_root_requirements
reqs = list(
^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 519, in _make_requirements_from_install_req
cand = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 227, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 325, in __init__
super().__init__(
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 167, in __init__
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 245, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 336, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 664, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 783, in _prepare_linked_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/operations/prepare.py", line 82, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/distributions/sdist.py", line 49, in prepare_distribution_metadata
self.req.load_pyproject_toml()
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/req/req_install.py", line 481, in load_pyproject_toml
pyproject_toml_data = load_pyproject_toml(
^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/pyproject.py", line 63, in load_pyproject_toml
with open(pyproject_toml, encoding="utf-8") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] The file access permissions do not allow the specified action.: '/home/autoh/pydantic_core-2.46.4/pyproject.toml'
Removed file:///home/autoh/pydantic_core-2.46.4 from build tracker '/tmp/pip-build-tracker-ivfue9kk'
Removed build tracker: '/tmp/pip-build-tracker-ivfue9kk'
autoh> /home/autoh/pydantic_core-2.46.4$Read from remote host oldtut004: Connection reset by peer
Connection to oldtut004 closed.
client_loop: send disconnect: Broken pipe
$
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/27/26 03:31 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
I have reproduced what you have got in your environment. Here is how I came out of it. Can you try these steps and let me know?
dnf install rust cargo patch
export CC="gcc -maix64"
wget https://files.pythonhosted.org/packages/9d/56/921726b776ace8d8f5db44c4ef961006580d91dc52b803c489fafd1aa249/pydantic_core-2.46.4.tar.gz
tar -xf pydantic_core-2.46.4.tar.gz
cd pydantic_core-2.46.4
patch Cargo.toml << 'EOF'
--- Cargo.toml_orig
+++ Cargo.toml
@@ -55,9 +55,9 @@
crate-type = ["cdylib", "rlib"]
[profile.release]
-lto = "fat"
+lto = false
codegen-units = 1
-strip = true
+strip = false
[profile.bench]
debug = true
EOF
pip3 install . -vv
pip3 install pydantic starlette click h11 typing-extensions
/opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/27/26 02:29 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
Do you have rust compiler installed?
What is the output of
rpm -qa | grep rust
rustc --version
pip3 show pydantic_core
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/27/26 01:42 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Thank you,
We get some error, please find the output below.
autoh> /home/autoh$pip3 install pydantic starlette click h11 typing-extensions
Defaulting to user installation because normal site-packages is not writeable
Collecting pydantic
Downloading pydantic-2.13.4-py3-none-any.whl.metadata (109 kB)
Collecting starlette
Downloading starlette-1.6.0-py3-none-any.whl.metadata (6.4 kB)
Collecting click
Downloading click-8.5.0-py3-none-any.whl.metadata (2.6 kB)
Collecting h11
Downloading h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
Requirement already satisfied: typing-extensions in /opt/freeware/lib/python3.12/site-packages (4.14.0)
Collecting annotated-types>=0.6.0 (from pydantic)
Downloading annotated_types-0.8.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.46.4 (from pydantic)
Downloading pydantic_core-2.46.4.tar.gz (471 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
installing build dependencies for pydantic-core did not run successfully.
exit code: 1
[32 lines of output]
Collecting maturin<2,>=1.10
Downloading maturin-1.15.0.tar.gz (385 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[5 lines of output]
/tmp/pip-build-env-14kmfeni/overlay/lib/python3.12/site-packages/setuptools/_vendor/wheel/bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
warn(
Python reports SOABI: cpython-312
Unsupported platform: 312
Rust not found, installing into a temporary directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
maturin
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pydantic-core' when installing build dependencies for pydantic-core
autoh> /home/autoh$/opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/freeware/lib/python3.12/site-packages/fastapi/__init__.py", line 5, in <module>
from starlette import status as status
ModuleNotFoundError: No module named 'starlette'
autoh> /home/autoh$<class 'fastapi.applications.FastAPI'>
ksh: 0403-057 Syntax error: `newline or ;' is not expected.
autoh> /home/autoh$
autoh> /home/autoh$
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/25/26 07:19 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
Please use below to install them,
pip3 install pydantic starlette click h11 typing-extensions
Those dependencies are pretty straight. Please try it and let me know.
# /opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
<class 'fastapi.applications.FastAPI'>
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/25/26 07:03 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Thanks for your great support, App team conformed that is installed now, but still, they get some dependencies error pasted below.
Hi Ram,
FastAPI and Uvicorn are installed successfully:
fastapi 0.115.4
uvicorn 0.52.4
However, pip3 check reports unresolved dependencies and package compatibility issues:
without these modules fastapi wont work
pydantic
starlette
click
h11
pydantic_core
autoh> /home/autoh$pip3 check
fastapi 0.115.4 requires pydantic, which is not installed.
fastapi 0.115.4 requires starlette, which is not installed.
uvicorn 0.52.4 requires click, which is not installed.
uvicorn 0.52.4 requires h11, which is not installed.
pydantic-core 2.41.4 has requirement typing-extensions>=4.14.1, but you have typing-extensions 4.14.0.
pydantic_core 2.41.4 is not supported on this platform
facing these errors,
autoh> /home/autoh$/opt/freeware/bin/python3.12 -c "from fastapi import FastAPI; print(FastAPI)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/freeware/lib/python3.12/site-packages/fastapi/__init__.py", line 5, in <module>
from starlette import status as status
ModuleNotFoundError: No module named 'starlette'
autoh> /home/autoh$/opt/freeware/bin/python3.12 -c "import uvicorn; print(uvicorn.__version__)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/opt/freeware/lib/python3.12/site-packages/uvicorn/__init__.py", line 2, in <module>
from uvicorn.main import Server, main, run
File "/opt/freeware/lib/python3.12/site-packages/uvicorn/main.py", line 14, in <module>
import click
ModuleNotFoundError: No module named 'click'
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/25/26 04:46 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
You can fix the other issue using chmod -R 755 /opt/freeware/lib/python3.12/site-packages/fastapi-0.115.4.dist-info
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/25/26 04:46 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
I think the pip3 show output is fine. Is your fastapi working?
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/25/26 02:52 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Changed the permissions and executed again. Please find the output below.
autoh> /home/autoh$/opt/freeware/bin/pip3 show fastapi
Name: fastapi
Version: None
Summary:
Home-page:
Author:
Author-email:
License:
Location: /opt/freeware/lib/python3.12/site-packages
Requires:
Required-by:
autoh> /home/autoh$
autoh> /home/autoh$/opt/freeware/bin/python3 -c "^Jimport pkg_resources^Jfor d in pkg_resources.working_set:^J try:^J print(d.proje>
<string>:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 3660, in <module>
@_call_aside
^^^^^^^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 3644, in _call_aside
f(*args, **kwargs)
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 3673, in _initialize_master_working_set
working_set = _declare_state('object', 'working_set', WorkingSet._build_master())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 644, in _build_master
ws = cls()
^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 637, in __init__
self.add_entry(entry)
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 693, in add_entry
for dist in find_distributions(entry, True):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2338, in find_on_path
yield from factory(fullpath)
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2395, in distributions_from_metadata
if len(os.listdir(path)) == 0:
^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/opt/freeware/lib/python3.12/site-packages/fastapi-0.115.4.dist-info'
autoh> /home/autoh$ls -ld /opt/freeware/lib/python3.12/site-packages/fastapi-0.115.4.dist-info
drwx---r-x 3 root system 256 Aug 24 04:50 /opt/freeware/lib/python3.12/site-packages/fastapi-0.115.4.dist-info
autoh> /home/autoh$
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/25/26 02:42 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
chmod -R o+rx /opt/freeware/lib/python3.12/site-packages/fastapi-0.115.4.dist-info
Can you fix the permissions to this and then retry.
Also give me output of
pip3 show fastapi
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/25/26 02:25 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Adithya,
Please find the output below:
autoh> /home/autoh$/opt/freeware/bin/pip3 show
WARNING: ERROR: Please provide a package name or names.
autoh> /home/autoh$
autoh> /home/autoh$/opt/freeware/bin/python3 -c "
> import pkg_resources
> for d in pkg_resources.working_set:
> try:
> print(d.project_name, d.version)
> except Exception as e:
> print(f'ERROR in package folder: {d.egg_info}')
> "
<string>:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 3660, in <module>
@_call_aside
^^^^^^^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 3644, in _call_aside
f(*args, **kwargs)
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 3673, in _initialize_master_working_set
working_set = _declare_state('object', 'working_set', WorkingSet._build_master())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 644, in _build_master
ws = cls()
^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 637, in __init__
self.add_entry(entry)
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 693, in add_entry
for dist in find_distributions(entry, True):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2338, in find_on_path
yield from factory(fullpath)
File "/opt/freeware/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2395, in distributions_from_metadata
if len(os.listdir(path)) == 0:
^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/opt/freeware/lib/python3.12/site-packages/fastapi-0.115.4.dist-info'
autoh> /home/autoh$
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/25/26 02:12 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Please retry after dnf install python3-setuptools-80.9.0-3.noarch
Also, along with that code output please retry pip3 show commands and see if it works/paste the outputs if it does not.
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/24/26 11:38 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Please find the output, executed from root user and autoh user.
# /opt/freeware/bin/python3 -c "
> import pkg_resources
> for d in pkg_resources.working_set:
> try:
> print(d.project_name, d.version)
> except Exception as e:
> print(f'ERROR in package folder: {d.egg_info}')
> "
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'pkg_resources'
autoh> /home/autoh$/opt/freeware/bin/python3 -c "
> import pkg_resources
> for d in pkg_resources.working_set:
> try:
> print(d.project_name, d.version)
> except Exception as e:
> print(f'ERROR in package folder: {d.egg_info}')
> "
Traceback (most recent call last):
File "<string>", line 2, in <module>
ModuleNotFoundError: No module named 'pkg_resources'
Regards,
Ramkumar
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/24/26 07:57 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
There is something corrupted in the LPAR, with user autoh. We need to remove that. Not sure what package. That output will tell.
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/24/26 07:54 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
python3 -c "
import pkg_resources
for d in pkg_resources.working_set:
try:
print(d.project_name, d.version)
except Exception as e:
print(f'ERROR in package folder: {d.egg_info}')
"
What is the output of this?
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/24/26 05:18 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
We could see it installed now but below commands output shows some error. please assist
# /opt/freeware/bin/python3 -m pip install fastapi==0.115.4 uvicorn --no-deps
Collecting fastapi==0.115.4
Downloading fastapi-0.115.4-py3-none-any.whl.metadata (27 kB)
Collecting uvicorn
Downloading uvicorn-0.52.4-py3-none-any.whl.metadata (6.6 kB)
Downloading fastapi-0.115.4-py3-none-any.whl (94 kB)
Downloading uvicorn-0.52.4-py3-none-any.whl (79 kB)
Installing collected packages: uvicorn, fastapi
Successfully installed fastapi-0.115.4 uvicorn-0.52.4
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
root@oldtut004:/ # Read from remote host oldtut004: Connection reset by peer
Connection to oldtut004 closed.
client_loop: send disconnect: Broken pipe
$
autoh> /home/autoh$pip3 show fastapi
ERROR: Exception:
Traceback (most recent call last):
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 107, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 98, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/show.py", line 57, in run
if not print_results(
^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/show.py", line 192, in print_results
metadata_version_tuple = tuple(map(int, dist.metadata_version.split(".")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
autoh> /home/autoh$pip3 show uvicorn
ERROR: Exception:
Traceback (most recent call last):
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 107, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 98, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/show.py", line 57, in run
if not print_results(
^^^^^^^^^^^^^^
File "/home/autoh/.local/lib/python3.12/site-packages/pip/_internal/commands/show.py", line 192, in print_results
metadata_version_tuple = tuple(map(int, dist.metadata_version.split(".")))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''
Regards,
Ramkumar
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/24/26 03:09 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi,
python is still preferring the cached maturin and pydantic_core possibly because the pyproject.toml files have got updated.
Please run /opt/freeware/bin/python3 -m pip cache purge
This will clean the cache and then run
dnf install python3-pydantic*
dnf install python3-maturin
export CC="gcc -maix64"
/opt/freeware/bin/python3 -m pip install fastapi==0.115.4 uvicorn --no-deps
Hope this works. If not, paste me the output.
------------------------------
Aditya Kamath
------------------------------
Original Message:
Sent: 08/21/26 10:28 AM
From: Ram Kumar
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Aditya,
Thanks for your quick support, our use case is to implement API for one of the customer.
I tried the same after installed maturin python3-pydantic-core packages, but still same issue. please assist.
# /opt/freeware/bin/python3 -m pip install fastapi uvicorn
Collecting fastapi
Using cached fastapi-0.141.1-py3-none-any.whl.metadata (27 kB)
Collecting uvicorn
Using cached uvicorn-0.52.4-py3-none-any.whl.metadata (6.6 kB)
Collecting starlette>=0.46.0 (from fastapi)
Using cached starlette-1.6.0-py3-none-any.whl.metadata (6.4 kB)
Collecting pydantic>=2.9.0 (from fastapi)
Using cached pydantic-2.13.4-py3-none-any.whl.metadata (109 kB)
Requirement already satisfied: typing-extensions>=4.8.0 in ./opt/freeware/lib/python3.12/site-packages (from fastapi) (4.14.0)
Collecting typing-inspection>=0.4.2 (from fastapi)
Using cached typing_inspection-0.4.4-py3-none-any.whl.metadata (2.6 kB)
Collecting annotated-doc>=0.0.2 (from fastapi)
Using cached annotated_doc-0.0.5-py3-none-any.whl.metadata (6.5 kB)
Collecting click>=7.0 (from uvicorn)
Using cached click-8.4.2-py3-none-any.whl.metadata (2.6 kB)
Collecting h11>=0.8 (from uvicorn)
Using cached h11-0.16.0-py3-none-any.whl.metadata (8.3 kB)
Collecting annotated-types>=0.6.0 (from pydantic>=2.9.0->fastapi)
Using cached annotated_types-0.8.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.46.4 (from pydantic>=2.9.0->fastapi)
Using cached pydantic_core-2.46.4.tar.gz (471 kB)
Installing build dependencies ... error
error: subprocess-exited-with-error
installing build dependencies for pydantic-core did not run successfully.
exit code: 1
[32 lines of output]
Collecting maturin<2,>=1.10
Using cached maturin-1.14.1.tar.gz (369 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
Preparing metadata (pyproject.toml) did not run successfully.
exit code: 1
[5 lines of output]
/tmp/pip-build-env-by9dxpvd/overlay/lib/python3.12/site-packages/setuptools/_vendor/wheel/bdist_wheel.py:4: FutureWarning: The 'wheel' package is no longer the canonical location of the 'bdist_wheel' command, and will be removed in a future release. Please update to setuptools v70.1 or later which contains an integrated version of this command.
warn(
Python reports SOABI: cpython-312
Unsupported platform: 312
Rust not found, installing into a temporary directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
maturin
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'pydantic-core' when installing build dependencies for pydantic-core
Regards,
Ramkumar
------------------------------
Ram Kumar
------------------------------
Original Message:
Sent: 08/21/26 07:26 AM
From: Aditya Kamath
Subject: Python pip packages fastapi uvicorn installation error on AIX 7.2
Hi Ram,
Pydantic core has a problem in AIX for which compiler team is working on the same.
What I did in my LPAR is first install maturin and pydantic_core using dnf.
dnf install maturin python3-pydantic-core
After that you try manually like below. It will install. Please see my LPAR output below. Let me know if there are further issues. We'll help. Also, what is your use case for the same?
python3 -m pip install fastapi uvicorn
Installing collected packages: uvicorn, typing-extensions, annotated-types, typing-inspection, starlette, pydantic, fastapi
WARNING: The script uvicorn is installed in '//cust_install/opt/freeware/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Attempting uninstall: typing-extensions
Found existing installation: typing_extensions 4.12.2
Uninstalling typing_extensions-4.12.2:
Successfully uninstalled typing_extensions-4.12.2
---------------------------------- ----- 6/7 [fastapi] WARNING: The script fastapi is installed in '//cust_install/opt/freeware/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyopenssl 25.1.0 requires cryptography<46,>=41.0.5, but you have cryptography 48.0.0 which is incompatible.
Successfully installed annotated-types-0.8.0 fastapi-0.141.1 pydantic-2.13.4 starlette-1.6.0 typing-extensions-4.16.0 typing-inspection-0.4.4 uvicorn-0.52.4
------------------------------
Aditya Kamath
------------------------------