MacOS Code Loading Automation #76
polygnomial
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been having some pronounced issues with corrupted files lately when loading CircuitPython source from MacOS. I just updated to MacOS Ventura (Beta), but I don't think that is the issue since I've observed these errors before.
Symptoms — my code only executes once, and then either the filesystem or one of the larger files turns into a bowl and a half of spaghetti-o's, and

cp
failing out with an error about extended attributes.And then the other symptom looks sort of like this, but inside of a file:
I've tried a number of fixes—this was the most helpful.
shutil.copytree
has worked pretty well for me because it doesn't copy extended attributes, and so hascp -Xr
.xattr -r -c <path>
works on the local folder, but when trying to execute this with a path to a mounted CIRCUITPY drive, I get a bajillionxattr: [Errno 22] Invalid argument
.The apple script and python script presented here both work
This is the second time I ran into errors because of all those pesky files (and I'd totally forgotten about the first time round by now.
In summary, don't forget about those dotfiles
Beta Was this translation helpful? Give feedback.
All reactions