Ranorex

Ranorex Python module not found

 
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython
View previous topic :: View next topic  
Author Message
tony



Joined: 04 May 2007
Posts: 2

PostPosted: Fri May 04, 2007 12:55 pm    Post subject: Ranorex Python module not found
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
.dll')
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.
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Jul 2006
Posts: 351

PostPosted: Fri May 04, 2007 6:12 pm    Post subject:
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: click into code to enlarge
import RanorexPython as Ranorex


This should work in Python 2.4.3

Jenö
Ranorex Team
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Ranorex Forum Index -> RanorexPython All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum