BUG: When running the setup.py
script, a TypeError
occurs in the shutil.rmtree()
function due to a generator being passed instead of a valid path.
#58262
Labels
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Additional Information:
The issue is likely caused by passing a generator instead of a valid path to
shutil.rmtree()
. The script attempts to iterate over a generator,self._clean_trees
, and remove each path usingshutil.rmtree()
. However, a generator is not a valid input type forshutil.rmtree()
.Here's the code snippet demonstrating the issue:
The text was updated successfully, but these errors were encountered: