An integer is required? open()

Because you did from os import *, you are (accidenally) using os.open, which indeed requires an integer flag instead of a textual “r” or “w”. Take out that line and you’ll get past that error.

Leave a Comment