# Can't open designer - module ImportError

**URL:** <https://forum.inductiveautomation.com/t/cant-open-designer-module-importerror/31743>\
**Category:** Ignition\
**Created:** [January 30, 2020, 5:10am UTC](https://forum.inductiveautomation.com/t/cant-open-designer-module-importerror/31743 "2020-01-30T05:10:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [January 30, 2020, 5:10am UTC](https://forum.inductiveautomation.com/t/cant-open-designer-module-importerror/31743/1 "2020-01-30T05:10:00Z")

</div>

When I try to open a project in the designer I get the following error (and the designer fails to open):

> ImportError: Error loading module compliance: Traceback (most recent call last):  
> File "module:shared.compliance", line 25, in   
> ImportError: Error loading module compliance: Traceback (most recent call last):  
> File "module:shared.compliance", line 25, in   
> ...........  
> ImportError: Error loading module compliance: Traceback (most recent call last):  
> File "module:shared.compliance", line 25, in   
> RuntimeError: maximum recursion depth exceeded

The compliance module was a script module in the shared library, but I deleted it and created a script package instead with the same name. After saving and closing the designer, I can't reopen it.

I still seem to be able to open a client window.

Is there any way I can modify the shared script modules without opening the designer?  
Will restarting the gateway help?  
How can I resolve this issue if I can't access the designer?

This is on Ignition 7.9.10

---

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [January 30, 2020, 8:18am UTC](https://forum.inductiveautomation.com/t/cant-open-designer-module-importerror/31743/2 "2020-01-30T08:18:14Z")

</div>

The only way I can think of so far is to download a gateway backup, modify the projects/resources table in the internal database, and restore to the gateway. I guess I would like to effectively roll-back the global project to the last known good version.  
If this is the best option, what exactly needs to change in the internal database?  
Is there a better way?

---

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [January 30, 2020, 10:11am UTC](https://forum.inductiveautomation.com/t/cant-open-designer-module-importerror/31743/3 "2020-01-30T10:11:48Z")

</div>

So, I tried starting the gateway using the auto backup database files, but without success. Next, I opened config.idb in _DB Browser for SQLite_ and deleted all the “compliance” script resources, crossed my fingers, and restarted the gateway. It worked! I should be able to recover the scripts from the backup I made of config.idb and manually add them again in the designer.
