# Java Perspective Method Issues

**URL:** <https://forum.inductiveautomation.com/t/java-perspective-method-issues/48220>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 25, 2021, 6:48pm UTC](https://forum.inductiveautomation.com/t/java-perspective-method-issues/48220 "2021-06-25T18:48:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![meredithj](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@meredithj](https://forum.inductiveautomation.com/u/meredithj)\
**Post date:** [June 25, 2021, 6:48pm UTC](https://forum.inductiveautomation.com/t/java-perspective-method-issues/48220/1 "2021-06-25T18:48:10Z")

</div>

I am trying to do some more advanced stuff inside of ignition perspective. In the past (think vision and gateway scripts) I have been able to use quite a few of the functions that Ignition has documented inside of the scripts. (Kinda similar to module development without as much effort.)

My latest endeavor is to try to use the configure binding method that is built in to add some bindings. I think I have a pretty good idea on how to do this but the issue that I have been running into is when I try importing any com.inductiveautomation.perspective library (ie. from com.inductiveautomation.perspective.gateway.api import PerspectiveContext), I get an error saying  
Error running window@C/root/Map.onMessageReceived(self, payload): Traceback (most recent call last): File "function:onMessageReceived", line 6, in onMessageReceived ImportError: No module named perspective

Is there any way that I can import these on either a message handler or custom method in perspective?

I know that nminchin had a similar issue in the link below.

> [@Function to convert json string or python dict into ObjectWrapper](http://forum.inductiveautomation.com/t/function-to-convert-json-string-or-python-dict-into-objectwrapper/32861/8):
>
> @PGriffith I’m trying to do this as well. I have a custom param that’s an Object with this format: [image] When I use dict() to convert to a dict, the base controlAccess works fine, but its key values are still ObjectWrappers. I assume i’m going to have to loop through it and convert all ObjectWrappers into dicts? I’ve just tried this and I can’t import the object: import com.inductiveautomation.perspective.gateway.script.PropertyTreeScriptWrapper With the error: ImportError: No module na…
