Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.1.2 wont run, error about no module Controllers #24

Closed
noideaman opened this issue Mar 2, 2024 · 3 comments
Closed

2.1.2 wont run, error about no module Controllers #24

noideaman opened this issue Mar 2, 2024 · 3 comments

Comments

@noideaman
Copy link
Contributor

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
Copy link
Contributor Author

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

@noideaman
Copy link
Contributor Author

noideaman commented Mar 2, 2024

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
Copy link
Owner

Fixed in v2.1.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants