I added the latest two components we need to compile, streamer and system api
https://github.com/apache/openserverless/pull/200

The PR is still draft because there is an issue compiling the system api

Compilation failed here

> [8/8] RUN uv venv && uv pip install --requirement pyproject.toml:
0.255 Using CPython 3.12.11 interpreter at: /usr/local/bin/python3
0.255 Creating virtual environment at: .venv
1.914   × Failed to build `flatdict==4.0.1`
1.914   ├─▶ The build backend returned an error
1.914   ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit
1.914       status: 1)
1.914
1.914       [stderr]
1.914       Traceback (most recent call last):
1.914         File "<string>", line 14, in <module>
1.914         File
1.914       
"/home/openserverless/.cache/uv/builds-v0/.tmphX9jmJ/lib/python3.12/site-packages/setuptools/build_meta.py",
1.914       line 333, in get_requires_for_build_wheel
1.914           return self._get_build_requires(config_settings,
requirements=[])
1.914
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.914         File
1.914       
"/home/openserverless/.cache/uv/builds-v0/.tmphX9jmJ/lib/python3.12/site-packages/setuptools/build_meta.py",
1.914       line 301, in _get_build_requires
1.914           self.run_setup()
1.914         File
1.914       
"/home/openserverless/.cache/uv/builds-v0/.tmphX9jmJ/lib/python3.12/site-packages/setuptools/build_meta.py",
1.914       line 520, in run_setup
1.914           super().run_setup(setup_script=setup_script)
1.914         File
1.914       
"/home/openserverless/.cache/uv/builds-v0/.tmphX9jmJ/lib/python3.12/site-packages/setuptools/build_meta.py",
1.914       line 317, in run_setup
1.914           exec(code, locals())
1.914         File "<string>", line 1, in <module>
1.914       ModuleNotFoundError: No module named 'pkg_resources'
1.914
1.914       hint: This error likely indicates that `[email protected]` depends on
1.914       `pkg_resources`, but doesn't declare it as a build dependency. If
1.914       `flatdict` is a first-party package, consider adding `pkg_resources`
1.914       to its `build-system.requires`. Otherwise, either add it to your
1.914       `pyproject.toml` under:
1.914
1.914       [tool.uv.extra-build-dependencies]
1.914       flatdict = ["pkg_resources"]
1.914
1.914       or `uv pip install pkg_resources` into the environment and
re-run with
1.914       `--no-build-isolation`.
------
Dockerfile:44
--------------------
  42 |     # Install dependencies
  43 |     USER openserverless
  44 | >>> RUN uv venv && uv pip install --requirement pyproject.toml
  45 |
  46 |     ENV HOME=/home/openserverless
--------------------
ERROR: failed to build: failed to solve: process "/bin/sh -c uv venv
&& uv pip install --requirement pyproject.toml" did not complete
successfully: exit code: 1

Can someone give a look and fix the admin api?
Thanks.


--
Michele Sciabarrà - [email protected] - linkedin.com/in/msciab
Apache OpenServerless committer - reddit.com/r/openserverless
Apache OpenWhisk PMC member  - Author Learning Apache OpenWhisk

Reply via email to