# Adapya-adabas: cannot load 'adalnx' while trying to execute dblist.py

**URL:** <https://techcommunity.softwareag.com/t/adapya-adabas-cannot-load-adalnx-while-trying-to-execute-dblist-py/238402>\
**Category:** Forum\
**Tags:** python, adapya\
**Created:** [January 30, 2021, 1:47pm UTC](https://techcommunity.softwareag.com/t/adapya-adabas-cannot-load-adalnx-while-trying-to-execute-dblist-py/238402 "2021-01-30T13:47:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piotr.kozaczewski](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@piotr.kozaczewski](https://techcommunity.softwareag.com/u/piotr.kozaczewski)\
**Post date:** [January 30, 2021, 1:47pm UTC](https://techcommunity.softwareag.com/t/adapya-adabas-cannot-load-adalnx-while-trying-to-execute-dblist-py/238402/1 "2021-01-30T13:47:48Z")

</div>

Hi,

I’m going to learn Adabas Direct Calls in C.

Actually, as I did not find any free resources for C/C++ programmers,  
I decided to start with Python API.

I downloaded Adabas for Docker, started it and checked, that it runs.

Then I downloaded and installed adapya-base and adapya-adabas from GitHub.

Finally, according to documentation, I tried to start ‘dblist.py’.

However, an error occurred, please see my screenshot below (it is windows10):

c:\Python38\Lib\site-packages\adapya\adabas\scripts\>python dblist.py -d 10  
Running Python Version 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]  
on platform win32, 64 bit, byteorder=little  
“adalnkx” could not be loaded: check that Adabas Client Library (ACL) directory is in path  
Traceback (most recent call last):  
File “dblist.py”, line 49, in   
from adapya.adabas.API import Adabas, Adabasx, archit2str, adaSetParameter  
File “C:\Python38\lib\site-packages\adapya\adabas\API.py”, line 52, in   
adalink=ctypes.cdll.LoadLibrary(adalname)  
File “C:\Python38\lib\ctypes\__init_\_.py”, line 451, in LoadLibrary  
return self._dlltype(name)  
File "C:\Python38\lib\ctypes\_init_.py", line 373, in **init**  
self.\_handle = \_dlopen(self.\_name, mode)  
FileNotFoundError: Could not find module ‘adalnkx’ (or one of its dependencies). Try using the full path with constructor syntax.

Apparently Python complains about missing ‘adalnkx’ , which , I guess, is a runtime DLL for Adabas connectivity?

Could you please help me resolving this issue?

Thank you very much is advance.

Regards,  
Piotr Kozaczewski

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 30, 2021, 1:47pm UTC](https://techcommunity.softwareag.com/t/adapya-adabas-cannot-load-adalnx-while-trying-to-execute-dblist-py/238402/2 "2021-04-30T13:47:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
