run sample scripts

Class library usage, coding and language questions.
Posts: 1
Joined: Mon Jul 24, 2006 2:35 pm

run sample scripts

Post by connie » Mon Jul 24, 2006 2:41 pm


when trying to run the sample scripts I get the following error:
Traceback (most recent call last):
File "H:\python\ranorex\Scripts\", line 20, in ?
import RanorexPython as Ranorex
ImportError: No module named RanorexPython

but I have copied the the RanorexCore.dll and RanorexPython.dll files into the dll directory of python, so that should'nt be the problem.

(when installing python I got the message, that MSVCR71.dll was missing, so I downloaded that file and put it in the windows/system directory. don't know if that has anything to do with it)

any suggestions?


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

Post by webops » Tue Jul 25, 2006 10:26 pm

Hi Connie,

It seems to be a Python 2.4.3 installation problem.
(Ranorex-0.9.1 works with the Python Version 2.4.3)

RanorexPython needs RanorexCore.dll and Python24.dll.
Python24.dll needs MSVCR71.dll.
The DLLs Python24.dll and MSVCR71.dll must be in the Windows\System32 directory.
The DLLs RanorexPython.dll and RanorexCore.dll should be in the Python24\DLLs directory.

Please check the DLLs, if it doesn't work, please copy RanorexPython.dll and RanorexCore.dll into the Ranorex\Scripts directory, and try to start the testscript again.
Please inform me about the results.

Jenö Herget
Ranorex Team