# Import error: No module named project

**URL:** <https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951>\
**Category:** Ignition\
**Created:** [October 3, 2018, 11:01am UTC](https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951 "2018-10-03T11:01:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [October 3, 2018, 11:01am UTC](https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951/1 "2018-10-03T11:01:59Z")

</div>

A single client raises the import error on client start up. I have a client start up script using a function from a project library, however it seems to be missing on one client. This is the startup script that fails

```auto
import project # Was just a tiny hope it would help
from project.core.smartcardio import CreateDefaultProxCardReader

# Start the prox card reader in its own background thrad.
CreateDefaultProxCardReader().StartBackground()

```

The script currently fails in line 1 at the first import.

Any ideas anyone?

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [October 3, 2018, 11:20am UTC](https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951/2 "2018-10-03T11:20:40Z")

</div>

Hmm, changing the publish mode from manual to auto solves the issue. If changed back to manual the problem starts again.

---

<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 3, 2018, 12:17pm UTC](https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951/3 "2018-10-03T12:17:39Z")

</div>

> [@Claus\_Nielsen](#):
>
> from project.core.smartcardio import CreateDefaultProxCardReader

Don't do this. Don't import anything from `shared.*` or `project.*`. Your startup script should be one line:

```auto
project.core.smartcardio.CreateDefaultProxCardReader().StartBackground()

```

See this for more explanation:

> [@Some Project Resources not publishing](http://forum.inductiveautomation.com/t/some-project-resources-not-publishing/16888/3):
>
> This may be a side-effect of the fact that Ignition doesn’t/can’t track the usage and retention of python code objects throughout the gateway. This means that when your script modules have interlocking dependencies, updating one script won’t impact the code objects that other scripts have imported. You may need to make a trivial change in all of your scripts and save them all together to get it to “take”. You may also need to disable then re-enable the entire project. Consider renaming the o…

---

<div class="post-metadata">

**Author:** ![Claus\_Nielsen](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Claus\_Nielsen](https://forum.inductiveautomation.com/u/Claus_Nielsen)\
**Post date:** [October 3, 2018, 12:22pm UTC](https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951/4 "2018-10-03T12:22:26Z")

</div>

It was originally, those two imports was just a try to resolve the issue.  
And they are not there anymore. The error persists if the publish mode is in manual.

---

<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 3, 2018, 12:50pm UTC](https://forum.inductiveautomation.com/t/import-error-no-module-named-project/19951/5 "2018-10-03T12:50:29Z")

</div>

Please show the failure details. And anything ahead of it in the console log.
