# Problem loading a library in pturmel's introspect script

**URL:** <https://forum.inductiveautomation.com/t/problem-loading-a-library-in-pturmels-introspect-script/40151>\
**Category:** General Discussion\
**Tags:** ignition79\
**Created:** [October 29, 2020, 9:42pm UTC](https://forum.inductiveautomation.com/t/problem-loading-a-library-in-pturmels-introspect-script/40151 "2020-10-29T21:42:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rod.holland](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rod.holland](https://forum.inductiveautomation.com/u/rod.holland)\
**Post date:** [October 29, 2020, 9:42pm UTC](https://forum.inductiveautomation.com/t/problem-loading-a-library-in-pturmels-introspect-script/40151/1 "2020-10-29T21:42:08Z")

</div>

A few weeks ago I grabbed pturmel's introspect script from this link:

> [@Finding all available methods from a component](http://forum.inductiveautomation.com/t/finding-all-available-methods-from-a-component/9670):
>
> Hello, I was wondering if there is a way to fetch all methods available from a component. In this topic, I can see a setVerticalScrollBarPolicy() function but I have absolutely no idea about where it ccomes from. [Subject: Check for vertical scroll bar](https://www.inductiveautomation.com:443/forum/viewtopic.php?p=48364#p48364) I’ve looked a little further and with the following code, i managed to get some of a component methods, but obviously not all as I can not find the setVerticalScrollBarPolicy() function in the returned array. powerTable = event.source.parent.ge…

I'd used it off and on for a time. Today I needed to look at something and fired it back up and got this:

File "module:project.MyFuncs", line 306, in introspect  
ImportError: cannot import name reflect

which refers to this line:

```
from java.lang import reflect

```

i.e the import statement. I checked pturmels original code, I hadn't accidently changed anything.

This is bombing out on lines that I'd previously run in my code and commented out. I checked with the person who maintains our ignition installation, and he said there had been no updates in the last week (which is when I remember last using that code).

I found only one other place in the forum where someone had run onto a problem like this, and I don't know if its common. I'm not sure if that post was ever resolved. So does anyone have any ideas or has seen this type of problem before?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 31, 2020, 12:23pm UTC](https://forum.inductiveautomation.com/t/problem-loading-a-library-in-pturmels-introspect-script/40151/2 "2020-10-31T12:23:48Z")

</div>

That only makes sense in a JRE that is doing security checks. What else was in the error report?
