abracadabra
abracadabra copied to clipboard
Runtimeerror: Invalid settings file [settings]
While running song_recognizer initialise, I get an error : Invalid settings file [settings]
Hello @DavisK-rgb . Have you resolved this bug?
I am getting the same issue. I installed simple_settings via pip and did zero configuration thereafter.
Bump. Running into this when running: song_recogniser register file.mp3
Traceback (most recent call last): File "/home/tekchip/abracadabra/lib/python3.10/site-packages/abracadabra/storage.py", line 15, in get_cursor conn = sqlite3.connect(settings.DB_PATH, timeout=30) File "/home/tekchip/abracadabra/lib/python3.10/site-packages/simple_settings/core.py", line 94, in __getattr__ self.setup() File "/home/tekchip/abracadabra/lib/python3.10/site-packages/simple_settings/core.py", line 68, in setup self._load_settings_pipeline() File "/home/tekchip/abracadabra/lib/python3.10/site-packages/simple_settings/core.py", line 75, in _load_settings_pipeline strategy = self._get_strategy_by_file(settings_file) File "/home/tekchip/abracadabra/lib/python3.10/site-packages/simple_settings/core.py", line 91, in _get_strategy_by_file raise RuntimeError('Invalid settings file [{}]'.format(settings_file)) RuntimeError: Invalid settings file [settings]
Followed by:
`During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tekchip/abracadabra/bin/song_recogniser", line 33, in
Just managed to resolve at least this error via information here https://github.com/neulab/xnmt/issues/322
export PYTHONPATH="/path/to/project/:$PYTHONPATH"
This is followed by some sqlite errors but at least this one is resolved.
Looks like the following sqlite errors are issues with path. Related to the path change in my previous comment. So it resolves one problem but causes another. Seems the path change sends sqlite one directory too deep. Not yet sure how to remediate the path discrepancy between simple_file and sqlite just yet.