Problem in Using proc_df with max_n_cat

Hi, I am getting the following error when I am trying to used proc_df function with max_n_cats specified:
‘VendorImporter’ object has no attribute ‘find_module’

Can you share your code or at least a version that isn’t working properly?

this is my code:
df_trn2, y_trn, nas = proc_df(df_raw,‘SalePrice’,max_n_cat=7)

this is the exact error I am getting:

AttributeError Traceback (most recent call last)
~/anaconda3/lib/python3.6/importlib/ in _find_spec(name, path, target)

AttributeError: ‘VendorImporter’ object has no attribute ‘find_spec’

During handling of the above exception, another exception occurred:

AttributeError Traceback (most recent call last)
in ()
----> 1 df_trn2, y_trn, nas = proc_df(df_raw,‘SalePrice’,max_n_cat=7)
2 X_train, X_valid =split_vals(df_trn2, n_trn)
4 m = RandomForestRegressor(n_jobs=-1, n_estimators=40,max_features=0.5,min_samples_leaf=3,oob_score=True)

~/anaconda3/lib/python3.6/site-packages/fastai/ in proc_df(df, y_fld, skip_flds, ignore_flds, do_scale, na_dict, preproc_fn, max_n_cat, subset, mapper)
437 if do_scale: mapper = scale_vars(df, mapper)
438 for n,c in df.items(): numericalize(df, c, n, max_n_cat)
→ 439 df = pd.get_dummies(df, dummy_na=True)
440 df = pd.concat([ignored_flds, df], axis=1)
441 res = [df, y, na_dict]

~/anaconda3/lib/python3.6/site-packages/pandas/core/reshape/ in get_dummies(data, prefix, prefix_sep, dummy_na, columns, sparse, drop_first, dtype)
878 dummy = _get_dummies_1d(col[1], prefix=pre, prefix_sep=sep,
879 dummy_na=dummy_na, sparse=sparse,
→ 880 drop_first=drop_first, dtype=dtype)
881 with_dummies.append(dummy)
882 result = concat(with_dummies, axis=1)

~/anaconda3/lib/python3.6/site-packages/pandas/core/reshape/ in _get_dummies_1d(data, prefix, prefix_sep, dummy_na, sparse, drop_first, dtype)
976 dummy_mat = dummy_mat[:, 1:]
977 dummy_cols = dummy_cols[1:]
→ 978 return DataFrame(dummy_mat, index=index, columns=dummy_cols)

~/anaconda3/lib/python3.6/site-packages/pandas/core/ in init(self, data, index, columns, dtype, copy)
377 else:
378 mgr = self._init_ndarray(data, index, columns, dtype=dtype,
→ 379 copy=copy)
380 elif isinstance(data, (list, types.GeneratorType)):
381 if isinstance(data, types.GeneratorType):

~/anaconda3/lib/python3.6/site-packages/pandas/core/ in _init_ndarray(self, values, index, columns, dtype, copy)
525 raise_with_traceback(e)
→ 527 index, columns = _get_axes(*values.shape)
528 values = values.T

~/anaconda3/lib/python3.6/site-packages/pandas/core/ in _get_axes(N, K, index, columns)
487 columns = com._default_index(K)
488 else:
→ 489 columns = _ensure_index(columns)
490 return index, columns

~/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/ in _ensure_index(index_like, copy)
4941 index_like = list(index_like)
→ 4943 converted, all_arrays = lib.clean_index_list(index_like)
4945 if len(converted) > 0 and all_arrays:

pandas/_libs/lib.pyx in pandas._libs.lib.clean_index_list()

pandas/_libs/src/inference.pyx in pandas._libs.lib.infer_dtype()

~/anaconda3/lib/python3.6/importlib/ in find_and_load(name, import)

~/anaconda3/lib/python3.6/importlib/ in find_and_load_unlocked(name, import)

~/anaconda3/lib/python3.6/importlib/ in _find_spec(name, path, target)

~/anaconda3/lib/python3.6/importlib/ in _find_spec_legacy(finder, name, path)

AttributeError: ‘VendorImporter’ object has no attribute ‘find_module’

I got the issue resolved by updating versions of few libraries.