jesseward / plex-lastfm-scrobbler

Scrobble played audio items Last.FM from the Plex Media Server application.
MIT License
92 stars 13 forks source link

Unable to run script (Windows 2008) #32

Closed ghost closed 9 years ago

ghost commented 9 years ago

I'm trying to set up your scrobbler on my windows 2008 server running Plex. After running the setup, authing and editing the config to match windows locations instead of linux, trying to run the script (plex-scrobble.py) returns this error in DOS window

C:\Python27\Scripts>plex-scrobble.py Traceback (most recent call last): File "C:\Python27\Scripts\plex-scrobble.py", line 125, in c = cache_retry(config) File "C:\Python27\Scripts\plex-scrobble.py", line 41, in cache_retry cache = ScrobbleCache(config) File "C:\Python27\lib\site-packages\plex_scrobble\scrobble_cache.py", line 16, in init writeback=True) File "C:\Python27\lib\shelve.py", line 239, in open return DbfilenameShelf(filename, flag, protocol, writeback) File "C:\Python27\lib\shelve.py", line 223, in init Shelf.init(self, anydbm.open(filename, flag), protocol, writeback) File "C:\Python27\lib\anydbm.py", line 85, in open return mod.open(file, flag, mode) File "C:\Python27\lib\dbhash.py", line 18, in open return bsddb.hashopen(file, flag, mode) File "C:\Python27\lib\bsddbinit.py", line 364, in hashopen d.open(file, db.DB_HASH, flags, mode) bsddb.db.DBError: (14, 'Bad address')

The log file reads as follows:

2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] config : mediaserver_log_location -> C:\Users\Administrator\AppData\Local\Plex Media Server/Logs/Plex Media Server.log 2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] config : session -> C:\Users\Administrator/.config/plex-lastfm-scrobbler/session_key 2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] config : mediaserver_url -> http://localhost:32400 2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] config : config file location -> C:\Users\Administrator/.config/plex-lastfm-scrobbler/plex_scrobble.conf 2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] config : log_file -> C:/users/Administrator/.config/plex-lastfm-scrobbler/plex_scrobble.log 2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] config : cache_location -> C:users/Administrator/.config/plex-lastfm-scrobbler/plex_scrobble.cache 2015-04-16 02:45:41,447 [2940] [main ] [DEBUG] using last.fm session key=C:\Users\Administrator/.config/plex-lastfm-scrobbler/session_key , st_mtime=Thu Apr 16 02:17:30 2015 2015-04-16 02:45:41,447 [2940] [main cache_retry] [INFO] starting cache_retry thread.

Any idea what I'm either missing or messing up? Before reading through the readme on git I set it up on my windows 7 desktop, I did not get this error there, there it simply did not scrobble. Only difference in config was setting the server to my domain instead of localhost.

EDIT: Stupid typo issue.