Ranorex

Python output only for 2.5 ??

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



Joined: 24 May 2007
Posts: 15

PostPosted: Sat Nov 17, 2007 4:58 pm    Post subject: Python output only for 2.5 ??
Hi,
I'm just testing the Python output of the recorder and have some problems with my Python 2.4. imp.load_dynamic isn't working, and if I replace it with import RanorexPython as Ranorex, Ranorex.FormFind doesn't work.

So I wonder if the output is Python 2.5 specific ??

Thanks

vonBrabant
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 256

PostPosted: Mon Nov 19, 2007 1:01 pm    Post subject:
The generated Python scripts are not specific to Python 2.5. However, the code assumes that the RanorexPython.dll is in the same directory as the generated Python script file.

So, please be sure to have the RanorexPython.dll and the RanorexCore.dll in the same directory as the Python script you want to interpret.

Regards,

Alex
Ranorex Support Team
Back to top
View user's profile Send private message Visit poster's website
vonBrabant



Joined: 24 May 2007
Posts: 15

PostPosted: Mon Nov 19, 2007 4:41 pm    Post subject:
Okay, thanks for the reply.
However, I installed now Python 2.5 and everything is now working.

It is actually simpler than you describe it !
With Python2.5 one can still copy RanorexPython.dll and RanorexCore.dll in the Python25/DLLs folder and load the module with "import RanorexPython as Ranorex". The only trick is to rename RanorexPython.dll to RanorexPython.pyd. This works because internally a pyd is a dll.
Just wanted to let you know.

vonBrabant
Back to top
View user's profile Send private message
Support Team
Site Admin


Joined: 07 Jul 2006
Posts: 256

PostPosted: Mon Nov 19, 2007 6:05 pm    Post subject:
Thanks for the info! We'll update the user guide accordingly.

Alex
Ranorex Support 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 -> RanorexRecorder 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