micropython-shutil: patch rmtree#15
micropython-shutil: patch rmtree#15dwalton76 merged 2 commits intoev3dev:masterfrom dwalton76:master
Conversation
|
@WasabiFan I am able to verify that this fixes clean_arena() for micropython |
|
Nice find! Ideally we'd just bump the version of Micropython we install on Travis, but given that ev3dev images come with |
|
I'm not sure what it is about the Buttons pull request that exposes this (didn't dig that far once I found the os.walk bug). Agreed on sticking with |
|
It wasn't the buttons that broke it; it was time. I'd still ideally like to know what it was that changed, because the version of Micropython that we are testing with hasn't changed. So something else caused the failures. |
|
time? |
|
The same build that passed a week ago failed when we re-ran it. Something in our dependency tree changed between then and now to cause it to stop working. |
|
This is a head scratcher
If I use a version of ev3dev-lang-fake-sys without our recent Maybe we were somehow hitting this part of install-micropython.sh and were using a cached version of micropython that did not have the os.walk bug that causes shutil.rmtree to fail? I don't know enough about travis to know if that is possible but that is the only reasonable theory I can come up with so far. |
os.walk (which is used by shutil.rmtree) is broken in 1.9.4 and thinks that the directories are files so when we try to os.unlink them it barfs. In v1.10 os.walk correctly IDs them as directories.