<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    If you are on linux, you should be linking to the .so, not the dll.
    <br>
    I was building python.net on centos5.5, which has a different set of
    base apps compared to ubuntu, but here are my experiences...<br>
    <br>
    If you are building python yourself, make sure to build it with the
    --enable-shared option, so that it generates the .so file for your
    use with python.net. Also, make sure python is using UCS4
    (--enable-unicode=ucs4).<br>
    <br>
    I built python2.6 to /usr/local/python26, so to set up the python2.6
    shared object i had to do the following:<br>
    Make this file: /etc/ld.so.conf.d/python2.6.conf<br>
    With these contents: /usr/local/python26/lib<br>
    Run: ldconfig<br>
    <br>
    I build python.net using mono 2.8.1. Since its a later version of
    mono that python.net was prepped for, i had to tweak some files..:<br>
    <ul>
      <li>add #include &lt;gmodule.h&gt; to the includes in the
        pynetclr.h file
      </li>
      <li>add to the setup.py file:&nbsp;&nbsp; edit **pkgconfig('mono') to be
        **pkgconfig('mono-2','glib-2.0')</li>
    </ul>
    Further tweaks to build properly:<br>
    <ol>
      <li>mod the pynetinit.c file, uncomment: mono_config_parse(NULL);</li>
      <li>remove clr.pyd from the all: list of the makefile for
        python.net</li>
      <li>create a symlink to your python.so to your python.net root
        folder<br>
      </li>
    </ol>
    <br>
    I think it might be this steps #1, #3 you are missing, or the dllmap
    is not being found ( Python.Runtime.dll.config ).<br>
    <br>
    <br>
    cheers,<br>
    laszlo<br>
    <br>
    <br>
    On 30/01/2011 7:55 PM, Tanmoy wrote:
    <blockquote
      cite="mid:AANLkTik3WWNHkcwxVHTaKXWFNstSgZ8vsdrFQUL00zvw@mail.gmail.com"
      type="cite">Hi, <br>
      &nbsp;&nbsp;&nbsp; Thanks for your reply. I tried putting in pythononet 26 ...
      but it did not work...in short i tried 1,2,3.The current SVN too
      is crashing. Would appreciate if any one could do on Ubuntu
      versions and report me if they face similar problems. <br>
      <br>
      Sincerely<br>
      Tanmoy Mukherjee <br>
      <br>
      <div class="gmail_quote">On Mon, Jan 31, 2011 at 4:14 AM, Barton <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:barton@bcdesignswell.com">barton@bcdesignswell.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Although I'm on
            Windows, I may be able to point out a couple of things:<br>
            <ol>
              <li>Since the runtime doesn't do any error checking when
                trying to load the python dynamic (shared) library, this
                error isn't too weird.</li>
              <li>Since the runtime is looking for python26, this is
                certainly not "pythonnet-1.0-rc2-py2.4-clr1.1" as the
                link you provided states.</li>
              <li>Since the runtime is looking for python26, unless you
                built from source, this is most likely a Windows build
                off the pythondotnet project download area on
                SourcForge.</li>
              <li>Since I'm on Windows, I haven't yet tried to build and
                test under Mono. This may be something that I could try
                in the unknown-distant-future.</li>
              <li>Since I'm the only person currently uploading
                pre-built assemblies, Linux users must build from
                source.</li>
            </ol>
            AFAIK, the current SVN will build under Mono.<br>
            Hope that helps,<br>
            Barton
            <div>
              <div class="h5"><br>
                <br>
                On 1/29/2011 6:30 AM, Tanmoy wrote: </div>
            </div>
            <blockquote type="cite">
              <div>
                <div class="h5">Hi, <br>
                  &nbsp;&nbsp;&nbsp; My name is Tanmoy and i have some problems
                  regarding the installation of Python .NET in Ubuntu.
                  whenever i try to follow this (<a
                    moz-do-not-send="true"
href="http://mail.python.org/pipermail/pythondotnet/2006-April/000474.html"
                    target="_blank">http://mail.python.org/pipermail/pythondotnet/2006-April/000474.html</a>)
                  i get this weird error<br clear="all">
                  <br>
                  Unhandled Exception: System.DllNotFoundException:
                  python26<br>
                  &nbsp; at (wrapper managed-to-native)
                  Python.Runtime.Runtime:Py_Initialize ()<br>
                  &nbsp; at Python.Runtime.Runtime.Initialize () [0x00000] in
                  &lt;filename unknown&gt;:0 <br>
                  &nbsp; at Python.Runtime.PythonEngine.Initialize ()
                  [0x00000] in &lt;filename unknown&gt;:0 <br>
                  &nbsp; at Python.Runtime.PythonConsole.Main
                  (System.String[] args) [0x00000] in &lt;filename
                  unknown&gt;:0 <br>
                  <br>
                  Any suggestions where could i be going wrong ? <br>
                  <br>
                  Sincerely <br>
                  Tanmoy Mukherjee<br>
                </div>
              </div>
              <pre><fieldset></fieldset>
_________________________________________________
Python.NET mailing list - <a moz-do-not-send="true" href="mailto:PythonDotNet@python.org" target="_blank">PythonDotNet@python.org</a>
<a moz-do-not-send="true" href="http://mail.python.org/mailman/listinfo/pythondotnet" target="_blank">http://mail.python.org/mailman/listinfo/pythondotnet</a></pre>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
      <br clear="all">
      <br>
      -- <br>
      Tanmoy Mukherjee<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_________________________________________________
Python.NET mailing list - <a class="moz-txt-link-abbreviated" href="mailto:PythonDotNet@python.org">PythonDotNet@python.org</a>
<a class="moz-txt-link-freetext" href="http://mail.python.org/mailman/listinfo/pythondotnet">http://mail.python.org/mailman/listinfo/pythondotnet</a></pre>
    </blockquote>
    <br>
  </body>
</html>