Stuck on installation

Hello!

 

I just followed the windows guide but i get this error

 

C:\Python27>python plexconnect.py
Traceback (most recent call last):
  File "plexconnect.py", line 17, in
    import Settings
  File "C:\Python27\Settings.py", line 47
    self.cfg = ConfigPar..ser.SafeConfigParser()
                         ^
SyntaxError: invalid syntax
 
 
ive tried to change the ip_pms manually to my routers ip and the coputer running plex ip but without any success.
 
ip_dnsmaster is set to my plexcomputer.
 
Any ideas?

Paste the contents of your settings.py file here please.

Paste the contents of your settings.py file here please.

Here we go

#!/usr/bin/python
 
import sys
from os import sep
import ConfigParser
 
from Debug import *  # dprint()
 
 
 
"""
Global Settings...
PMS: plexgdm, ip_pms, port_pms
DNS: ip_dnsmaster - IP of Router, ISP's DNS, ... [dflt: google public DNS]
HTTP: ip_httpforward, port_httpforward
"""
g_settings = { \
    'enable_plexgdm'  :('True', 'False'), \
    'ip_pms'          :('my router',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'ip_dnsmaster'    :('my plexserver',), \
    }
 
 
 
class CSettings():
    def __init__(self):
        dprint(__name__, 1, "init class CSettings")
        self.cfg = None
        self.section = 'PlexConnect'
        self.loadSettings()
        self.checkSection()
    
    
    
    # load/save config
    def loadSettings(self):
        dprint(__name__, 1, "load settings")
        # options -> default
        dflt = {}
        for opt in g_settings:
            dflt[opt] = g_settings[opt][0]
        
        # load settings
        self.cfg = ConfigPar..ser.SafeConfigParser()
        self.cfg.read(self.getSettingsFile())
    
    def saveSettings(self):
        dprint(__name__, 1, "save settings")
        f = open(self.getSettingsFile(), 'wb')
        self.cfg.write(f)
        f.close()
    
    def getSettingsFile(self):
        return sys.path[0] + sep + "Settings.cfg"
    
    def checkSection(self):
        modify = False
        # check for existing section
        if not self.cfg.has_section(self.section):
            modify = True
            self.cfg.add_section(self.section)
            dprint(__name__, 0, "add section {0}", self.section)
        
        for opt in g_settings:
            if not self.cfg.has_option(self.section, opt):
                modify = True
                self.cfg.set(self.section, opt, g_settings[opt][0])
                dprint(__name__, 0, "add option {0}={1}", opt, g_settings[opt][0])
                
        # save if changed
        if modify:
            self.saveSettings()
    
    
    
    # access/modify PlexCon.nect settings
    def getSetting(self, option):
        dprint(__name__, 1, "getsetting {0}", self.cfg.get(self.section, option))
        return self.cfg.get(self.section, option)
 
 
 
if __name__=="__main__":
    Settings = CSettings()
    
    option = 'enable_plexgdm'
    print Settings.getSetting(option)
    
    option = 'enable_dnsserver'
    print Settings.getSetting(option)
    
    Settings.saveSettings()
    del Settings
    'ip_pms'          :('my router',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'ip_dnsmaster'    :('my plexserver',), \
 
 
my router should be the IP of your PMS
my plexserver should be your ISP's DNS server (or you can use 8.8.8.8 which is Google's public DNS server

Thanks for the fast replies!

Ive change the info but still got the sam problem and error message.

/Robin

    'ip_pms'          :('my router',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'ip_dnsmaster'    :('my plexserver',), \
 
 
my router should be the IP of your PMS
my plexserver should be your ISP's DNS server (or you can use 8.8.8.8 which is Google's public DNS server

https://github.com/iBaa/PlexConnect/wiki/How-to-report-an-issue

Follow those instructions and it should provide enough details for us to help you.

I deleted the file en unziped it again and heres a new result

The server is found but not the dns. Ive tried my ISP dns and my routers with no success.

 
C:\Python27>python plexconnect.py
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: myplexserver
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
PlexConnect : PMS: myplexserver:32400 (added in my router/forwarded)
Traceback (most recent call last):
  File "", line 1, in
  File "C:\Python27\lib\multiprocessing\forking.py", line 380, in main
    prepare(preparation_data)
  File "C:\Python27\lib\multiprocessing\forking.py", line 489, in prepare
    file, path_name, etc = imp.find_module(main_name, dirs)
ImportError: No module named plexconnect
PlexConnect : DNSServer not alive. Shutting down.
 

https://github.com/iBaa/PlexConnect/wiki/How-to-report-an-issue

Follow those instructions and it should provide enough details for us to help you.

https://github.com/iBaa/PlexConnect/wiki/How-to-report-an-issue

Follow those instructions and it should provide enough details for us to help you.

  • Your ATV model (2 or 3) and firmware version (found under the ATV settings > general > about > Apple TV software): ATV3

  • The DNS server set on the ATV (found under the ATV settings > general > network > DNS): 10.0.1.1

  • The device and operating system (including version number) that PlexConnect is installed on: PC Windows 7

  • The local IP address of the device that PlexConnect is installed on: 10.0.1.88

  • The device and operating system (including version number) that the Plex media server (PMS) is installed on:  PC Windows 7

  • The local IP address of the device that the Plex media server (PMS) is installed on: 10.0.1.88

  • Where your media is stored (e.g. internal drive): 

  • The PlexConnect version number. If using Github source then a time and date of download (look at the creation date of the folder) and if you are using any testing branch e.g. the Elan/PlexInc one. The latest from this link in the wiki https://github.com/iBaa/PlexConnect/archive/XML_templates.zip downloaded 2013-06-08

  • The content of your 'Settings.cfg' file (if you do not have this file you are running an old version, please update)

[PlexConnect]
port_pms = 32400
enable_plexgdm = True
ip_pms = 10.0.1.88
ip_dnsmaster = 8.8.8.8
enable_dnsserver = True

f00b4r,

I never entered the IP of my PMS in the Settings.py which lists 'ip_pms' as '192.168.178.10'. That is definitely not the IP of my PMS, but everything works fine. So what is "192.168.178.10" for? Is it just a default setting to be left alone?

    'ip_pms'          :('my router',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'ip_dnsmaster'    :('my plexserver',), \
 
 
my router should be the IP of your PMS
my plexserver should be your ISP's DNS server (or you can use 8.8.8.8 which is Google's public DNS server
  • The DNS server set on the ATV (found under the ATV settings > general > network > DNS): 10.0.1.1

this should be 10.0.1.88

f00b4r,

I never entered the IP of my PMS in the Settings.py which lists 'ip_pms' as '192.168.178.10'. That is definitely not the IP of my PMS, but everything works fine. So what is "192.168.178.10" for? Is it just a default setting to be left alone?

It is a default that it falls back to if GDM (auto discovery does not work)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.