Skip to content
Snippets Groups Projects
  • Matei Zaharia's avatar
    0b855167
    SPARK-1421. Make MLlib work on Python 2.6 · 0b855167
    Matei Zaharia authored
    The reason it wasn't working was passing a bytearray to stream.write(), which is not supported in Python 2.6 but is in 2.7. (This array came from NumPy when we converted data to send it over to Java). Now we just convert those bytearrays to strings of bytes, which preserves nonprintable characters as well.
    
    Author: Matei Zaharia <matei@databricks.com>
    
    Closes #335 from mateiz/mllib-python-2.6 and squashes the following commits:
    
    f26c59f [Matei Zaharia] Update docs to no longer say we need Python 2.7
    a84d6af [Matei Zaharia] SPARK-1421. Make MLlib work on Python 2.6
    0b855167
    History
    SPARK-1421. Make MLlib work on Python 2.6
    Matei Zaharia authored
    The reason it wasn't working was passing a bytearray to stream.write(), which is not supported in Python 2.6 but is in 2.7. (This array came from NumPy when we converted data to send it over to Java). Now we just convert those bytearrays to strings of bytes, which preserves nonprintable characters as well.
    
    Author: Matei Zaharia <matei@databricks.com>
    
    Closes #335 from mateiz/mllib-python-2.6 and squashes the following commits:
    
    f26c59f [Matei Zaharia] Update docs to no longer say we need Python 2.7
    a84d6af [Matei Zaharia] SPARK-1421. Make MLlib work on Python 2.6