Pylint not working within Spyder
If you press F8 (Source> Run Static Code Analysis) this should work.
The analyse button in the pane tells it to analyse whatever file is in the Static code analysis drop down to the left of the button. If there is nothing in there it seems to get very confused.
Pressing F8 autopopulates the drop down with the current file being edited, so saves you navigating to wherever it is.
Previously I had been clicking into the editor and then hitting "Analyze" through the Static Code Analysis feature which was producing the error above.
If instead, I clicked on the folder within the Static Code Analysis pane and browsed to the .py file, the Static Code Analysis seemed to run appropriately without an error!
Thanks!