I have a simple CSV with two columns:
Apparently sklearn wants x to be a pandas.core.frame.DataFrame because it cannot distinguish between a single feature with n samples or n features with one sample. Instead y can be one single column, that is a pandas.core.series.Series. Therefore, in your example, you should transform x to a pandas.core.frame.DataFrame.
As already pointed out by @MaxU:
x=df[['ErrorWeek']] # double brakets
y=df['ErrorCount'] # single brakets
X_train, X_test, y_train, y_test = train_test_split(x, y, random_state=0)