Git Product home page Git Product logo

Comments (5)

niemiaszek avatar niemiaszek commented on August 16, 2024

Hello @DavisK-rgb . Have you resolved this bug?

from abracadabra.

notaSWE avatar notaSWE commented on August 16, 2024

I am getting the same issue. I installed simple_settings via pip and did zero configuration thereafter.

from abracadabra.

tekchip avatar tekchip commented on August 16, 2024

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.

tekchip avatar tekchip commented on August 16, 2024

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.

tekchip avatar tekchip commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.