Getting .NET SDK to work with Python 2.4.2

D

Dave

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\.NETFramework\FrameworkSDKDir
to the path of it. It still doesn't recongnize it and I don't know why.
 
K

Kevin F

Dave said:
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\.NETFramework\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("(e-mail address removed)")
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)
 
K

Kevin F

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("(e-mail address removed)")
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 said:
Dave said:
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\.NETFramework\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("(e-mail address removed)")
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)
 
D

Dennis Lee Bieber

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

Do you have .NET 1.1?

2.0 does not replace 1.1; you may need to have both.
--
 
G

gregarican

Dave said:
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 :)~
 
?

=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

Dave said:
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
 
D

Dave

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?
 
V

Vincent Wehren

| 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
 
D

Dave

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.
 
V

Vincent Wehren

| 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top