Skip to content

Commit ef40747

Browse files
Ryan Frawleymeta-codesync[bot]
authored andcommitted
Fix Aria SDK version logging in websocket bridge
Summary: `_log_startup_header()` in `websocket_bridge.py` was logging `Aria SDK : version unavailable` on every startup because it attempted `import projectaria_client_sdk` — which is the PyPI *distribution* name, not the importable module. The Client SDK installs as the `aria` package, so the import always failed and the `except Exception` branch always ran. Switch to `from aria._version import __version__ as aria_sdk_version`, mirroring what the SDK's own `__cli__.py` and `__gen2_cli__.py` do after D104702929. The startup banner now reports the real installed SDK version instead of `version unavailable`. ___ Differential Revision: D107395195 fbshipit-source-id: 2988a0d618c8713bb58e5e0d0148fffb0997c6fe
1 parent 09c481a commit ef40747

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

  • projectaria_ark_plugin/skills/web-app-creator/web-app-creator-backend/backend

projectaria_ark_plugin/skills/web-app-creator/web-app-creator-backend/backend/websocket_bridge.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,9 @@ def _log_startup_header():
5050
logger.info(f"Python : {platform.python_version()} ({platform.machine()})")
5151
logger.info(f"Platform : {platform.platform()}")
5252
try:
53-
import projectaria_client_sdk
53+
from aria._version import __version__ as aria_sdk_version
5454

55-
logger.info(
56-
f"Aria SDK : {getattr(projectaria_client_sdk, '__version__', 'unknown')}"
57-
)
55+
logger.info(f"Aria SDK : {aria_sdk_version}")
5856
except Exception:
5957
logger.info("Aria SDK : version unavailable")
6058
logger.info(f"websockets: {websockets.__version__}")

0 commit comments

Comments
 (0)