What are the challenges you face when working across database platforms? Take the survey
Options

Installation requirements for SQL Data Generator

edited May 27, 2014 5:28AM in SQL Data Generator
In trying to do a custom Python script generator, I've got the error 'An error occurred. ImportError: No module named random - No installed python version was automatically detected; consider installing python 2.7 or adjusting the application options.'
Also, I get an error when I try to use the random() function in a Python expression. I can't find any references to Python in the installation instructions. What version of Python should I be using. Does it, for example, have to be IronPython or some other flavour?

Comments

  • Options
    Anu DAnu D Posts: 876 Silver 3
    Thanks for your post.

    Here you have two options:

    Either Install Python 2.7 so that you can access the Python runtime and use Random() function of Python.

    OR

    Do not install Python 2.7 and use only IronPython details and use Random() function out of .net library

    Does this answer your question?
    Anuradha Deshpande
    Product Support
    Redgate Software Ltd.
    E-mail: support@red-gate.com
  • Options
    Can you please tell me the right syntax for using IronPython and the .NET Random() function
Sign In or Register to comment.