Comments (5)
Hello @DavisK-rgb . Have you resolved this bug?
from abracadabra.
I am getting the same issue. I installed simple_settings via pip and did zero configuration thereafter.
from abracadabra.
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
sys.exit(load_entry_point('abracadabra==0.1', 'console_scripts', 'song_recogniser')())
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/abracadabra/scripts/song_recogniser.py", line 18, in register
recog.register_song(path)
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/abracadabra/recognise.py", line 33, in register_song
if song_in_db(filename):
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/abracadabra/storage.py", line 50, in song_in_db
with get_cursor() as (conn, c):
File "/usr/lib/python3.10/contextlib.py", line 135, in enter
return next(self.gen)
File "/home/tekchip/abracadabra/lib/python3.10/site-packages/abracadabra/storage.py", line 18, in get_cursor
conn.close()
UnboundLocalError: local variable 'conn' referenced before assignment`
from abracadabra.
Just managed to resolve at least this error via information here neulab/xnmt#322
export PYTHONPATH="/path/to/project/:$PYTHONPATH"
This is followed by some sqlite errors but at least this one is resolved.
from abracadabra.
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.
from abracadabra.
Related Issues (10)
- Reading in file for fingerprint really slow HOT 1
- On Windows PortAudio occasionally chucks an error in the tests HOT 1
- Should be using array instead of struct to speed up reading in wavs HOT 1
- Add to PyPI
- Write settings to the database
- Bug in hash_point_pair? HOT 3
- RuntimeError: Invalid settings file [settings] HOT 8
- recognize the time of the song
- Initilise not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from abracadabra.