Hai Hai :) I was running some tox tests on my mac system for a mailman core issue I was working on, and got this error, "AttributeError: module 'os' has no attribute 'fdatasync'" apparently apple never built fdatasync into the macos kernel :(
A fix I did was using the multipass VM to build my ubuntu env > mount the working directory > create a venv (in the home linux directory btw!) > ensure the cache builds in the native linux memory only > then ran the tox tests. This might seem a little tedious for those who want to work on the go. And sooo for those who wish to still work on their macos (without vms) just change all instances of 'os.fdatasync(fp.fileno())' to 'os.fsync(fp.fileno())' in src/mailman/core/switchboard.py, and then run tox in your mac environment itself! If you are working on something do NOT commit this change to your branch and discard this change as soon as you run the tox tests on your mac! PS. I do prefer VMs but the quick change also worked for me! I hope this helps the mac users >_< Regards, Archie _______________________________________________ Mailman-Developers mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/mailman-developers.python.org/ Mailman FAQ: https://wiki.list.org/x/AgA3 Security Policy: https://wiki.list.org/x/QIA9
