Error when scanning library

Post any problems / bugs / issues that are Mylar-related in here.
Post Reply
calimero666
Posts: 1
Joined: Sun Aug 30, 2015 9:14 am

Error when scanning library

Post by calimero666 »

Hello,
I just started using mylar and thanks for the effort.
I run mylar on a raspberry with raspbian. It has worked ok with a test on three files downloaded with transmission.

I wanted to include previous file so i used the scan comic library function.
But i have an error when i try to import some .cb* files.

This is the error i have in the logs:
Uncaught exception: Traceback (most recent call last):
File "/opt/Mylar/mylar/logger.py", line 159, in new_run
old_run(*args, **kwargs)
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/opt/Mylar/mylar/librarysync.py", line 581, in scanLibrary
myDB.upsert("importresults", newValue, controlValue)
File "/opt/Mylar/mylar/db.py", line 170, in upsert
self.action(query, valueDict.values() + keyDict.values())
File "/opt/Mylar/mylar/db.py", line 129, in action
sqlResult = self.connection.execute(query, args)
ProgrammingError: 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 Unicode strings.

So what can i do to import my files ?

best regards,
youssef
User avatar
evilhero
Site Admin
Posts: 2887
Joined: Sat Apr 20, 2013 3:43 pm
Contact:

Re: Error when scanning library

Post by evilhero »

I need to see the mylar.log file (not the GUI log) showing what's happening just prior to that error message getting logged (it will indicate the series name, filename, and an id# just prior to the import error).

It would appear that there are some invalid characters appearing either in the filenames, or how Mylar is attempting to parse the names. But without knowing what some of the problematic filenames might be (if that's what it is), then it's almost impossible to troubleshoot.

It might be that your datestamps might be causing an issue too, especially if it's not an english-based timestamp - either way, would still need to see the mylar.log file first to see exactly what's happening.
Post Reply