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

Fresh install fails to execute database.py #325

Open
raz0rsedge1975 opened this issue Mar 19, 2022 · 1 comment
Open

Fresh install fails to execute database.py #325

raz0rsedge1975 opened this issue Mar 19, 2022 · 1 comment

Comments

@raz0rsedge1975
Copy link

Describe the bug
Did a fresh install, min edit config, added music directory.

Affected version
stable

OS
debian Buster

xxx@yyy ~/botamusique> venv/bin/python mumbleBot.py --config configuration.ini
[Mar 19 14:52:28 INFO] database: no music table found. Creating music table version 4.
[Mar 19 14:52:28 INFO] library: rebuild directory cache
Traceback (most recent call last):
File "mumbleBot.py", line 866, in
var.cache.build_dir_cache()
File "/home/xxx/botamusique/media/cache.py", line 126, in build_dir_cache
results = self.db.query_music(Condition().and_equal('path', file))
File "/home/xxx/botamusique/database.py", line 383, in query_music
"WHERE id != 'info' AND %s" % condition_str, filler).fetchall()
UnicodeEncodeError: 'utf-8' codec can't encode character '\udce9' in position 35: surrogates not allowed

Additional Info
neither directory names nor file names in /music folder have UTF-8 nonchars or non-UTF8 chars.

@azlux
Copy link
Owner

azlux commented Mar 25, 2022

Can you check the database ?
I think It's a meta-data in this case.
sqlite> select * from music WHERE id != 'info';

If you have lot of music, the output can be big. Look the the last entry. and check on the folder what should be the next one.

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

2 participants