Ranorex Python module not found

Class library usage, coding and language questions.
Posts: 2
Joined: Fri May 04, 2007 11:47 am

Ranorex Python module not found

Post by tony » Fri May 04, 2007 11:55 am

I downloaded the Free version to try out, but when I try to run any of the scripts I get an error

Traceback (most recent call last):
File "Scripts\CalcTest2.py", line 35, in ?
Ranorex = imp.load_dynamic('RanorexPython', RANOREX_BINPATH + 'RanorexPython
ImportError: DLL load failed: The specified module could not be found.

I have Python 2.4.3.
I have tried adding c:\Python24;c:\Python24\Dlls to my path.
I have copied the Ranorex DLLs to c:\Python24\Dlls
I have copied the Python24.dll to c:\windows\system32 (as suggested in a earlier post)
MSVCRT71.DLL exists in system32 as well as many other dirs (including Python)
I have further tried adding python dirs and Ranorex dirs to my PATH, but nothing seems to help.

Anyone have further suggestions on what to try to make this work?

I am running on Windows XP SP2.

Site Admin
Site Admin
Posts: 350
Joined: Wed Jul 05, 2006 7:44 pm

Post by webops » Fri May 04, 2007 5:12 pm

Please try the following:

Copy the Binaries RanorexCore.dll and RanorexPython.dll from the Ranorex Bin\Python2.4 folder in the DLLs directory of the Python installation (e.g. C:\Python24\DLLs).

In your python source code import RanorexPython as follows:

Code: Select all

import RanorexPython as Ranorex
This should work in Python 2.4.3

Ranorex Team