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

"Could not load config file" #199

Open
Maverynthia opened this issue Oct 22, 2024 · 5 comments
Open

"Could not load config file" #199

Maverynthia opened this issue Oct 22, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Maverynthia
Copy link

Maverynthia commented Oct 22, 2024

Before opening an issue make sure that there are no duplicates and that you are on the latest version.
Describe the bug
Used main_tui to get a config file, config file isn't loaded when then using main
Also says it created a config file and it doesn't
(running main --setup does not run setup)

To Reproduce
Steps to reproduce the behavior:

  1. use main_tui.py get config file
  2. run main.py
  3. get error

Expected behavior
That it finds the config file and works.

Screenshots
image
image
image
image

You can see I'm running it from the source src directory. TUI puts the config file in that directory src\data\config.json\config.json. TUI can also open and read the file it creates.
C:\Python\iSponsorBlockTV-main\src

iSponsorBlockTV server (please complete the following information):
Windows 10 64
Python 3.11

Apple TV (please complete the following information):
Samsung Series 7

Other Info
Windows binaries need a .exe extension. The windows binary did the same thing.

@Maverynthia Maverynthia added the bug Something isn't working label Oct 22, 2024
@Soheab
Copy link

Soheab commented Oct 22, 2024

Does the config have a device?

@dmunozv04
Copy link
Owner

It sounds like another instance of this: #192 (comment)
TL;DR: Use main.py --config instead of main_tui.py since it was just made for ease in development. I should probably just remove it

@dmunozv04
Copy link
Owner

Interesting that main --setup doesn't run setup, that must be a bug. Try with main setup

@Maverynthia
Copy link
Author

Maverynthia commented Oct 27, 2024

Please post your config (making sure to redact sensitive info). Also, calling main_tui.py sets the data_dir to a different place that what the regular program does; try opening the configurator by using main.py --setup

image

Doesn't look like --config is working either. Where is the config.json supposed to go in relation to /src/

image

{
    "devices": [
        {
            "screen_id": "<randomNumbersAndLetters>",
            "name": "Snamsoong s743",
            "offset": 0
        }
    ],
    "apikey": "",
    "skip_categories": [
        "sponsor",
        "selfpromo",
        "interaction",
        "exclusive_access"
    ],
    "channel_whitelist": [],
    "skip_count_tracking": true,
    "mute_ads": false,
    "skip_ads": true,
    "auto_play": false
}

Mightbe helpful for it to say: Black config file created at /[dir]/[moredir]/config.json

@Soheab
Copy link

Soheab commented Oct 28, 2024

The config is supposed to be at /data/config.json/config.json
With the last one being the actual file.

data/
  config.json/
    config.json
src/
    iSponsorBlockTv/
        ...
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants