<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    certainly seems like a bug worth fixing. let me know if you want me
    to start a bug report.<br>
    <br>
    <div class="moz-cite-prefix">On 07/08/2016 01:19 PM, Burlen Loring
      wrote:<br>
    </div>
    <blockquote
      cite="mid:94b80bb4-f00c-b980-692b-8b79595a393b@gmail.com"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      Thanks Utakarsh. It sounds like it may be possible to work around
      the issue by not importing the lookuptable module from simple.
      However,  it's "import math" that fails, and math seems like a
      fairly basic module that should always be present. Is there any
      chance it got left out of some packaging manifest used in the
      freeze process? having it be available might be a better solution.
      <br>
      <br>
      <div class="moz-cite-prefix">On 07/08/2016 08:38 AM, Utkarsh
        Ayachit wrote:<br>
      </div>
      <blockquote
cite="mid:CADHSJjBHGJpcC=vceq76Dd5rMCHqozeHr+YfsA7Pm54K1Wa_hw@mail.gmail.com"
        type="cite">
        <div dir="ltr">I got over such problems by delaying importing of
          those modules until needed. They are not needed for most
          common use-cases.
          <div><br>
          </div>
          <div>See:</div>
          <div><a moz-do-not-send="true"
href="https://gitlab.kitware.com/paraview/paraview/commit/3af48fffd924bf5ffd11f576a261ef4eb3ff5897">https://gitlab.kitware.com/paraview/paraview/commit/3af48fffd924bf5ffd11f576a261ef4eb3ff5897</a><br>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Tue, Jul 5, 2016 at 2:35 PM,
            Burlen Loring <span dir="ltr"><<a moz-do-not-send="true"
                href="mailto:bloring@lbl.gov" target="_blank">bloring@lbl.gov</a>></span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF"> Hi All,<br>
                <br>
                I'm encountering some issues when trying to use pvbatch
                from a frozen build(PARAVIEW_FREEZE_PYTHON=ON). Seems
                that certain key python modules are <a
                  moz-do-not-send="true" href="http://missing.ie"
                  target="_blank">missing.ie</a> math. However, I can
                use Python shell feature in the GUI from the same build.
                Do we have any idea about what may be wrong with
                pvbatch?<br>
                <br>
                <br>
                here is output from a simple test:<br>
                <blockquote>nid00048:~$pvbatch pvbatch-test.py <br>
                  started<br>
                  Traceback (most recent call last):<br>
                    File "pvbatch-test.py", line 3, in <module><br>
                      from paraview.simple import *<br>
                    File
"/usr/common/graphics/ParaView/builds/PV-4.4.0/lib/site-packages/paraview/simple.py",
                  line 40, in <module><br>
                      import lookuptable<br>
                    File
"/usr/common/graphics/ParaView/builds/PV-4.4.0/lib/site-packages/paraview/lookuptable.py",
                  line 21, in <module><br>
                      from math import sqrt<br>
                  ImportError: No module named math<br>
                </blockquote>
                I tried this as well:<br>
                <blockquote>nid00048:~$pvpython<br>
                  Python 2.7.9 (default, Jan  8 2015, 22:29:31) <br>
                  [GCC 4.9.1 20140716 (Cray Inc.)] on linux2<br>
                  Traceback (most recent call last):<br>
                    File "/etc/pythonstart", line 7, in <module><br>
                      import readline<br>
                  ImportError: Excluded frozen object named readline<br>
                  >>> import math<br>
                  Traceback (most recent call last):<br>
                    File "<stdin>", line 1, in <module><br>
                  ImportError: No module named math<br>
                  >>> <br>
                  <br>
                </blockquote>
                Thanks<span class="HOEnZb"><font color="#888888"><br>
                    Burlen<br>
                  </font></span></div>
              <br>
              _______________________________________________<br>
              Powered by <a moz-do-not-send="true"
                href="http://www.kitware.com" rel="noreferrer"
                target="_blank">www.kitware.com</a><br>
              <br>
              Visit other Kitware open-source projects at <a
                moz-do-not-send="true" class="moz-txt-link-freetext"
                href="http://www.kitware.com/opensource/opensource.html"><a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></a><br>
              <br>
              Please keep messages on-topic and check the ParaView Wiki
              at: <a moz-do-not-send="true"
                href="http://paraview.org/Wiki/ParaView"
                rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
              <br>
              Search the list archives at: <a moz-do-not-send="true"
                href="http://markmail.org/search/?q=ParaView"
                rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
              <br>
              Follow this link to subscribe/unsubscribe:<br>
              <a moz-do-not-send="true"
                href="http://public.kitware.com/mailman/listinfo/paraview"
                rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
              <br>
            </blockquote>
          </div>
          <br>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Powered by <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the ParaView Wiki at: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a>

Search the list archives at: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://markmail.org/search/?q=ParaView">http://markmail.org/search/?q=ParaView</a>

Follow this link to subscribe/unsubscribe:
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://public.kitware.com/mailman/listinfo/paraview">http://public.kitware.com/mailman/listinfo/paraview</a>
</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>