locked
Error executing default Python Script RRS feed

  • Question

  • Hi,

    I am playing around with Azure ML. I have included a Python Script on my experiment. When I execute the experiment, the script always fails, returning this error:

    Error 0085: The following error occurred during script evaluation, please view the output log for more information:
     ---------- Start of error message from Python interpreter ----------
     data:text/plain,Caught exception while executing function: Traceback (most recent call last):
       File "C:\server\invokepy.py", line 176, in batch
         rutils.RUtils.DataFrameToRFile(outlist[i], outfiles[i])
       File "C:\server\RReader\rutils.py", line 28, in DataFrameToRFile
         rwriter.write_attribute_list(attributes)
       File "C:\server\RReader\rwriter.py", line 59, in write_attribute_list
         self.write_object(value);
       File "C:\server\RReader\rwriter.py", line 121, in write_object
         write_function(flags, value.values())
       File "C:\server\RReader\rwriter.py", line 104, in write_objects
         self.write_object(value)
       File "C:\server\RReader\rwriter.py", line 121, in write_object
         write_function(flags, value.values())
       File "C:\server\RReader\rwriter.py", line 71, in write_integers
         self.write_integer(value)
       File "C:\server\RReader\rwriter.py", line 147, in write_integer
         self.writer.WriteInt32(value)
       File "C:\server\RReader\BinaryIO\binarywriter.py", line 23, in WriteInt32
         self.WriteData(self.Int32Format, data)
       File "C:\server\RReader\BinaryIO\binarywriter.py", line 14, in WriteData
         self.stream.write(pack(format, data))
     error: cannot convert argument to integer
     
     ---------- End of error message from Python  interpreter  ----------

    I have tried different scripts, but it does not matter what I write, even with the default script, it fails.

    What am I doing wrong?

    Thanks

    Friday, July 10, 2015 12:58 PM

Answers

  • Hey Manuel,

    Apologies for this bug - it usually manifests itself when the first value in a column is missing. If you could remove that before returning the dataframe to AML, that should unblock you. A more robust bridge, including a fix for this, is being deployed to Production shortly.

    Regards,

    AK

    • Proposed as answer by neerajkh_MSFT Sunday, July 12, 2015 8:36 PM
    • Marked as answer by neerajkh_MSFT Sunday, July 19, 2015 4:28 PM
    Friday, July 10, 2015 8:43 PM

All replies

  • Hey Manuel,

    Apologies for this bug - it usually manifests itself when the first value in a column is missing. If you could remove that before returning the dataframe to AML, that should unblock you. A more robust bridge, including a fix for this, is being deployed to Production shortly.

    Regards,

    AK

    • Proposed as answer by neerajkh_MSFT Sunday, July 12, 2015 8:36 PM
    • Marked as answer by neerajkh_MSFT Sunday, July 19, 2015 4:28 PM
    Friday, July 10, 2015 8:43 PM
  • This error still pops up when I use Reader module to read the CSV, even when the first row is not empty.

    Any idea if the fix has been pushed to production?

    Friday, February 19, 2016 2:50 PM
  • Any updates ?
    Tuesday, April 5, 2016 12:15 PM
  • Got a fix for this.

    Error pops up if any of the column (in each record) is empty, so used a Missing Value Scrubber to fill up the empty columns with some value. Later in  my python script put a check for this value (basically treating it as empty)


    • Edited by Melvin FX Wednesday, April 6, 2016 3:42 AM
    • Proposed as answer by Lotanot Tuesday, April 12, 2016 8:49 AM
    Wednesday, April 6, 2016 3:42 AM
  • Thanks, I had this problem as well trying to convert a dates column to supported format, but it wouldnt let me do it because of that missing values problem.
    Tuesday, April 12, 2016 8:55 AM