scandir as dependency: UnicodeDecodeError #953
If I set
Steps to reproduce
Start with a clean environment that does not already have scandir installed. I'm using the Dockerimage
Create a test project and a
Run install command:
Package is installed.
Installation fails with
If I re-run the setup.py install command above a second time, it works.
If I install scandir with pip (
The character referenced in the error comes from the file name
The text was updated successfully, but these errors were encountered:
That's because scandir was successfully installed the first time, but failed at the cleanup stage, so the second attempt finds scandir already installed and bypassed the part that creates the error.
I'm unable to replicate the underlying issue except when unicode is passed to rmtree:
This suggests to me that the
And when I test in my local Linux workstation, I find that's the case for me as well:
Maybe I should just take that restriction out and always cast to string on Linux and Python 2.