Resolving the 64-bit Problem when Running Robot Framework IDE (RIDE) on Mac OS X

Resolving the 64-bit Problem Whenr Running Robot Framework IDE (RIDE) on Mac OS X

Here is a simple solution to running RIDE in your Mac OS X machines.

If you’re getting the error below, then you’re in the right place:

 

Don’t worry, this doesn’t mean that RIDE does not work on Mac OS X; it’s just that OS X runs Python on 64-bit mode by default. To solve this, you just have to instruct OS X to use the 32-bit one before running RIDE.

An easy way to get around this is by creating a simple executable (a shell script).

Step 1: Create the Script

  1. Open TextEdit
  2. Paste the entire text below:
    #!/bin/bash
    export VERSIONER_PYTHON_PREFER_32_BIT=yes
    ride.py
  3. Save it as ride.sh
*The secret here is in the VERSIONER_PYTHON_PREFER_32_BIT environment variable. It tells the OS to use the 32-bit mode of Python.

Step 2: Provide executable permission to the script (using chmod)

  1. Open Terminal
  2. Navigate to where you saved ride.sh
  3. Enter this command: chmod +x ride.sh

 

Step 3. Try your script!

  1. Enter this command on Terminal ./ride.sh or bash ride.sh
  2. Enjoy!

 

Final Notes:

  1. This tutorial assumes that you’ve successfully followed the Installation Instructions for RIDE.
  2. This has been tested on Snow Leopard and Lion
  3. Since version 0.39, a number of Mac OS  X compatibilities have been addressed.

About the author

avatar
Ika Belerma is a Literature Graduate who now works as Business Analyst/Quality Assurance Engineer at Orange and Bronze Software Labs. Though his official job title is Project Manager, he stills feels a strong affinity to his BAQA roots. It is his aim to make not-so-techy BAQAs life easier by sharing his own discoveries.

Leave a Comment

An Orange & Bronze Software Labs, Inc. Website