From c73f822adbb66a4752a4341ed363fae81954a2ef Mon Sep 17 00:00:00 2001 From: digitalfox Date: Fri, 8 Nov 2024 19:10:25 -0500 Subject: [PATCH] [Fix] deps: Add setuptools for running from source Add "setuptools" to requirements.txt for running the BridgeApp from source code in a Python Virtual Environment. This fixes OpenVR raising an error when running on Python 3.12 with Kubuntu 24.04. See https://setuptools.pypa.io/en/latest/userguide/quickstart.html Example error: Traceback (most recent call last): File "[...]/VRC-Haptic-Pancake/BridgeApp/main.py", line 6, in from target_ovr import OpenVRTracker File "[...]/VRC-Haptic-Pancake/BridgeApp/target_ovr.py", line 1, in import openvr File "[...]/ignored-from-repo-venv/lib/python3.12/site-packages/openvr/__init__.py", line 8, in import pkg_resources ModuleNotFoundError: No module named 'pkg_resources' --- BridgeApp/requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/BridgeApp/requirements.txt b/BridgeApp/requirements.txt index 4bdff63..b07db01 100644 --- a/BridgeApp/requirements.txt +++ b/BridgeApp/requirements.txt @@ -3,4 +3,5 @@ openvr~=1.26.701 pydantic~=2.8.0 pyserial~=3.5 python-osc~=1.8.3 +setuptools~=75.3 websockets~=12.0