<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    (I'm afraid my previous message got scrambles because of the html.
    I'm re-sending it in plain text)<br>
    <div class="moz-forward-container"><br>
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div>
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <div>
                      <div>Dear all,<br>
                      </div>
                      I am trying to install MMTK 2.7.9.<br>
                    </div>
                    I first installed Scientific Python 2.9.2. During
                    the installation it apparently found netcdf in /usr
                    (the header files are in /usr/include/netcdf.h). How
                    can I make sure from python that worked?<br>
                    <br>
                  </div>
                  Next, when I try to build MMTK I got the following
                  error:<br>
                  <br>
                  In file included from Src/MMTK_DCD.c:8:0:<br>
                  Include/MMTK/trajectory.h:12:<wbr>37: fatal error:
                  Scientific/netcdfmodule.h: No such file or directory<br>
                   #include "Scientific/netcdfmodule.h"<br>
                  <br>
                </div>
                Checking my installation I found that file was here:<br>
                /usr/local/include/python2.7/<wbr>Scientific/netcdfmodule.h<br>
                <br>
              </div>
              So I modified setup.py lines 53-61 as:<br>
              if (int(scientific_version[1]) >= 8 or \<br>
                  (int(scientific_version[1]) == 7 and
              int(scientific_version[2]) >= 8)):<br>
                  netcdf_h = os.path.join(sys.prefix, 'local','include',<br>
                                          'python%d.%d' %
              sys.version_info[:2],<br>
                                          'Scientific', 'netcdf.h')<br>
                  if os.path.exists(netcdf_h):<br>
                      compile_args.append("-DUSE_<wbr>NETCDF_H_FROM_SCIENTIFIC=1")<br>
                      include_dirs.append(os.path.<wbr>join(sys.prefix,
              'local','include',<br>
                                          'python%d.%d' %
              sys.version_info[:2]))<br>
              <br>
            </div>
            And the compilalation worked!<br>
            <br>
          </div>
          However, when I import MMTK I get an error. I'm not sure
          whether it is related to the netcdf issue (it doesn't seem to
          be, but...)<br>
          <br>
          >>> import MMTK<br>
          Traceback (most recent call last):<br>
            File "<stdin>", line 1, in <module><br>
            File "MMTK/__init__.py", line 47, in <module><br>
              from ThreadManager import activeThreads, waitForThreads<br>
            File "MMTK/ThreadManager.py", line 38, in <module><br>
              import MMTK_state_accessor<br>
          ImportError: No module named MMTK_state_accessor<br>
          <br>
        </div>
        Any help, please!<br>
      </div>
      Thanks in advance,<br>
      Ramon <br>
    </div>
    <br>
  </body>
</html>