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

sqlite3 v3.45.1 breaks beets #5158

Open
hastyeagle opened this issue Mar 22, 2024 · 4 comments
Open

sqlite3 v3.45.1 breaks beets #5158

hastyeagle opened this issue Mar 22, 2024 · 4 comments

Comments

@hastyeagle
Copy link

After upgrading from sqlite3 v3.45.0 to v3.45.1, beets no longer runs. Downgrading to sqlite3 v3.45.0 fixes the issue.

Traceback (most recent call last):
  File "/usr/local/bin/beet", line 33, in <module>
    sys.exit(load_entry_point('beets==1.6.0', 'console_scripts', 'beet')())
  File "/usr/local/lib/python3.9/site-packages/beets/ui/__init__.py", line 1285, in main
    _raw_main(args)
  File "/usr/local/lib/python3.9/site-packages/beets/ui/__init__.py", line 1272, in _raw_main
    subcommand.func(lib, suboptions, subargs)
  File "/usr/local/lib/python3.9/site-packages/beets/ui/commands.py", line 1089, in list_func
    list_items(lib, decargs(args), opts.album)
  File "/usr/local/lib/python3.9/site-packages/beets/ui/commands.py", line 1084, in list_items
    for item in lib.items(query):
  File "/usr/local/lib/python3.9/site-packages/beets/library.py", line 1529, in items
    return self._fetch(Item, query, sort or self.get_default_item_sort())
  File "/usr/local/lib/python3.9/site-packages/beets/library.py", line 1503, in _fetch
    return super()._fetch(
  File "/usr/local/lib/python3.9/site-packages/beets/dbcore/db.py", line 1093, in _fetch
    rows = tx.query(sql, subvals)
  File "/usr/local/lib/python3.9/site-packages/beets/dbcore/db.py", line 858, in query
    cursor = self.db._connection().execute(statement, subvals)
sqlite3.OperationalError: no such column: text

Setup

  • OS: FreeBSD 14
  • Python version: 3.9.18
  • beets version: 1.6.0
  • Turning off plugins made problem go away (yes/no): no
@Dr-Blank

This comment has been minimized.

@hastyeagle
Copy link
Author

I found the issue. The sqlite3 FreeBSD package changed to not enabling DQS during build, which is recommended (but still not the default) by sqlite. So it looks like beets must still be using double-quoted strings.

@hastyeagle
Copy link
Author

Ahh -- just found this.

@sungo
Copy link

sungo commented May 7, 2024

beets is broken now on freebsd 13.1 and above until #4709 is fixed one way or another.

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

3 participants