I try to run a script that uses the glob() function, but it gives me this error:
imagePatches = glob('/kaggle/input/IDC_regular_ps50_idx5/**/*.png', recursive=True)
TypeError: glob() got an unexpected keyword argument 'recursive'
im using python2.7
Support for **
and the recursive
argument was only added in Python 3.5.
The Python 2 version of glob
only takes a single argument.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With