<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Re the "mock" vs. setuptools error when installing yt dev version
    using install_script.sh -<br>
    <br>
    It looks as though there's been a change in mock - I found some
    commentary about this on other packages that use it.<br>
    <br>
    An ugly workaround involved catching the matplotlib install, moments
    after install_script.sh prints<br>
    <br>
    <tt>Installing matplotlib-1.4.3</tt><br>
    <br>
    using Ctrl-Z to suspend it, and then editing<br>
    <tt>   .../src/matplotlib-1.4.3/</tt><tt>lib/matplotlib.egg-info/requires.txt</tt><br>
    <br>
    to change (in two places) "mock" to "mock==1.0.1", so the file looks
    like this:<br>
    <br>
    <tt>numpy>=1.6</tt><tt><br>
    </tt><tt>six>=1.4</tt><tt><br>
    </tt><tt>python-dateutil</tt><tt><br>
    </tt><tt>pytz</tt><tt><br>
    </tt><tt>pyparsing>=1.5.6,!=2.0.0</tt><tt><br>
    </tt><tt>nose>=0.11.1</tt><tt><br>
    </tt><tt>mock==1.0.1</tt><tt><br>
    </tt><tt>nose>=0.11.1</tt><tt><br>
    </tt><tt>mock==1.0.1</tt><tt><br>
    </tt><br>
    Then resume ("fg") the suspended install_script.sh and let it
    complete, hoping you caught it after it untarred the package but
    before it began installing dependencies.<br>
    <br>
    This worked -- once -- but it's guaranteed to be unreliable.  
    What's a safer fix?   Hacking the matplotlib distribution tarball
    (ugh)?  Tweak install_script to install a compatible version of mock
    before installing matplotlib, so pip doesn't bother installing an
    incompatible one?<br>
    <br>
    <div class="moz-cite-prefix">On 7/17/15 11:10 AM, Juan Camilo Ibanez
      Mejia wrote:<br>
    </div>
    <blockquote cite="mid:371970E6-A5C3-4928-8AD5-622746B3A825@amnh.org"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      Hi all,
      <div><br>
      </div>
      <div>well I found an previous install script for yt 3.0, about 4-5
        months old, installed yt 3.0 with it and apparently it's working
        and scripts seem to be working as well.  Not sure what is
        happening with the new install script in my machine.</div>
      <div><br>
      </div>
      <div>Best,</div>
      <div>Juan</div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
        <div>
          <div>On Jul 17, 2015, at 9:50 AM, Juan Camilo Ibanez Mejia
            wrote:</div>
          <br class="Apple-interchange-newline">
          <blockquote type="cite">
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              -webkit-line-break: after-white-space; ">
              Hi Nathan,
              <div><br>
              </div>
              <div>the OS is Ubuntu 14.04.2.</div>
              <div><br>
              </div>
              <div>I tried reinstalling yt3.0 but got the following
                error:</div>
              <div><br>
              </div>
              <blockquote class="webkit-indent-blockquote"
                style="margin: 0 0 0 40px; border: none; padding: 0px;">
                <div>
                  <div>********************************************</div>
                  <div>        FAILURE REPORT:</div>
                  <div>********************************************</div>
                  <div><br>
                  </div>
                  <div>Processing dependencies for matplotlib==1.4.0</div>
                  <div>Searching for mock</div>
                  <div>Reading <a moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__pypi.python.org_simple_mock_&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=GXoEFWPjbZXN9Wk-0BIJB-pqAWgWELpaQzeBrESQrHY&e=">http://pypi.python.org/simple/mock/</a></div>
                  <div>Best match: mock 1.1.4</div>
                  <div>Downloading <a moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__pypi.python.org_packages_source_m_mock_mock-2D1.1.4.tar.gz-23md5-3D84afbeb2415bf3d6608dac4423a56325&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=MLkEVRrct8hnzYV2xtEBjI_J8hlNh4LP-6xa5UOfvOg&e=">https://pypi.python.org/packages/source/m/mock/mock-1.1.4.tar.gz#md5=84afbeb2415bf3d6608dac4423a56325</a></div>
                  <div>Processing mock-1.1.4.tar.gz</div>
                  <div>Writing
                    /tmp/easy_install-GMOnmI/mock-1.1.4/setup.cfg</div>
                  <div>Running mock-1.1.4/setup.py -q bdist_egg
                    --dist-dir
                    /tmp/easy_install-GMOnmI/mock-1.1.4/egg-dist-tmp-uR9lqT</div>
                  <div>mock requires setuptools>=17.1. Aborting
                    installation</div>
                  <div>error: Setup script exited with 1</div>
                  <div><br>
                  </div>
                  <div>********************************************</div>
                  <div>********************************************</div>
                </div>
                <div><br>
                </div>
              </blockquote>
              <div>I tried installing setuptools in my home dir, as I
                don't have root access in this machine, but was unable
                to it kept complaining that the folder where I wanted to
                install this package  did not support .pth files.</div>
              <div><br>
              </div>
              <div>Any ideas ?</div>
              <div><br>
              </div>
              <div>Thanks for your help.</div>
              <div>Best,</div>
              <div>Juan</div>
              <div><br>
              </div>
              <br>
              <div><br>
                <div>
                  <div>On Jul 15, 2015, at 8:44 PM, Nathan Goldbaum
                    wrote:</div>
                  <br class="Apple-interchange-newline">
                  <blockquote type="cite">
                    <div dir="ltr"><br>
                      <div class="gmail_extra"><br>
                        <div class="gmail_quote">On Wed, Jul 15, 2015 at
                          12:19 PM, Juan Camilo Ibanez Mejia
                          <span dir="ltr"><<a moz-do-not-send="true"
                              href="mailto:jibanezmejia@amnh.org"
                              target="_blank">jibanezmejia@amnh.org</a>></span>
                          wrote:<br>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div style="word-wrap:break-word">Hi all,
                              <div><br>
                              </div>
                              <div>I'm running into some problems while
                                trying to generate a python executable
                                in yt3.0</div>
                              <div>I was able to do it in yt2.6 but not
                                in this newer version, this is an
                                example of what I'm doing:</div>
                              <div><br>
                              </div>
                              <blockquote style="margin:0 0 0
                                40px;border:none;padding:0px">
                                <div>
                                  <div>>#!/home/jcibanezm/codes/yt30/yt-x86_64/bin/python</div>
                                </div>
                                <div>
                                  <div>></div>
                                </div>
                                <div>
                                  <div>>import yt</div>
                                </div>
                                <div>
                                  <div>>print "Hello World"</div>
                                </div>
                              </blockquote>
                              <div><br>
                              </div>
                              <div>And when I run this, I get the
                                following error:</div>
                              <div><br>
                              </div>
                              <div>
                                <div>Traceback (most recent call last):</div>
                                <div>  File "./Test.py", line 3, in
                                  <module></div>
                                <div>    from yt.config import
                                  ytcfg;ytcfg["yt","__withinreason"]="True"</div>
                                <div>  File
                                  "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/__init__.py",
                                  line 121, in <module></div>
                                <div>    from yt.data_objects.api import
                                  \</div>
                                <div>  File
                                  "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/api.py",
                                  line 53, in <module></div>
                                <div>    from .image_array import \</div>
                                <div>  File
                                  "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/data_objects/image_array.py",
                                  line 15, in <module></div>
                                <div>    from
                                  yt.visualization.image_writer import
                                  write_bitmap, write_image</div>
                                <div>  File
                                  "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/visualization/image_writer.py",
                                  line 24, in <module></div>
                                <div>    import yt.utilities.png_writer
                                  as pw</div>
                                <div>  File
                                  "/home/jcibanezm/codes/yt30/yt-x86_64/src/yt-hg/yt/utilities/png_writer.py",
                                  line 13, in <module></div>
                                <div>    import matplotlib._png as _png</div>
                                <div>ImportError: libpng16.so.16: cannot
                                  open shared object file: No such file
                                  or directory</div>
                              </div>
                            </div>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>It looks like your python installation is
                            broken - matplotlib can't find libpng. Since
                            it was able to find it when matplotlib was
                            installed initally, this indicates to me
                            that libpng was deleted out from under it.</div>
                          <div><br>
                          </div>
                          <div>What OS is this?</div>
                          <div><br>
                          </div>
                          <div>Have you tried completely deleting the
                            yt-x86_64 folder and rerunning the install
                            script?</div>
                          <div> </div>
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex">
                            <div style="word-wrap:break-word">
                              <div><br>
                              </div>
                              <div><br>
                              </div>
                              <div>Any idea ?</div>
                              <div>thanks for your help.</div>
                              <div>Best,</div>
                              <div>Juan</div>
                              <div><br>
                              </div>
                              <div><br>
                              </div>
                              <div>
                                <div>
                                  <div style="word-wrap:break-word">
                                    <div style="word-wrap:break-word"><span
