# Issue running plexconnect

**URL:** https://forums.plex.tv/t/issue-running-plexconnect/64456
**Category:** Apps & Creations
**Created:** [April 23, 2014, 5:38pm UTC](https://forums.plex.tv/t/issue-running-plexconnect/64456 "2014-04-23T17:38:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cfircoo](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cfircoo](https://forums.plex.tv/u/cfircoo)
#### Post date: [April 23, 2014, 5:38pm UTC](https://forums.plex.tv/t/issue-running-plexconnect/64456/1 "2014-04-23T17:38:22Z")

</div>

Hi,

&nbsp;

I work according to the tutorial but when I run the file PlexConnect.py I got error:

&nbsp;

&nbsp; &nbsp; XML = getSectionXML(PMS\_list, {}, '')

NameError: name 'getSectionXML' is not defined

&nbsp;

&nbsp;

**these the all command output:**

&nbsp;

&nbsp;

C:\Program Files (x86)\PlexConnect-master\>PlexConnect.py

20:25:40 : \*\*\* local Server/Sections

20:25:40 \_\_main\_\_: \*\*\*

20:25:40 \_\_main\_\_: looking up Plex Media Server

20:25:40 \_\_main\_\_: \*\*\*

20:25:40 \_\_main\_\_: Sending discovery message: M-SEARCH \* HTTP/1.0

20:25:40 \_\_main\_\_: Received data from ('10.0.0.6', 32414)

20:25:40 \_\_main\_\_: Data received:

&nbsp;HTTP/1.0 200 OK

Content-Type: plex/media-server

Resource-Identifier: 7c6dc1ffd0043baf23d75286b3d7a4f751f66095

Name: PlexServer

Port: 32400

Updated-At: 1398188703

Version: 0.9.9.7.429-f80a8d6

&nbsp;

&nbsp;

20:25:41 \_\_main\_\_: GDM: Servers discovered: 1

20:25:41 \_\_main\_\_: PlexServer 10.0.0.6:32400

Traceback (most recent call last):

&nbsp; File "C:\Program Files (x86)\PlexConnect-master\PlexConnect.py", line 815, in

&nbsp; &nbsp; XML = getSectionXML(PMS\_list, {}, '')

NameError: name 'getSectionXML' is not defined

&nbsp;

&nbsp;

any idea?

&nbsp;

thanks,

Cfir.

---

<div class="post-metadata">

### Author: ![baa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/baa/32/2026_2.png) [@baa](https://forums.plex.tv/u/baa)
#### Post date: [April 23, 2014, 6:45pm UTC](https://forums.plex.tv/t/issue-running-plexconnect/64456/2 "2014-04-23T18:45:48Z")

</div>

The referenced line (815) is NOT in PlexConnect.py, but PlexAPI.py. It's part of the early test code for running/testing the PlexAPI functions on their own.

I have two issues with your report...

- my test code is out of date. :-(

- you somehow swapped the content of PlexAPI.py into PlexConnect.py. Try to re-download the sources (or unzip again...) to fix that.

---

<div class="post-metadata">

### Author: ![cfircoo](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cfircoo](https://forums.plex.tv/u/cfircoo)
#### Post date: [April 23, 2014, 7:57pm UTC](https://forums.plex.tv/t/issue-running-plexconnect/64456/3 "2014-04-23T19:57:43Z")

</div>

all working, thanks

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)
#### Post date: [December 21, 2019, 1:55am UTC](https://forums.plex.tv/t/issue-running-plexconnect/64456/4 "2019-12-21T01:55:47Z")

</div>

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