-
Notifications
You must be signed in to change notification settings - Fork 598
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
Database connection error: near "(": sytax error #3175
Comments
Post Verbose/Debug logs |
27-Dec-2018 08:19:30 - INFO :: MainThread : Checking to see if the database has all tables.... |
Do you know what version of SQLite you're using? |
sqlite3.sqlite_version '3.6.21' |
Could be these lines Try replacing with:
|
There was no difference. Database connection error: near "(": sytax error still there |
Headphones used to work perfectly in the past. Should I uninstall Headphones and reinstall it? |
headphones/init.py starting line 447 It's this block of code here: exists = c.execute('SELECT * FROM pragma_index_info("have_matched_artist_album")').fetchone() My compiler complains the line creating the index is too long, so maybe it's being truncated? Sadly I'm not overly Python-y or SQLite-y, but commenting that section out gets me rolling again, |
Does it work like this?
|
@AdeHub that does not prevent the error. Python 2.7 |
Maybe this?
|
Headphones doesn’t run at all with that code. Should I uninstall Headphones and re-install it?
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
…________________________________
From: AdeHub <notifications@github.com>
Sent: Friday, January 4, 2019 3:38:35 PM
To: rembo10/headphones
Cc: rebeck; Author
Subject: Re: [rembo10/headphones] Database connection error: near "(": sytax error (#3175)
Maybe this?
# exists = c.execute('SELECT * FROM pragma_index_info("have_matched_artist_album")').fetchone()
# if not exists:
c.execute(
'CREATE INDEX IF NOT EXISTS have_matched_artist_album ON have(Matched ASC, ArtistName COLLATE NOCASE ASC, AlbumTitle COLLATE NOCASE ASC)')
c.execute('DROP INDEX IF EXISTS have_matched')
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3175 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFzC8V7kQjCm4OzumjAxhDKO8kxsxol1ks5u_7vLgaJpZM4ZixqR>.
|
Can you try the |
I am not sure how to do it. |
@AdeHub the code in develop does allow headphones to start correctly. |
Starting headphones I get "Can't connect to the database: near "(": syntax error. My music is connected to a Drobo NAS. Any ideas?
The text was updated successfully, but these errors were encountered: