# Use of \\minted@pygmentize doesn't match its definition

Having followed the installation instructions for the minted package (CTAN), I keep encountering the error, and variations thereof, listed in the title when trying to compile the document.

The relevant preamble:

\usepackage{./ExtraPackages/minted/minted}


The call to use minted:

    \appendix
\chapter{Appendices}
\section*{Python Source Code}
\label{app: SourceCode}
\begin{minted}
\inputminted{python}{SourceCode/strainPOSCAR.py}
\end{minted}


I have something of a tight deadline so any help would be particularly appreciated :-).

-
Are you sure that you need \begin{minted} and \end{minted} around \inputminted? –  egreg Mar 24 '12 at 22:59
Lol - thanks very much. That was a legacy from before I found out about \inputminted. Thanks again! Edit: If you want to make that an answer, I'll accept it. –  TCTopCat Mar 24 '12 at 23:08
The \inputminted command implicitly encloses the code in the correct environment:
\section*{Python Source Code}