Package babel Error: You haven't loaded the option spanish yet. Deleting .aux does not work [closed]

So, I am getting this error yet again, I can't figure out what I did before on another system (same .tex file) that worked.

Using TeXStudio 2.9.4.

I have babel-spanish installed. I tried deleting .aux file and recompiling, same error.

My file is basically:

...
\usepackage[spanish]{babel}
...
\selectlanguage{spanish}
...
\begin{document}
...
\end{document}


Any help is greatly appreciated, I'm going bald(er) in exasperation.

• Check the error message in the .log file, which line number and file is reported? Then you have more context to provide a real, complete but minimal example for reproducing the problem. Aug 5, 2015 at 0:51
• This? ! Package babel Error: You haven't loaded the option spanish yet. l.30 \select@language{spanish} ! Package babel Error: You haven't loaded the option spanish yet. l.37 \select@language{spanish} You may proceed, but expect unexpected results Aug 5, 2015 at 0:57
• When TeX opens a file it adds an open parenthesis with the file name in the .log file. When TeX has finished reading, it adds the closing parenthesis. This can be used to identify the file. Also you can see in the .log file, whether package babel with which languages is loaded. Aug 5, 2015 at 1:05
• I'm voting to close this question as off-topic because the issue was solved with a software update Aug 5, 2015 at 7:53
• This was not a software update (nothing to do with miktex, texstudio or whatever), it was a package update which had to be done manually, but suit yourself, I'm sure this will never ever happen to anyone else (like it happened to me on two separate installs) and this thread is thus useless. Aug 5, 2015 at 12:27