The file paths are causing an issue, due to \ being an escape character. Anywhere in the config file you need to add a ‘\’ it should be replaced by ‘\\’.
i.e. plex_data_folder = ‘C:\\Users\\Andy\\AppData\\Local\\Plex Media Server’
The file paths are causing an issue, due to \ being an escape character. Anywhere in the config file you need to add a ‘\’ it should be replaced by ‘\\’.
i.e. plex_data_folder = ‘C:\\Users\\Andy\\AppData\\Local\\Plex Media Server’
@eadwyn said:
The file paths are causing an issue, due to \ being an escape character. Anywhere in the config file you need to add a ‘\’ it should be replaced by ‘\\’.i.e. plex_data_folder = ‘C:\\Users\\Andy\\AppData\\Local\\Plex Media Server’
thank you, for some reason my brain looked over the double slash in the “example” bit and then completely dismissed it and just put single slash instead not thinking it would matter - my images now upload to cloudinary, now I just need to get it to actually send the email, lol
this is now the new error, lol…
python script runs through and uploads all the images to cloudinary (i’ve checked) then just acts as though its done (doesnt say complete or anything though
no email so checked the logs and after the tv filter section part it just says
ERROR:Logging an uncaught exception
using my full email adress ‘me@gmail.com’ along with my password
on port 587 and SSL = False
tried also 465 and True
… no dice

I don’t use gmail for stuff like this as i’ve seen lots of problems in other forums. You might need to get an app specific password to relay mail through gmail?
@SketchDes1gns said:
this is now the new error, lol…python script runs through and uploads all the images to cloudinary (i’ve checked) then just acts as though its done (doesnt say complete or anything though
no email so checked the logs and after the tv filter section part it just says
ERROR:Logging an uncaught exception
using my full email adress ‘me@gmail.com’ along with my password
on port 587 and SSL = False
tried also 465 and True… no dice
Were there any logs after the exception (should log the actual exception)? I’m guessing it is this common issue with gmail though where you need to enable access to less secure apps: Less secure apps & your Google Account - Google Account Help
I didnt want to copy the whole lot in but it was after all the tv stuff in the log…
the bottom few lines were this…
2016-09-22 16:49:17,684 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “plexEmail.py”, line 1306, in
tvEpisodes = OrderedDict(sorted(tvEpisodes.iteritems(), key=lambda t: t[1][config[‘episode_sort_2’]], reverse=config[‘episode_sort_2_reverse’]))
File “plexEmail.py”, line 1306, in
tvEpisodes = OrderedDict(sorted(tvEpisodes.iteritems(), key=lambda t: t[1][config[‘episode_sort_2’]], reverse=config[‘episode_sort_2_reverse’]))
KeyError: ‘season_index’
@eadwyn said:
Were there any logs after the exception (should log the actual exception)? I’m guessing it is this common issue with gmail though where you need to enable access to less secure apps: Less secure apps & your Google Account - Google Account Help
oh, and sorry - less secure apps was already turned on (I really cant find an edit button so I’m sorry for all the posts)
I swear I must look like a complete fool here :0/
sorry but seriously thank you for helping
@SketchDes1gns said:
I didnt want to copy the whole lot in but it was after all the tv stuff in the log…
the bottom few lines were this…2016-09-22 16:49:17,684 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “plexEmail.py”, line 1306, in
tvEpisodes = OrderedDict(sorted(tvEpisodes.iteritems(), key=lambda t: t[1][config[‘episode_sort_2’]], reverse=config[‘episode_sort_2_reverse’]))
File “plexEmail.py”, line 1306, in
tvEpisodes = OrderedDict(sorted(tvEpisodes.iteritems(), key=lambda t: t[1][config[‘episode_sort_2’]], reverse=config[‘episode_sort_2_reverse’]))
KeyError: ‘season_index’
Looking through my own posts in this thread…
https://forums.plex.tv/discussion/comment/1187409/#Comment_1187409
https://forums.plex.tv/discussion/comment/1187417/#Comment_1187417
You can see that I encountered something similar.
I managed to work out what Show was causing the issue by removing them and then rescanning media in Plex.
Eventually the problem just “Went Away” so Im guessing whatever data was missing from the scrape was eventually populated but nobody was ever really able to tell me what caused it.
I believe there is better logging enabled now if you turn on debug logging and then try to see what the log says.
@harroguk said:
Looking through my own posts in this thread…
https://forums.plex.tv/discussion/comment/1187409/#Comment_1187409
https://forums.plex.tv/discussion/comment/1187417/#Comment_1187417You can see that I encountered something similar.
I managed to work out what Show was causing the issue by removing them and then rescanning media in Plex.Eventually the problem just “Went Away” so Im guessing whatever data was missing from the scrape was eventually populated but nobody was ever really able to tell me what caused it.
I believe there is better logging enabled now if you turn on debug logging and then try to see what the log says.
May I ask how you knew where to start looking for the shows/movies that were causing the problem?
I’ve got a fairly hefty collection so wouldnt know where to start and cant find any easily determinable information from the log other than I think the only show I’ve got that goes up to season 12/13 is family guy, lol
changed the logging to “DEBUG” and this is what it threw out (first chunk seems to be working fine then something goes wrong but I may as well be reading another language looking at it)…
2016-09-23 12:39:07,342 - INFO:main: tvEpisodes[episode][‘parent_id’] = 17508
2016-09-23 12:39:07,342 - DEBUG:main: season_hash = 43c982e454ba66ac8ca3840fddee760bbae7a485
2016-09-23 12:39:07,342 - DEBUG:main: season_thumb_url = metadata://seasons/11/posters/com.plexapp.agents.thetvdb_6d025f8c71c4bce011443544dd9ae5cb93a40a01
2016-09-23 12:39:07,342 - DEBUG:main: show_hash = b64e58a0b981a33fa8b724189c6fe5383b1dc550
2016-09-23 12:39:07,342 - DEBUG:main: show_thumb_url = metadata://posters/com.plexapp.agents.thetvdb_acbc4a9d046b957239a68435e57d44ce7348c207
2016-09-23 12:39:07,342 - DEBUG:main: hash = 6dd3cb02d6f198ff43005065a0bdc1d21a3098ca
2016-09-23 12:39:07,342 - DEBUG:main: user_thumb_url = metadata://seasons/12/episodes/3/thumbs/com.plexapp.agents.thetvdb_28ad4100cff1de91d95babfbf233b73779d335b2
2016-09-23 12:39:07,342 - INFO:main: tvEpisodes[episode][‘parent_id’] = 17772
2016-09-23 12:39:07,342 - DEBUG:main: season_hash = 7ac925b245a69d8c53510ba7dd08f2d74a490291
2016-09-23 12:39:07,342 - DEBUG:main: season_thumb_url = metadata://seasons/12/posters/com.plexapp.agents.thetvdb_e7b76ec2068c053ba7ad73f0ba4f57783eee9690
2016-09-23 12:39:07,342 - DEBUG:main: show_hash = b64e58a0b981a33fa8b724189c6fe5383b1dc550
2016-09-23 12:39:07,342 - DEBUG:main: show_thumb_url = metadata://posters/com.plexapp.agents.thetvdb_acbc4a9d046b957239a68435e57d44ce7348c207
2016-09-23 12:39:07,342 - ERROR:Logging an uncaught exception
Traceback (most recent call last):
File “plexEmail.py”, line 1306, in
tvEpisodes = OrderedDict(sorted(tvEpisodes.iteritems(), key=lambda t: t[1][config[‘episode_sort_2’]], reverse=config[‘episode_sort_2_reverse’]))
File “plexEmail.py”, line 1306, in
tvEpisodes = OrderedDict(sorted(tvEpisodes.iteritems(), key=lambda t: t[1][config[‘episode_sort_2’]], reverse=config[‘episode_sort_2_reverse’]))
KeyError: ‘season_index’
TLDR: Still broke for newest server version I assume?
@SketchDes1gns I’ll take a look this weekend and see if I can figure out what is happening. If you could pm the whole debug log it might help figure out what data is breaking the script.
@AstroZombie1 Hmm, it’s not broken for the latest version. If you are referencing adrianwi’s issue, that was found to be a permissions issue.
@eadwyn said:
@SketchDes1gns I’ll take a look this weekend and see if I can figure out what is happening. If you could pm the whole debug log it might help figure out what data is breaking the script.@AstroZombie1 Hmm, it’s not broken for the latest version. If you are referencing adrianwi’s issue, that was found to be a permissions issue.
My bad just updated to the latest script.
@eadwyn said:
@SketchDes1gns I’ll take a look this weekend and see if I can figure out what is happening. If you could pm the whole debug log it might help figure out what data is breaking the script.
Thank you, that would be awesome, I’m not great with scripts and such but usually after a bit of tinkering I can get most things working so I’m pulling my hair out here.
Don’t rush if you’re busy, the help is much appreciated whenever you can, I’ll pm the log later tonight when I get back from the pub, ha (or maybe tomorrow if it’s too late) thank you again, this is such a cool feature to have that I can’t just give up on it ![]()
pm’d you the log as requested
@eadwyn said:
@SketchDes1gns I’ll take a look this weekend and see if I can figure out what is happening. If you could pm the whole debug log it might help figure out what data is breaking the script.
I used the date/time variable (notify updates since xxxx) to find what day it stopped working on.
Then I looked at what had been added on that day and removed the entire show from the library (Just moved it to a different disk)
Ran the script to check it processed correctly.
Then added the shows one by one, running the script after each one until I found the shows that caused the script to fail.
As it self resolved I suspect that it is due to empty data fields that haven’t been populated by your plex scrapers. You could try adding/changing them?
That’s what I was going to do (and tried) but I had to move a lot of folders around due to space issues and a whole bunch of things for added as “new” when they weren’t really, I’m going to go and try it again later today for the last day as there should only be one show added and see if the problem is still there.
All of my info on plex for the media is visible though and shouldn’t be anything that doesn’t have details pulled for it as I’m really picky about stuff like that (it’s one of the reasons I use it over anything else)
… and that worked, ha
1 day back sends,
2 days back throws up the same issue as before, I’ll try to work backwards from that and see if I can figure out what caused it
@SketchDes1gns said:
… and that worked, ha1 day back sends,
2 days back throws up the same issue as before, I’ll try to work backwards from that and see if I can figure out what caused it
Glad it works now. I’ll go through the logs you sent me and see if I can spot anything obvious. One thing I know for sure is the next release will include better checking on anything grabbed from the db to make sure empty/null items aren’t breaking the script.
@eadwyn said:
If you are having issues with missing posters, please take this release and let me know if you are seeing any issues around posters.
I just ran the latest script and I’m missing a few posters for TV shows. I checked the log and I’m getting:
2016-09-27 20:33:00,530 - INFO:processImage: Uploading to cloudinary 2016-09-27 20:33:00,530 - INFO:uploadToCloudinary: begin 2016-09-27 20:33:00,534 - INFO:uploadToCloudinary: not an image
@Semperfratres said:
Thanks Dereck. I’ll look into this. If I can get away from the CSS for the web page, it will make things easier for me.The reason I went to Drive to host my page is because I couldn’t get XAMPP to work correctly for me.
Not to mention having an open port for the server on my PC wasn’t really appealing to me either.
Thanks again for the info,
Tim
sorry to bother you but looked through here and couldnt find anyone else trying to store it on google drive (which is what I’m doing now) - got everything all working fine now except that one thing, ha
I’ve got emails going out and it creates a page (which I can open if I navigate to the folder where it stores)
also got the drive application on my computer to sync the folders contents into my drive but how would I go about setting the correct domain name and path (presumably would need my google ID in there somewhere or at least the public sharing link created?)
if this is a simple enough question anyone can feel free to answer it for me
I have tried setting things up with a rather complicated xampp setup but I honestly have no idea what I’m doing with that and seems irrelevant if I can just have the script create the page, then drive sync it for me anyway