XGBoost invalid syntax async def map_local_data


#1

Today I installed XGBoost the latest version, with the Python package, and now I get an error message:

Traceback (most recent call last):
File “test.py”, line 26, in
import xgboost as xgb
File “/usr/lib/python3.4/site-packages/xgboost-1.0.0_SNAPSHOT-py3.4.egg/xgboost/init.py”, line 16, in
from . import dask
File “/usr/lib/python3.4/site-packages/xgboost-1.0.0_SNAPSHOT-py3.4.egg/xgboost/dask.py”, line 169
async def map_local_data(self, client, data, label=None, weights=None):
^
SyntaxError: invalid syntax


#2

It appears that async def syntax is not supported by Python 3.4. I filed a new issue: https://github.com/dmlc/xgboost/issues/5020

Is upgrading Python 3.5+ an option for you?