This module provides a portable way of using operating system dependent functionality. Wow great ! OS module in Python provides functions for interacting with the operating system. python: bad interpreter: No such file or directory I know that @matthew-brett , @jchoude , @matthieudumont and others have discussed before about the issues of changing shebang to !#python rather than !#/usr/bin/env python Could it be that this was a bit too rushed decision.
...the problem is the targeted file is an alias that doesn't resolve. No such file or directory on Mac I have made sure it is in the same directory as the python code.
Digging a little deeper, I notice elsewhere in the ESP8266 file hierarchy there's a 'staging' folder with python3-macosx-placeholder.tar.gz. os.chdir() method in Python used to change the current working directory to specified path. I've also tried changing the name of the excel doc and whether the doc is .xls and .xlsx but it has not worked. Indeed there was a certificate issue. Unfortunately I get a permission denied on dist/python3-macosx-placeholder.tar.gz OS, comes under Python’s standard utility modules. This might be related to issues you can see by googling 'esp8266 python file does not exist', but a solution didn't leap out. The command works as expected. it helps go further. code like this, based on deriving the current path from Python's magic __file__ variable, will work both locally and on the server, both on Windows and on Linux... Another possibility: case-sensitivity