title: lein install datomic peer library on mac
body: <p>I cannot get leiningen to download the datomic-pro peer library. I have the following setup:</p>
  
  <pre><code>~/.lein/credentials.clj.gpg
  
  {#"my\.datomic\.com" {:username "..."
                        :password "..."}}
  </code></pre>
  
  <p>And the project</p>
  
  <pre><code>(defproject datomic-example "0.1.0-SNAPSHOT"
  
    :repositories {"my.datomic.com" {:url "https://my.datomic.com/repo"
                                     :creds :gpg}}
    :dependencies [[org.clojure/clojure "1.6.0"]
                   [com.datomic/datomic-pro "0.9.4956"]])
  </code></pre>
  
  <p>I install gpg via <code>brew install gpg</code>, then running <code>lein deps</code> gives me the following error:</p>
  
  <pre><code>Could not decrypt credentials from /Users/.../.lein/credentials.clj.gpg
  gpg: no valid OpenPGP data found.
  gpg: decrypt_message failed: eof
  
  See `lein help gpg` for how to install gpg.
  (Could not transfer artifact com.datomic:datomic-pro:pom:0.9.4956 from/to my.datomic.com (https://my.datomic.com/repo): Not authorized , ReasonPhrase:Unauthorized.)
  This could be due to a typo in :dependencies or network issues.
  If you are behind a proxy, try setting the 'http_proxy' environment variable.
  </code></pre>
  
  <p>NOTE: I created a <code>pom.xml / settings.xml</code> as described on the homepage and that worked immediatly with <code>maven</code>. I also know that I can install the peer library directly from <code>datomic/bin/maven-install</code>, but I would prefer a plain <code>leiningen</code> install.</p>