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

Unhandled exception in script #143

Open
Wumwat opened this issue May 3, 2024 · 1 comment
Open

Unhandled exception in script #143

Wumwat opened this issue May 3, 2024 · 1 comment

Comments

@Wumwat
Copy link

Wumwat commented May 3, 2024

The .exe file failed to launch and gave this error code:
Traceback (most recent call last):
File "app.py", line 815, in
File "app.py", line 182, in writeSettings
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Username\OneDrive\Documents\NSO-RPC\settings.txt'

@HotaruBlaze
Copy link
Contributor

This errors because you are using Onedrive for your documents folder, this causes alot of compatibility issues as the file is technically missing due to the nature of OneDrive "On-Demand".

Ill give you the easier fix to your current issue

The Easier solution.

Put NSO-RPC.exe on another location where OneDrive would not sync by default
such as C:\NSO-RPC\NSO-RPC.exe and create a folder named "NSO-RPC_Data" beside the exe.
So you'd have C:\NSO-RPC\NSO-RPC.exe & C:\NSO-RPC\NSO-RPC_Data

This puts NSO-RPC in "Portable mode" and will use the Data folder created above instead of your documents folder.

Note

Make sure you are using the pre-release version of NSO-RPC, as the latest does not contain the portable mode code and other big fixes, you can find it here: https://github.com/MCMi460/NSO-RPC/releases

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