Issue PlexConnect on tav 6.0 and maverick

Hi,

 

i have done this already:

 

After i run sudo ./PlexConnect.py i get this error:

92:PlexConnect-master vanGal$ sudo ./PlexConnect.py
Traceback (most recent call last):
  File "./PlexConnect.py", line 17, in 
    import DNSServer, WebServer
  File "/Users/vanGal/Desktop/PlexConnect-master/DNSServer.py", line 76, in 
    import Settings
  File "/Users/vanGal/Desktop/PlexConnect-master/Settings.py", line 26
SyntaxError: Non-ASCII character '\xe2' in file /Users/vanGal/Desktop/PlexConnect-master/Settings.py on line 26, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

this is one part of my settings.py

g_settings = { \
    'enable_plexgdm'  :('True', 'False'), \
    'ip_pms'          :('192.168.178.10',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'port_dnsserver'  :('53',), \
    'ip_dnsmaster'    :(‘192.168.1.1’,), \
    'prevent_atv_update'           :('True', 'False'), \
    \
    'enable_plexconnect_autodetect':('True', 'False'), \
    'ip_plexconnect'  :('0.0.0.0',), \
    \
    'port_webserver'  :('80',), \
    'enable_webserver_ssl'         :('True', 'False'), \
    'port_ssl'        :('443',), \
    'certfile'        :('./assets/certificates/trailers.pem',), \
    \
    'loglevel'        :('Normal', 'High', 'Off'), \
    'logpath'         :('.',), \

Somebody knows whats wrong ? Thanks.

Hi,

i have done this already:

After i run sudo ./PlexConnect.py i get this error:

92:PlexConnect-master vanGal$ sudo ./PlexConnect.py
Traceback (most recent call last):
  File "./PlexConnect.py", line 17, in 
    import DNSServer, WebServer
  File "/Users/vanGal/Desktop/PlexConnect-master/DNSServer.py", line 76, in 
    import Settings
  File "/Users/vanGal/Desktop/PlexConnect-master/Settings.py", line 26
SyntaxError: Non-ASCII character '\xe2' in file /Users/vanGal/Desktop/PlexConnect-master/Settings.py on line 26, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

this is one part of my settings.py

g_settings = { \
    'enable_plexgdm'  :('True', 'False'), \
    'ip_pms'          :('192.168.178.10',), \
    'port_pms'        :('32400',), \
    \
    'enable_dnsserver':('True', 'False'), \
    'port_dnsserver'  :('53',), \
    'ip_dnsmaster'    :(‘192.168.1.1’,), \
    'prevent_atv_update'           :('True', 'False'), \
    \
    'enable_plexconnect_autodetect':('True', 'False'), \
    'ip_plexconnect'  :('0.0.0.0',), \
    \
    'port_webserver'  :('80',), \
    'enable_webserver_ssl'         :('True', 'False'), \
    'port_ssl'        :('443',), \
    'certfile'        :('./assets/certificates/trailers.pem',), \
    \
    'loglevel'        :('Normal', 'High', 'Off'), \
    'logpath'         :('.',), \

Somebody knows whats wrong ? Thanks.

you should not be editing settings.py, edit Settings.cfg which is created on first run.

Restore the original settings.py

Sorry but there is no, settings.cfg. I have download plexconnect again, but the settings.cfg is still missing.

Thanks.

Sorry but there is no, settings.cfg. I have download plexconnect again, but the settings.cfg is still missing.

Thanks.

as my first post said, it is created on first run.

Sorry my english is not so good and maybe i don't understand was you mean with "its created on first run". What do you mean exactly with that ? Appreciate your help.

Sorry my english is not so good and maybe i don't understand was you mean with "its created on first run". What do you mean exactly with that ? Appreciate your help.

when you run it, for the first time, it creates the Settings.cfg file.

But i can't run it , because i get the error that i post in my opening post.

What version of python are you running on your computer?

i have the 3.3.2 (32 Bit). 

Plexconnect doesn’t work with version 3. You need to install Python 2.7

Ok i have install the 2.7.5 but i still geht the error.  :huh:

From the original post...

'port_dnsserver' : ('53',), \
'ip_dnsmaster' : (‘192.168.1.1’,), \

Different kind of "high comma" sign: ' vs. ‘

Again: do not edit .py... run PlexConnect once and it will create a .cfg file.

Thanks Baa. Now it works. Will restore the settings.py end edit the .cfg as you told me. Many Thanks :)

When I run "Python PlexConnect.py" I get the following:

Traceback (most recent call last):

   File "PlexConnect.py", line 17, in

      from Version import __VERSION__

Import Error: No module named Version

I am running Python 2.7.6

When I run "Python PlexConnect.py" I get the following:

Traceback (most recent call last):

   File "PlexConnect.py", line 17, in

      from Version import __VERSION__

Import Error: No module named Version

I am running Python 2.7.6

Suggest you start your own thread rather than comment on a thread thats almost 12 months Old.

Read the "READ BEFORE POSTING" pinned thread (specifically the How to report an issue/Troublshooting section) and provide all the details asked for.

Suggest you start your own thread rather than comment on a thread thats almost 12 months Old.

Read the "READ BEFORE POSTING" pinned thread (specifically the How to report an issue/Troublshooting section) and provide all the details asked for.

Ok, thanks.

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