Please try to change
File "/var/PlexConnect/PlexAPI.py", line 245, in getSectionXML
for Dir in PMS.iter('Directory'): # copy "Directory" content
from .iter() to .getiterator().
Unfortunately .getiterator() is deprecated as of 2.7...
Reference:
Please try to change
File "/var/PlexConnect/PlexAPI.py", line 245, in getSectionXML
for Dir in PMS.iter('Directory'): # copy "Directory" content
from .iter() to .getiterator().
Unfortunately .getiterator() is deprecated as of 2.7...
Reference:
Baa, thanks for the help. I'll download the newest commit and see if everything is okay. I've edited my first post with the log set on high as an attachment to respect the rules a little more. I'll edit here once I see if everything works!
EDIT: Everything is back and running. Thanks again for all the good work. You guys are phenomenal.
I am running on OSX 10.7, python 2.7.3 and I et the spinning Accessing Trailers.
I just did a git pull.
I do get an exception
Exception happened during processing of request from ('192.168.1.79', 49626)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
self.process_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 638, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/Users/jeff/PlexConnect/WebServer.py", line 168, in do_GET
XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
File "/Users/jeff/PlexConnect/XMLConverter.py", line 350, in XML_PMS2aTV
PMS = PlexAPI.getSectionXML(PMS_list, options, auth_token)
File "/Users/jeff/PlexConnect/PlexAPI.py", line 249, in getSectionXML
File "/Users/jeff/PlexConnect/PlexAPI.py", line 264, in getURL
AttributeError: 'NoneType' object has no attribute 'startswith'
Any help is appreciated.
Thanks,
Jeff
It seems I had 2 PMS servers running (on 2 different machines). If I kill one it works fine. Maybe it just doesn't support multiple PMS servers properly.
Thanks.
Jeff
I am running on OSX 10.7, python 2.7.3 and I et the spinning Accessing Trailers.
I just did a git pull.
I do get an exception
Exception happened during processing of request from ('192.168.1.79', 49626)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 284, in _handle_request_noblock
self.process_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 310, in process_request
self.finish_request(request, client_address)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 638, in __init__
self.handle()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 340, in handle
self.handle_one_request()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 328, in handle_one_request
method()
File "/Users/jeff/PlexConnect/WebServer.py", line 168, in do_GET
XML = XMLConverter.XML_PMS2aTV(PMSaddress, self.path + args, options)
File "/Users/jeff/PlexConnect/XMLConverter.py", line 350, in XML_PMS2aTV
PMS = PlexAPI.getSectionXML(PMS_list, options, auth_token)
File "/Users/jeff/PlexConnect/PlexAPI.py", line 249, in getSectionXML
File "/Users/jeff/PlexConnect/PlexAPI.py", line 264, in getURL
AttributeError: 'NoneType' object has no attribute 'startswith'Any help is appreciated.
Thanks,
Jeff
Please try to change
File "/var/PlexConnect/PlexAPI.py", line 245, in getSectionXML
for Dir in PMS.iter('Directory'): # copy "Directory" contentfrom .iter() to .getiterator().
Unfortunately .getiterator() is deprecated as of 2.7...
Reference:
Hello,
I’ve used the following guide to install Python 2.7.x next to Python 2.6.x on my Centos 6.4 - 64 bit, as I didn’t want to break compatiblity:
http://linuxsysconfig.com/2013/03/running-multiple-python-versions-on-centos6rhel6sl6/
Currently I am starting PlexConnect like this:
cat PlexConnect.sh
cd /var/PlexConnect/
/usr/lib/python2.7/bin/python PlexConnect.py
While /usr/bin/python is still the 2.6.x version.
And it is working again, without making the suggested modification to
File "/var/PlexConnect/PlexAPI.py", line 245, in getSectionXML
for Dir in PMS.iter('Directory'): # copy "Directory" content
from .iter() to .getiterator().
Which is beneficial so that can just keep on updating using "git pull"
I’ve only done some limited testing, as I am late for work already ;-)
In case I do run into issues I’ll report back over the weekend.
The reason to use CentOS 6.4 is that it is officially supported as host platform for the Plex Media Server.
The problem is that it only comes with python 2.6, which was not an issue until now.
Cheers.
>> Which is beneficial so that can just keep on updating using "git pull"
Hello,
>> Which is beneficial so that can just keep on updating using "git pull"
If the "getiterator()" works for you - and still works on 2.7.x, I am tempted to change the code for this... :-D
I am at work now, with access to my CentOs box, however without access to my Apple Tv's so I am currently not abble to test.
I will make the suggested change during the weekend, and I'll test with both Python versions and I will report back. I hope that is ok.
>> python version
Isn't python 2.7.5 shipped with/included in PMS? AFAIK they need that for all their plugins.
Yes you are right, PMS includes a version of Python and the path to version this is:
/usr/lib/plexmediaserver/Resources/Python/bin/python.
It is not included in the PATH / Librarypath.
This is also version 2.7.3 like the one I installed next to python 2.6.x, I suppose I could have used that version as well in combination with the shell script.
Cheers
>> Which is beneficial so that can just keep on updating using "git pull"
If the "getiterator()" works for you - and still works on 2.7.x, I am tempted to change the code for this... :-D>> python versionIsn't python 2.7.5 shipped with/included in PMS? AFAIK they need that for all their plugins.
OK, so I've just tested it.
for Dir in PMS.getiterator('Directory'): # copy "Directory" content
Section = etree.SubElement(Server, 'Directory')
Section.set('title', Dir.get('title', 'title'))
Works with both Python 2.6.x and Python 2.7.x
Cheers,
DarkPassenger
Ok - it's in there now, and a bunch of other "enhancements". You should be good with the latest commit. If not... well.
I've just applied the latest commit and quickly tested it, and it works with both Python 2.6.x and Python 2.7.x.
Thanks a lot and cheers.