# Imp.load\_dynamic failing from the escripting console

**URL:** <https://forum.inductiveautomation.com/t/imp-load-dynamic-failing-from-the-escripting-console/38832>\
**Category:** Ignition\
**Created:** [September 18, 2020, 12:29pm UTC](https://forum.inductiveautomation.com/t/imp-load-dynamic-failing-from-the-escripting-console/38832 "2020-09-18T12:29:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [September 18, 2020, 12:58pm UTC](https://forum.inductiveautomation.com/t/imp-load-dynamic-failing-from-the-escripting-console/38832/3 "2020-09-18T12:58:44Z")

</div>

Your solution was already stated in your PYTHONPATH topic by @Sanderd17 :

> [@Set PYTHONPATH environment](http://forum.inductiveautomation.com/t/set-pythonpath-environment/38451/2):
>
> Hi Patricia, Unfortunately, the Python used in Ignition is actually Jython 2.7 (for Ignition v8.0). That means you cannot run a Python library that’s written for python 3, and you cannot run a Python library that needs C(++) bindings. So you will not be able to use the pydim library directly. Your two options are: Use pyDIM as an external program, and communicate via the OS (i.e. [https://stackabuse.com/executing-shell-commands-with-python/](https://stackabuse.com/executing-shell-commands-with-python/)). This is probably the faster way to implement, but…

Jython runs in java, so you need to use DIM's **java** library, not its python library. Nothing you do with python or library search paths will enable dimc.so to load in java.

---

_[View the full topic](https://forum.inductiveautomation.com/t/imp-load-dynamic-failing-from-the-escripting-console/38832)._