style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
                                        <div
                                          style="word-wrap:break-word">
                                          <div>
                                            <div>--------------------------------------------------</div>
                                            <div>Juan Camilo
                                              Ibáñez-Mejia</div>
                                            <div>PhD student in Physics.</div>
                                            <div>
                                              <div>Institut für
                                                Theoretische
                                                Astrophysik,</div>
                                              <div>Zentrum für
                                                Astronomie Heidelberg</div>
                                              <div><a
                                                  moz-do-not-send="true"
href="mailto:jibanez@zah.uni-heidelberg.de" target="_blank">jibanez@zah.uni-heidelberg.de</a></div>
                                            </div>
                                            <div><br>
                                            </div>
                                            <div>American Museum of
                                              Natural History</div>
                                            <div><a
                                                moz-do-not-send="true"
                                                href="tel:%2B1-212-313-7435"
value="&#43;12123137435" target="_blank">+1-212-313-7435</a></div>
                                            <div><a
                                                moz-do-not-send="true"
                                                href="mailto:jibanezmejia@amnh.org"
                                                target="_blank">jibanezmejia@amnh.org</a></div>
                                            <div>----------------------------------------------------</div>
                                          </div>
                                        </div>
                                      </span></div>
                                  </div>
                                </div>
                                <br>
                              </div>
                            </div>
                            <br>
