# \[IGN-6751\]Unable to import scripting function on module with non-system namespace

**URL:** <https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372>\
**Category:** Module Development\
**Created:** [October 19, 2022, 2:34am UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372 "2022-10-19T02:34:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matthew\_Plumb](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@Matthew\_Plumb](https://forum.inductiveautomation.com/u/Matthew_Plumb)\
**Post date:** [October 19, 2022, 2:34am UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/1 "2022-10-19T02:34:07Z")

</div>

Hello,

I am building a module and attempting to expose a scripting function to the ignition python environment. This works fine when I embed within system namespace but as soon as I move to my own namespace I understand from the documentation that I must import this namespace. Unfortunately the import fails.

Definition within module java:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/394939869ad6378ff26750bcff10b67b51b0137b.png)

Then when I attempt to import the namespace / module it fails:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/7/2791f37b76ee73f3ea5ee875005ea826a36e0b64.png)

This works just fine if I change 'ignition\_module' to 'system' and skip the import.

Any ideas on how I can accomplish this?

Thanks

---

<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 19, 2022, 11:18am UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/2 "2022-10-19T11:18:40Z")

</div>

I tried once and never got it to work. /:

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 19, 2022, 5:54pm UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/3 "2022-10-19T17:54:23Z")

</div>

Aw, that's a bit lame. Everything works correctly, it's just that there's a whitelist of things we automatically import, it looks like.

We should probably fix that; if importing a module breaks anything, you can just remove the module.

---

<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 19, 2022, 7:04pm UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/4 "2022-10-19T19:04:33Z")

</div>

> [@paul-griffith](#):
>
> Everything works correctly

Are you sure? When I played with it, the non-system module-provided elements simply would not import. (It has been while.) I agree that only select names should auto-import. That doesn't need fixing.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 20, 2022, 12:27am UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/5 "2022-10-20T00:27:34Z")

</div>

No, you're right. I saw the hints working, and stepping through execution it appears to be doing the right things, but clearly isn't. I have both issues in a ticket.

---

<div class="post-metadata">

**Author:** ![mike42](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mike42](https://forum.inductiveautomation.com/u/mike42)\
**Post date:** [May 20, 2025, 6:22am UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/6 "2025-05-20T06:22:06Z")

</div>

Any updates on being able to add scripts in our own namespace outside of `system`?

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [May 20, 2025, 7:57am UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/7 "2025-05-20T07:57:32Z")

</div>

Still broken as of Sunday on 8.1.48.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 20, 2025, 3:17pm UTC](https://forum.inductiveautomation.com/t/ign-6751-unable-to-import-scripting-function-on-module-with-non-system-namespace/65372/8 "2025-05-20T15:17:36Z")

</div>

No. At this point the _earliest_ it will be picked up is some minor release of 8.3. There's just not a lot of demand for it, and there's some semi-significant risks associated with messing with the things involved.
