opensandbox-server 1.1.0 on PyPI is missing services/fast_sandbox/generated — the server fails to start (ModuleNotFoundError)
What happens
pip install opensandbox-server==1.1.0 (or uv tool install) gives a server that dies at import time:
File ".../opensandbox_server/services/fast_sandbox/create_mapping.py", line 35, in <module>
from opensandbox_server.services.fast_sandbox.generated import (
fastpath_pb2 as pb2,
)
ModuleNotFoundError: No module named 'opensandbox_server.services.fast_sandbox.generated'main.py → integrations.renew_intent → services.factory → services.fast_sandbox → create_mapping imports the generated protobuf modules unconditionally, so every runtime (Docker included) is affected, not only fsb users.
Evidence
The published artifacts do not contain the package:
$ pip download --no-deps opensandbox-server==1.1.0
$ unzip -l opensandbox_server-1.1.0-py3-none-any.whl | grep -c fast_sandbox/generated
0
$ pip download --no-deps --no-binary :all: opensandbox-server==1.1.0
$ tar tzf opensandbox_server-1.1.0.tar.gz | grep -c fast_sandbox/generated
0while the tagged tree has them and builds them in:
$ git checkout release-1.1.0 && cd server
$ ls opensandbox_server/services/fast_sandbox/generated/
__init__.py fastpath_pb2.py fastpath_pb2_grpc.py
$ SETUPTOOLS_SCM_PRETEND_VERSION=1.1.0 uv build
$ unzip -l dist/opensandbox_server-1.1.0-py3-none-any.whl | grep -c fast_sandbox/generated
3
$ tar tzf dist/opensandbox_server-1.1.0.tar.gz | grep -c fast_sandbox/generated
3So the checkout release-packages.yml built 1.1.0 from did not have server/opensandbox_server/services/fast_sandbox/generated/ (the [tool.ruff] exclude for that directory is lint-only; hatch's [tool.hatch.build] include = ["opensandbox_server"] picks it up when it is present). The 0.2.3 wheel was fine.
Workaround
Install from the tag instead of PyPI:
SETUPTOOLS_SCM_PRETEND_VERSION=1.1.0 uv tool install --force \
"opensandbox-server @ git+https://github.com/opensandbox-group/[email protected]#subdirectory=server"Suggestion
Re-publish 1.1.0 (or a 1.1.1) from a checkout that contains the generated modules, and add a check to the release job that the built wheel imports (python -c "import opensandbox_server.main") before upload — it would have caught this.
Seen on macOS (Python 3.13, uv 0.9.x) and Debian (Python 3.12) alike.
Source: opensandbox-group/OpenSandbox