ZenithVal / OSCLeash

VRChat OSC tool to move a player in the direction of a stretched Physbone.
https://twitter.com/zenithval
MIT License
106 stars 14 forks source link

2.1.2 wont run, error about no module Controllers #24

Closed noideaman closed 7 months ago

noideaman commented 8 months ago

Error output

C:\Users\noideaman\AppData\Local\Programs\OSCLeash>OSCLeash.exe
Traceback (most recent call last):
  File "C:\Python311\Lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 124, in run
  File "C:\Python311\Lib\site-packages\cx_Freeze\initscripts\console.py", line 16, in run
  File "..\OSCLeash.py", line 7, in <module>
ModuleNotFoundError: No module named 'Controllers'

but running with python works just fine, i only installed python_osc over pip no extra modules

I have tried adding packages and modules to the build config, but to no avail so far.

noideaman commented 8 months ago

This same error pops up on my vr box which does not have python installed, with the same C:\python311 path

noideaman commented 8 months ago

Found the issue. Will need to fix realtive paths, as the the script builds out of the "build" folder. so it cant find the "controller" folder as it's working dir is one level too high Adding this to the build_options for the exe should help https://cx-freeze.readthedocs.io/en/stable/setup_script.html#cmdoption-arg-path

ZenithVal commented 7 months ago

Fixed in v2.1.3