# PySwip

**URL:** <https://swi-prolog.discourse.group/t/pyswip/7694>\
**Category:** Tools\
**Tags:** bug\
**Created:** [August 15, 2024, 4:52am UTC](https://swi-prolog.discourse.group/t/pyswip/7694 "2024-08-15T04:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![WSWZhh](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/wswzhh/32/6723_2.png) [@WSWZhh](https://swi-prolog.discourse.group/u/WSWZhh)\
**Post date:** [August 15, 2024, 4:52am UTC](https://swi-prolog.discourse.group/t/pyswip/7694/1 "2024-08-15T04:52:30Z")

</div>

```prolog
PS C:\Users\DELL> py
Python 3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from pyswip import Prolog
SWI-Prolog: [FATAL ERROR: at Thu Aug 15 12:43:17 2024
        Could not find system resources]

```

my prolog:  
`SWI-Prolog (threaded, 64 bits, version 9.2.6), * [Stable release]`  
and  
`swipl` executable is already on the `PATH`  
**How can i fix the bug?**

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [August 15, 2024, 8:46am UTC](https://swi-prolog.discourse.group/t/pyswip/7694/2 "2024-08-15T08:46:24Z")

</div>

Did you copy `libswipl.dll` to somewhere else? It says it cannot find its home directory. Normally, on Windows, it finds this relative to the location of `libswipl.dll`.

You can also set `SWI_HOME_DIR` to point at the installation, typically `C:\Program Files\swipl`
