# NullPointerException when editing python 3rd party lib

**URL:** <https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182>\
**Category:** Ignition\
**Created:** [June 30, 2015, 6:37am UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182 "2015-06-30T06:37:49Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [June 30, 2015, 6:37am UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/1 "2015-06-30T06:37:49Z")

</div>

I’m trying to create a third party library/module, and while editing this error keeps on occurring,

and based from this blog [http://www.perfectabstractions.com/blog/new-scripting-features-in-ignition-77-part-1#external-python-modules](http://www.perfectabstractions.com/blog/new-scripting-features-in-ignition-77-part-1#external-python-modules) ignition will automatically pick up changes made from third party libraries, but it doesn’t seem like it.

Am i missing something here?

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [June 30, 2015, 2:42pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/2 "2015-06-30T14:42:07Z")

</div>

Can you show the code where you use the 3rd party library in an Ignition Python script?

---

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [July 1, 2015, 2:22am UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/3 "2015-07-01T02:22:05Z")

</div>

Here is the code

[code]import test

print test.print\_name(‘ella’) [/code]

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [July 13, 2015, 6:10pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/4 "2015-07-13T18:10:12Z")

</div>

I’ll start: Why are there a bunch of tildes in your file?

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 13, 2015, 7:08pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/5 "2015-07-13T19:08:49Z")

</div>

Because he is using the [vi text editor](https://en.wikipedia.org/wiki/Vi).

Tildes signify lines not present in the file.

---

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [July 14, 2015, 1:45am UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/6 "2015-07-14T01:45:47Z")

</div>

yap im using vi on console

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [July 14, 2015, 5:01pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/7 "2015-07-14T17:01:21Z")

</div>

Anything in the Gateway console webpage, or the wrapper.log file? Some how we need more data to find out what is happening.

Maybe the problem is related to more than one process trying to access the file. Does it work if you close the file in your editor and restart Ignition?

---

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [July 27, 2015, 8:52am UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/8 "2015-07-27T08:52:48Z")

</div>

There’s nothing on the wrapper.log.

And yes it does work when i close the file and restart ignition. So means that we cannot edit the third party lib while using it on ignition right?

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [July 27, 2015, 2:04pm UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/9 "2015-07-27T14:04:52Z")

</div>

We fixed a couple of NPE issues involving 3rd party Python libraries in Ignition 7.7.5. You might try downloading that version and see if it solves your particular problem.

---

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [August 4, 2015, 5:10am UTC](https://forum.inductiveautomation.com/t/nullpointerexception-when-editing-python-3rd-party-lib/10182/10 "2015-08-04T05:10:57Z")

</div>

Thank you for the update Kathy.

I will let you know if upgrading to 7.5 solves the issue.