_______________________________________________<br>
                            yt-users mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
                            <a moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.spacepope.org_listinfo.cgi_yt-2Dusers-2Dspacepope.org&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=1yMlSCqbeE-DTAYa6FSUWWk58JuKNs0F7mYSJk-mlbI&e="
                              rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
                            <br>
                          </blockquote>
                        </div>
                        <br>
                      </div>
                    </div>
                    _______________________________________________<br>
                    yt-users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
                    <a moz-do-not-send="true"
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.spacepope.org_listinfo.cgi_yt-2Dusers-2Dspacepope.org&d=AwMFAw&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=NPdlXEk4Z5vraxy_6pAr8QrJEizB0RorBB0YrjmgMfU&s=1yMlSCqbeE-DTAYa6FSUWWk58JuKNs0F7mYSJk-mlbI&e=">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
                  </blockquote>
                </div>
                <br>
                <div>
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    <div style="word-wrap: break-word;
                      -webkit-nbsp-mode: space; -webkit-line-break:
                      after-white-space; ">
                      <span class="Apple-style-span"
                        style="border-collapse: separate; font-family:
                        Helvetica; font-style: normal; font-variant:
                        normal; font-weight: normal; letter-spacing:
                        normal; line-height: normal; orphans: 2;
                        text-align: -webkit-auto; text-indent: 0px;
                        text-transform: none; white-space: normal;
                        widows: 2; word-spacing: 0px;
                        -webkit-border-horizontal-spacing: 0px;
                        -webkit-border-vertical-spacing: 0px;
                        -webkit-text-decorations-in-effect: none;
                        -webkit-text-size-adjust: auto;
                        -webkit-text-stroke-width: 0px; font-size:
                        medium; ">
                        <div style="word-wrap: break-word;
                          -webkit-nbsp-mode: space; -webkit-line-break:
                          after-white-space; ">
                          <div>
                            <div>--------------------------------------------------</div>
                            <div>Juan Camilo Ibáñez-Mejia</div>
                            <div>PhD student in Physics.</div>
                            <div>
                              <div>Institut für Theoretische
                                Astrophysik,</div>
                              <div>Zentrum für Astronomie Heidelberg</div>
                              <div><a moz-do-not-send="true"
                                  href="mailto:jibanez@zah.uni-heidelberg.de">jibanez@zah.uni-heidelberg.de</a></div>
                            </div>
                            <div><br>
                            </div>
                            <div>American Museum of Natural History</div>
                            <div>+1-212-313-7435</div>
                            <div><a moz-do-not-send="true"
                                href="mailto:jibanezmejia@amnh.org">jibanezmejia@amnh.org</a></div>
                            <div>----------------------------------------------------</div>
                          </div>
                        </div>
                      </span></div>
                  </div>
                </div>
                <br>
              </div>
            </div>
            _______________________________________________<br>
            yt-users mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
          </blockquote>
        </div>
        <br>
        <div><span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; font-size: medium; "><span class="Apple-style-span"
              style="border-collapse: separate; color: rgb(0, 0, 0);
              font-family: Helvetica; font-style: normal; font-variant:
              normal; font-weight: normal; letter-spacing: normal;
              line-height: normal; orphans: 2; text-align: -webkit-auto;
              text-indent: 0px; text-transform: none; white-space:
              normal; widows: 2; word-spacing: 0px;
              -webkit-border-horizontal-spacing: 0px;
              -webkit-border-vertical-spacing: 0px;
              -webkit-text-decorations-in-effect: none;
              -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
              0px; font-size: medium; ">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space; ">
                <span class="Apple-style-span" style="border-collapse:
                  separate; color: rgb(0, 0, 0); font-family: Helvetica;
                  font-style: normal; font-variant: normal; font-weight:
                  normal; letter-spacing: normal; line-height: normal;
                  orphans: 2; text-align: -webkit-auto; text-indent:
                  0px; text-transform: none; white-space: normal;
                  widows: 2; word-spacing: 0px;
                  -webkit-border-horizontal-spacing: 0px;
                  -webkit-border-vertical-spacing: 0px;
                  -webkit-text-decorations-in-effect: none;
                  -webkit-text-size-adjust: auto;
                  -webkit-text-stroke-width: 0px; font-size: medium; ">
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    <span class="Apple-style-span"
                      style="border-collapse: separate; color: rgb(0, 0,
                      0); font-family: Helvetica; font-style: normal;
                      font-variant: normal; font-weight: normal;
                      letter-spacing: normal; line-height: normal;
                      orphans: 2; text-align: -webkit-auto; text-indent:
                      0px; text-transform: none; white-space: normal;
                      widows: 2; word-spacing: 0px;
                      -webkit-border-horizontal-spacing: 0px;
                      -webkit-border-vertical-spacing: 0px;
                      -webkit-text-decorations-in-effect: none;
                      -webkit-text-size-adjust: auto;
                      -webkit-text-stroke-width: 0px; font-size: medium;
                      ">
                      <div style="word-wrap: break-word;
                        -webkit-nbsp-mode: space; -webkit-line-break:
                        after-white-space; ">
                        <div>
                          <div>--------------------------------------------------</div>
                          <div>Juan Camilo Ibáñez-Mejia</div>
                          <div>PhD student in Physics.</div>
                          <div>
                            <div>Institut für Theoretische Astrophysik,</div>
                            <div>Zentrum für Astronomie Heidelberg</div>
                            <div><a moz-do-not-send="true"
                                href="mailto:jibanez@zah.uni-heidelberg.de">jibanez@zah.uni-heidelberg.de</a></div>
                          </div>
                          <div><br>
                          </div>
                          <div>American Museum of Natural History</div>
                          <div>+1-212-313-7435</div>
                          <div><a moz-do-not-send="true"
                              href="mailto:jibanezmejia@amnh.org">jibanezmejia@amnh.org</a></div>
                          <div>----------------------------------------------------</div>
                        </div>
                      </div>
                    </span></div>
                </span></div>
            </span></span></div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>