0

line 21, in os.startfile(fileName) AttributeError: module 'os' has no attribute 'startfile'

On mac and each time this happens

tripleee
  • 175,061
  • 34
  • 275
  • 318
  • Unless you are *specifically* asking about how to solve a cross-version compatibility problem (in which case your question should obviously describe that problem) you should not mix the [tag:python-2.7] and [tag:python-3.x] tags. I have removed them both from now; probably [edit] to clarify which one you are using, and how you installed it if it's not the one which shipped with the OS. – tripleee Jan 14 '21 at 07:39
  • 1
    Does this answer your question? [AttributeError: 'module' object has no attribute 'startfile'](https://stackoverflow.com/questions/29823028/attributeerror-module-object-has-no-attribute-startfile) – PieCot Jan 14 '21 at 07:41
  • According to the documentation, `os.startfile()` is available only on Windows. – BoarGules Jan 14 '21 at 07:42

1 Answers1

0

Like the documentation clearly states, os.startfile() is Windows only.

tripleee
  • 175,061
  • 34
  • 275
  • 318