Getting .NET SDK to work with Python 2.4.2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    #1

    Getting .NET SDK to work with Python 2.4.2

    I searched the usenet and some mail archives and tried various
    techniques, but I can't seem to get the .NET 2.0 SDK to work with
    python. I'm a total newbie when it comes to python installs. I
    downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to
    install zope. So i go to the cmd and go to the directory and type
    "python setup.py build" (Will have to install after) and it comes up
    with this(after everything else runs smoothly):
    running build_ext
    error: The .NET SDK needs to be installed before building extensions
    for python.

    I set the .net2.0 directory in windows enviromental PATH and added a
    key to registry in:
    HKEY_{LOCAL_MAC HINE}\Software\ Microsoft\.NETF ramework\Framew orkSDKDir
    to the path of it. It still doesn't recongnize it and I don't know why.

  • Kevin F

    #2
    Re: Getting .NET SDK to work with Python 2.4.2

    Dave wrote:[color=blue]
    > I searched the usenet and some mail archives and tried various
    > techniques, but I can't seem to get the .NET 2.0 SDK to work with
    > python. I'm a total newbie when it comes to python installs. I
    > downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to
    > install zope. So i go to the cmd and go to the directory and type
    > "python setup.py build" (Will have to install after) and it comes up
    > with this(after everything else runs smoothly):
    > running build_ext
    > error: The .NET SDK needs to be installed before building extensions
    > for python.
    >
    > I set the .net2.0 directory in windows enviromental PATH and added a
    > key to registry in:
    > HKEY_{LOCAL_MAC HINE}\Software\ Microsoft\.NETF ramework\Framew orkSDKDir
    > to the path of it. It still doesn't recongnize it and I don't know why.
    >[/color]

    okay, i am new to python and realize that indentation is important. i
    have tried to put everything in their respective indentations but it
    still doesn't work, can someone try to fix this?

    from poplib import *

    server = POP3("mail.blue bottle.com")
    print server.getwelco me()
    print server.user("ne urogasm@bluebot tle.com")
    print server.pass_("h ahaha")

    messagesInfo = server.list()[1]
    numMessages = len(messagesInf o)

    print numMessages

    emails = []
    for msg in messagesInfo:
    msgNum = int(split(msg, " ")[0]
    msgSize = int(split(msg, " ")[1]
    if(msgSize < 20000):
    message = server.retr(msg Num)[1]
    message = join(message, "\n")
    emails.append(m essage)

    Comment

    • Kevin F

      #3
      Re: Getting .NET SDK to work with Python 2.4.2

      okay, i am new to python and realize that indentation is important. i
      have tried to put everything in their respective indentations but it
      still doesn't work, can someone try to fix this?

      from poplib import *

      server = POP3("mail.blue bottle.com")
      print server.getwelco me()
      print server.user("ne urogasm@bluebot tle.com")
      print server.pass_("x xxxxxxx")

      messagesInfo = server.list()[1]
      numMessages = len(messagesInf o)

      print numMessages

      emails = []
      for msg in messagesInfo:
      msgNum = int(split(msg, " ")[0]
      msgSize = int(split(msg, " ")[1]
      if(msgSize < 20000):
      message = server.retr(msg Num)[1]
      message = join(message, "\n")
      emails.append(m essage)


      Kevin F wrote:[color=blue]
      > Dave wrote:[color=green]
      >> I searched the usenet and some mail archives and tried various
      >> techniques, but I can't seem to get the .NET 2.0 SDK to work with
      >> python. I'm a total newbie when it comes to python installs. I
      >> downloaded the .NET 2.0 SDK and I have python 2.4.2 and im trying to
      >> install zope. So i go to the cmd and go to the directory and type
      >> "python setup.py build" (Will have to install after) and it comes up
      >> with this(after everything else runs smoothly):
      >> running build_ext
      >> error: The .NET SDK needs to be installed before building extensions
      >> for python.
      >>
      >> I set the .net2.0 directory in windows enviromental PATH and added a
      >> key to registry in:
      >> HKEY_{LOCAL_MAC HINE}\Software\ Microsoft\.NETF ramework\Framew orkSDKDir
      >> to the path of it. It still doesn't recongnize it and I don't know why.
      >>[/color]
      >
      > okay, i am new to python and realize that indentation is important. i
      > have tried to put everything in their respective indentations but it
      > still doesn't work, can someone try to fix this?
      >
      > from poplib import *
      >
      > server = POP3("mail.blue bottle.com")
      > print server.getwelco me()
      > print server.user("ne urogasm@bluebot tle.com")
      > print server.pass_("h ahaha")
      >
      > messagesInfo = server.list()[1]
      > numMessages = len(messagesInf o)
      >
      > print numMessages
      >
      > emails = []
      > for msg in messagesInfo:
      > msgNum = int(split(msg, " ")[0]
      > msgSize = int(split(msg, " ")[1]
      > if(msgSize < 20000):
      > message = server.retr(msg Num)[1]
      > message = join(message, "\n")
      > emails.append(m essage)[/color]

      Comment

      • Dave

        #4
        Re: Getting .NET SDK to work with Python 2.4.2

        yea i have .net 1.1, but not the sdk. do i need the 1.1 SDK too?

        Comment

        • gregarican

          #5
          Re: Getting .NET SDK to work with Python 2.4.2

          Dave wrote:
          [color=blue]
          > yea i have .net 1.1, but not the sdk. do i need the 1.1 SDK too?[/color]

          I think so. The .Net 1.1 runtime (i.e. - not the SDK) is missing the
          support files necessary for compiling programs. Gotta love those huge
          downloads. I thought the Java SDK's were big :-)~

          Comment

          • Martin v. Löwis

            #6
            Re: Getting .NET SDK to work with Python 2.4.2

            Dave wrote:[color=blue]
            > So i go to the cmd and go to the directory and type
            > "python setup.py build" (Will have to install after) and it comes up
            > with this(after everything else runs smoothly):
            > running build_ext
            > error: The .NET SDK needs to be installed before building extensions
            > for python.[/color]

            The error message is misleading. It is not the SDK that you need,
            but Visual Studio 7.1.

            Alternatively, you can try building the extension with the GNU
            mingw32 compiler.

            Regards,
            Martin

            Comment

            • Dave

              #7
              Re: Getting .NET SDK to work with Python 2.4.2

              Well i don't have the whole visual studio. I don't have 7 either, I
              have 8. I have VB and VC++ Express. If there is no way to download VS7,
              could someone point me to directions on how to build the extensions
              with mingw32?

              Comment

              • Vincent Wehren

                #8
                Re: Getting .NET SDK to work with Python 2.4.2


                "Dave" <dabbaking@gmai l.com> wrote in message
                news:1142773131 .890196.309940@ i39g2000cwa.goo glegroups.com.. .
                | Well i don't have the whole visual studio. I don't have 7 either, I
                | have 8. I have VB and VC++ Express. If there is no way to download VS7,
                | could someone point me to directions on how to build the extensions
                | with mingw32?
                |

                I used the free MS Visual C++ Toolkit 2003 successfully to compile
                extenstions before I had access to VS.
                There's a how to here: http://www.vrplumber.com/programming/mstoolkit/

                Regards,

                Vincent Wehren


                Comment

                • Dave

                  #9
                  Re: Getting .NET SDK to work with Python 2.4.2

                  So this means that I have to download .NET 1.1 SDK. Visual Studio 8
                  comes with msvcrt.lib, but im assuming it's the wrong version.

                  Comment

                  • Vincent Wehren

                    #10
                    Re: Getting .NET SDK to work with Python 2.4.2


                    "Dave" <dabbaking@gmai l.com> wrote in message
                    news:1142778321 .691159.120860@ j33g2000cwa.goo glegroups.com.. .
                    | So this means that I have to download .NET 1.1 SDK. Visual Studio 8
                    | comes with msvcrt.lib, but im assuming it's the wrong version.
                    |

                    Yes, I'd say so.
                    --
                    Vincent Wehren


                    Comment

                    Working...