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

Error when importing from plexWatch db #24

Closed
ooii opened this issue Jul 23, 2015 · 12 comments
Closed

Error when importing from plexWatch db #24

ooii opened this issue Jul 23, 2015 · 12 comments
Labels

Comments

@ooii
Copy link

ooii commented Jul 23, 2015

Hi,

I have a 2 year database from plexWatch which I want to keep. As soon as the import starts, I have the following error:

23-jul-2015 15:34:30 - DEBUG :: Thread-18 : PlexPy Importer :: PlexWatch data import in progress...
23-jul-2015 15:34:30 - DEBUG :: Thread-18 : PlexPy Importer :: Disabling monitoring while import in progress.
23-jul-2015 15:34:30 - INFO :: Thread-18 : Requesting users list refresh...
23-jul-2015 15:34:32 - INFO :: Thread-18 : Users list refreshed.
23-jul-2015 15:34:32 - DEBUG :: Thread-18 : PlexPy Importer :: Item has bad rating_key: http://www.canalplus.fr/c-sport/c-football/pid6597-c-enquetes-de-foot.html?vid=992848
23-jul-2015 15:34:32 - ERROR :: Thread-18 : Uncaught exception: Traceback (most recent call last):
  File "/private/tmp/plexpy/plexpy/logger.py", line 210, in new_run
    old_run(*args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/private/tmp/plexpy/plexpy/plexwatch_import.py", line 363, in import_from_plexwatch
    if str(row[2]).isdigit():
UnicodeEncodeError: 'ascii' codec can't encode characters in position 51-52: ordinal not in range(128)

Traceback (most recent call last):
  File "/private/tmp/plexpy/plexpy/logger.py", line 210, in new_run
    old_run(*args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/private/tmp/plexpy/plexpy/plexwatch_import.py", line 363, in import_from_plexwatch
    if str(row[2]).isdigit():
UnicodeEncodeError: 'ascii' codec can't encode characters in position 51-52: ordinal not in range(128)

Note that I have a lot of french content which may cause this issue.

@drzoidberg33
Copy link
Contributor

Thanks for the report. I think I can see what the issue is and will push a fix in my next commit.

@ooii
Copy link
Author

ooii commented Jul 23, 2015

Thanks. I'm expecting it.

@drzoidberg33
Copy link
Contributor

Please check if the latest commit b394ebc helps with this issue.

@ooii
Copy link
Author

ooii commented Jul 24, 2015

No, it does not.
Here is the output (seems the same):

24-jul-2015 08:48:58 - DEBUG :: Thread-13 : PlexPy Importer :: Item has bad rating_key: http://www.canalplus.fr/c-sport/c-football/pid6597-c-enquetes-de-foot.html?vid=992848
24-jul-2015 08:48:58 - ERROR :: Thread-13 : Uncaught exception: Traceback (most recent call last):
  File "/private/tmp/plexpy/plexpy/logger.py", line 210, in new_run
    old_run(*args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/private/tmp/plexpy/plexpy/plexwatch_import.py", line 363, in import_from_plexwatch
    if str(row[2]).isdigit():
UnicodeEncodeError: 'ascii' codec can't encode characters in position 51-52: ordinal not in range(128)

Traceback (most recent call last):
  File "/private/tmp/plexpy/plexpy/logger.py", line 210, in new_run
    old_run(*args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/private/tmp/plexpy/plexpy/plexwatch_import.py", line 363, in import_from_plexwatch
    if str(row[2]).isdigit():
UnicodeEncodeError: 'ascii' codec can't encode characters in position 51-52: ordinal not in range(128)

@drzoidberg33
Copy link
Contributor

Hmm, very difficult for me to figure out what's causing this then without having the database. Is it possible you could share the database with me via dropbox, etc?

If you don't have issues with it you can share to my email address timvdwest (at) gmail.com

This would be the fastest solution otherwise I have to do a bunch of trial and error.

@ooii
Copy link
Author

ooii commented Jul 24, 2015

I understand. I can, of course, share it with you: https://www.dropbox.com/s/0ypqu0cyctox5wt/plexWatch.db?dl=0

Farid.

Le 24 juil. 2015 à 09:58, drzoidberg33 notifications@github.com a écrit :

Hmm, very difficult for me to figure out what's causing this then without having the database. Is it possible you could share the database with me via dropbox, etc?

If you don't have issues with it you can share to my email address timvdwest (at) gmail.com

This would be the fastest solution otherwise I have to do a bunch of trial and error.


Reply to this email directly or view it on GitHub.

@drzoidberg33
Copy link
Contributor

Thank you, I'll look at this later today and provide a fix.

@ooii
Copy link
Author

ooii commented Jul 24, 2015

Thanks. Can I delete the file from dropbox?

Farid.

Le 24 juil. 2015 à 11:35, drzoidberg33 notifications@github.com a écrit :

Thank you, I'll look at this later today and provide a fix.


Reply to this email directly or view it on GitHub.

@drzoidberg33
Copy link
Contributor

Yes thanks I have already added it to my Dropbox account.

@drzoidberg33
Copy link
Contributor

Thanks so much for sharing the file, I have fixed the problem and some other issues along the way.

Please update to 5a92570, shut PlexPy down and delete any database files in your plexpy folder (plexpy.db, plexpy.db-wal, plexpy.db-shm) - this will delete any history logged in PlexPy already. Then restart again and try to import, or you can just do a clean install.

Let me know if you run into any more issues.

@ooii
Copy link
Author

ooii commented Jul 25, 2015

Thanks, it's OK now.

@drzoidberg33
Copy link
Contributor

Confirmed fixed. Closing.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants