[Visualpython-discuss] Re: [Visualpython-discuss] VisualPython and Python 2.2
by Andreas.Trawoeger other posts by this author
Oct 19 2001 6:12PM messages near this date
view in the new Beta List Site
ActiveState ships Visual Python for Visual Studio .NET Final Version
|
[Visualpython-discuss] VisualPython installer gets error
Hi Michael!
I did run into similar problem the other way round: My Active State Python
Version was too old when I tried to install Visual Python. So I had to
upgrade too Active Python 2.1.1.212 to be able to install Visual Python.
After installing Visual Python you can use any Python Interpreter you want.
I have used Python 2.2a4 without a problem and 2.2b1 seams to work too (I'm
downloading it while writing this mail). The only thing you have to do is
to put the interpreter into different directory and to choose it in your
Visual Studio project settings.
P.S: Yipee !!! Python 2.2b1 really works with Visual Python:
When you get hold of Python 2.2b1 try the following (This script didn't
work in 2.2a4 because oveloading __str__ was broken).
This small script defines a new subclass of string called octetstring and
overloads the str() to return the string in hex.
from binascii import b2a_hex
class octetstring(str):
def __str__(self):
return b2a_hex(self)
o = octetstring('A')
print "o :",o
When you are debbugging this script in Visual Python you get the following
output for 'o':
- o 'A' octetstring
+ .__add__ __add__ (method-wrapper) method-wrapper
+ .__class__ octetstring (type) type
+ .__class__ octetstring (type) type
+ .__contains__ __contains__ (method-wrapper) method-wrapper
+ .__delattr__ __delattr__ (method-wrapper) method-wrapper
+ .__dict__ {} dictionary
+ .__eq__ __eq__ (method-wrapper) method-wrapper
+ .__ge__ __ge__ (method-wrapper) method-wrapper
+ .__getattribute__ __getattribute__ (method-wrapper) method-wrapper
+ .__getitem__ __getitem__ (method-wrapper) method-wrapper
+ .__getslice__ __getslice__ (method-wrapper) method-wrapper
+ .__gt__ __gt__ (method-wrapper) method-wrapper
+ .__hash__ __hash__ (method-wrapper) method-wrapper
+ .__init__ __init__ (method-wrapper) method-wrapper
+ .__le__ __le__ (method-wrapper) method-wrapper
+ .__len__ __len__ (method-wrapper) method-wrapper
+ .__lt__ __lt__ (method-wrapper) method-wrapper
.__module__ '__main__' str
+ .__mul__ __mul__ (method-wrapper) method-wrapper
+ .__ne__ __ne__ (method-wrapper) method-wrapper
+ .__repr__ __repr__ (method-wrapper) method-wrapper
+ .__rmul__ __rmul__ (method-wrapper) method-wrapper
+ .__setattr__ __setattr__ (method-wrapper) method-wrapper
+ .__str__ __str__ (instance method) instance method
[0] 'A' str
cu andreas
---
If you wrap the Internet around every person on the planet and spin the
planet, software flows in the network.
- Eben Moglen's Metaphorical Corollary to Faraday's Law
> First, the ActivePython release *is* an Alpha, and it's designed
> to be run side-by-side with an older version of Python. So if
> you want to run Visual Python you should install ActivePython
> 2.1.1.212 (latest release as I write this) as well, and then
> try installing Visual Python.
> Eric Promislow
> EricP@[...].com
> > I am getting an error when I try to install VisualPython. It
> > posts an error message as soon as the installer starts that
> > says: "ActivePython not found."
> >
> > Background.
> >
> > I installed Visual Studio.net Beta 2
> > I installed ActivePython 2.2.0 Alpha 2 build 1
> > I tried to run the VisualPython installer and I got
> > the error message above.
> >
> > Any ideas what I did wrong?
> >
> > -Michael.
|