470,618 Members | 1,697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,618 developers. It's quick & easy.

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_MACHINE}\Software\Microsoft\.NETFramew ork\FrameworkSDKDir
to the path of it. It still doesn't recongnize it and I don't know why.

Mar 18 '06 #1
9 1666
Dave wrote:
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_MACHINE}\Software\Microsoft\.NETFramew ork\FrameworkSDKDir
to the path of it. It still doesn't recongnize it and I don't know why.


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.bluebottle.com")
print server.getwelcome()
print server.user("ne*******@bluebottle.com")
print server.pass_("hahaha")

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

print numMessages

emails = []
for msg in messagesInfo:
msgNum = int(split(msg, " ")[0]
msgSize = int(split(msg, " ")[1]
if(msgSize < 20000):
message = server.retr(msgNum)[1]
message = join(message, "\n")
emails.append(message)
Mar 18 '06 #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.bluebottle.com")
print server.getwelcome()
print server.user("ne*******@bluebottle.com")
print server.pass_("xxxxxxxx")

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

print numMessages

emails = []
for msg in messagesInfo:
msgNum = int(split(msg, " ")[0]
msgSize = int(split(msg, " ")[1]
if(msgSize < 20000):
message = server.retr(msgNum)[1]
message = join(message, "\n")
emails.append(message)
Kevin F wrote:
Dave wrote:
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_MACHINE}\Software\Microsoft\.NETFramew ork\FrameworkSDKDir
to the path of it. It still doesn't recongnize it and I don't know why.


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.bluebottle.com")
print server.getwelcome()
print server.user("ne*******@bluebottle.com")
print server.pass_("hahaha")

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

print numMessages

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

Mar 18 '06 #3
yea i have .net 1.1, but not the sdk. do i need the 1.1 SDK too?

Mar 19 '06 #4
Dave wrote:
yea i have .net 1.1, but not the sdk. do i need the 1.1 SDK too?


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 :-)~

Mar 19 '06 #5
Dave wrote:
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.


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
Mar 19 '06 #6
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?

Mar 19 '06 #7

"Dave" <da*******@gmail.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.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
Mar 19 '06 #8
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.

Mar 19 '06 #9

"Dave" <da*******@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.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
Mar 19 '06 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

15 posts views Thread by Christian Tismer | last post: by
20 posts views Thread by Mark Hahn | last post: by
reply views Thread by jkohans | last post: by
6 posts views Thread by nibiery | last post: by
1 post views Thread by Just Another Victim of the Ambient Morality | last post: by
4 posts views Thread by Timothy Smith | last post: by
3 posts views Thread by Thomas Morton | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.