# ImportError: Error loading module getVolt: No module named f

**URL:** <https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494>\
**Category:** Ignition\
**Created:** [May 27, 2014, 5:37pm UTC](https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494 "2014-05-27T17:37:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bokechal](https://avatars.discourse-cdn.com/v4/letter/b/6f9a4e/32.png) [@bokechal](https://forum.inductiveautomation.com/u/bokechal)\
**Post date:** [May 27, 2014, 5:37pm UTC](https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494/1 "2014-05-27T17:37:46Z")

</div>

Hi,  
I have this import statement defined at the beginning of script in project’s script module

global system, app, time, sys, fnmatch  
import system, app, time, sys, fnmatch

It works fine in designer preview and script playground. However, I got an error in gateway console that it has error loading module during client runtime.  
Do anyone have any idea how can I solve the problem?

2014-05-21 11:22:09 PM TagChangeScriptManager Error executing tag change script: Maginit/sendToolCommand  
Traceback (most recent call last):  
File “TagChangeScript:Maginit/sendToolCommand”, line 12, in   
ImportError: Error loading module getVolt: No module named fnmatch

Our gateway version is 7.6.6 (b2014040112)  
Java Sun Microsystems Inc. 1.6.0\_24

---

<div class="post-metadata">

**Author:** ![andrea.montresor](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@andrea.montresor](https://forum.inductiveautomation.com/u/andrea.montresor)\
**Post date:** [May 26, 2016, 7:50pm UTC](https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494/2 "2016-05-26T19:50:59Z")

</div>

I have the same problem with another module created by me.

How you solve this problem?

Andrea

---

<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:** [May 26, 2016, 9:16pm UTC](https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494/3 "2016-05-26T21:16:01Z")

</div>

This should be fixed in version 7.8.1

---

<div class="post-metadata">

**Author:** ![JHortenberry](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JHortenberry](https://forum.inductiveautomation.com/u/JHortenberry)\
**Post date:** [January 17, 2018, 7:39pm UTC](https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494/4 "2018-01-17T19:39:54Z")

</div>

I'm seeing a similar Import Error on 7.9.4

Details are a little different...

The error occurs when I attempt to execute a global script from the Script Console / Designer / Client.

Script functionality was validated by copying into the script console and running locally.

Function:

def test():  
&nbsp;&nbsp;&nbsp;&nbsp; return 'TEST'

\*\* Also present in shared.Company.utils

Trial 1:

test()

Returns:

'TEST'

> > > >

Trial 2:

shared.Company.utils.test()

Error:

Traceback (most recent call last):  
File "", line 31, in   
ImportError: Error loading module utils: IndentationError: ('unindent does not match any outer indentation level', ('module:shared.Company.utils', 96, 4, ' header = ["value", "display"]\n'))

Action Items:

- Restart Designer
- Delete C:\Users\<My User ID\>.ignition cache folder, Restart Designer
- Reboot, Restart Designer
- Restart Gateway
- Clear Browser Cache
- Clear Java Cache

---

<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:** [January 17, 2018, 8:52pm UTC](https://forum.inductiveautomation.com/t/importerror-error-loading-module-getvolt-no-module-named-f/8494/5 "2018-01-17T20:52:43Z")

</div>

Your error is here, and it's almost, but not quite, entirely unlike the OP's error:

> [@JHortenberry](#):
>
> IndentationError: ('unindent does not match any outer indentation level', ('', 96, 4, ' header = ["value", "display"]\n'))

You have inconsistent indentation in your script.
