lociii / jukebox

Democratic Jukebox - your democratic music player
MIT License
300 stars 62 forks source link

System cant index songs anymore #28

Closed WantedLange closed 10 years ago

WantedLange commented 11 years ago

/jukebox$ sudo bin/jukebox jukebox_index --path=/media/2tb/Musik/

Indexing music in /media/2tb/Musik/ This may take a while Traceback (most recent call last): File "bin/jukebox", line 14, in execute_manager(settings) File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/core/manage ment/init.py", line 459, in execute_manager utility.execute() File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/core/manage ment/init.py", line 382, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/core/manage ment/base.py", line 196, in run_from_argv self.execute(_args, _options.dict) File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/core/manage ment/base.py", line 232, in execute output = self.handle(_args, _options) File "/home/lange/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_co re/management/commands/jukebox_index.py", line 102, in handle self.index(options["path"]) File "/home/lange/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_co re/management/commands/jukebox_index.py", line 114, in index self.index(filename + "/") File "/home/lange/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_co re/management/commands/jukebox_index.py", line 114, in index self.index(filename + "/") File "/home/lange/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_co re/management/commands/jukebox_index.py", line 114, in index self.index(filename + "/") File "/home/lange/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_co re/management/commands/jukebox_index.py", line 116, in index indexer.index(filename) File "/home/lange/jukebox/local/lib/python2.7/site-packages/jukebox/jukebox_co re/management/commands/jukebox_index.py", line 16, in index if data: File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/models/q uery.py", line 130, in nonzero iter(self).next() File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/models/q uery.py", line 118, in _result_iter self._fill_cache() File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/models/q uery.py", line 892, in _fill_cache self._result_cache.append(self._iter.next()) File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/models/q uery.py", line 291, in iterator for row in compiler.results_iter(): File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/models/s ql/compiler.py", line 763, in results_iter for rows in self.execute_sql(MULTI): File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/models/s ql/compiler.py", line 818, in execute_sql cursor.execute(sql, params) File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/backends /util.py", line 40, in execute return self.cursor.execute(sql, params) File "/home/lange/jukebox/local/lib/python2.7/site-packages/django/db/backends /sqlite3/base.py", line 344, in execute return Database.Cursor.execute(self, query, params) django.db.utils.DatabaseError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicod e strings.

lociii commented 11 years ago

I'm currently not at home and will have a look at the issue next week.

WantedLange commented 11 years ago

Hi, have you got any news on this problem?

lociii commented 11 years ago

Just a short update: your problem has not been forgotten. I'll try to get on this on the weekend. Will use the djangocon sprints to fix it.

saz commented 11 years ago

I've just opened PR #31 which adds the output of the filename of the file currently indexed. This might make it much easier to find the source of this problem.

saz commented 11 years ago

If you run the indexer with --verbosity=2 as parameter, the name of the file currently indexed will be shown. Please paste the output in this issue, so it's easier to track down, where this bug is happening and when.

As there will be many lines (for each mp3 in your collection), you should paste the trace and a couple of lines above it.

lociii commented 10 years ago

Closed since no feedback was provided within 7 months.