[python-win32] Problem in install Distutils/python-sybase-0.39
Hi, I am facing problem in installing python-sybase-0.39 and Distutils. python-sybase-0.39 requires Distutils. --- *santosh-r4c:~/python-sybase-0.38 # ls* .cvsignore LICENCE Sybase.py blk.c conn.c databuf.c datetime.c examples iodesc.c money.c numeric.c sybasect.c ChangeLog PKG-INFO TODO cmd.c ctx.c datafmt.c doc freetds.h locale.c msgs.c setup.py sybasect.h * santosh-r4c:~/python-sybase-0.38 # python setup.py install* Traceback (most recent call last): File "setup.py", line 12, in ? import distutils ImportError: No module named distutils *santosh-r4c:~/Distutils-1.0.2 # ls* CHANGES.txt MANIFEST.in PKG-INFO README.txt TODO USAGE.txt distutils doc examples misc setup.cfg setup.py *santosh-r4c:~/Distutils-1.0.2 # python setup.py build* Traceback (most recent call last): File "setup.py", line 30, in ? packages = ['distutils', 'distutils.command'], File "/root/Distutils-1.0.2/distutils/core.py", line 101, in setup _setup_distribution = dist = klass(attrs) File "/root/Distutils-1.0.2/distutils/dist.py", line 130, in __init__ setattr(self, method_name, getattr(self.metadata, method_name)) AttributeError: DistributionMetadata instance has no attribute 'get___doc__' *santosh-r4c:~/Distutils-1.0.2 # python setup.py install* Traceback (most recent call last): File "setup.py", line 30, in ? packages = ['distutils', 'distutils.command'], File "/root/Distutils-1.0.2/distutils/core.py", line 101, in setup _setup_distribution = dist = klass(attrs) File "/root/Distutils-1.0.2/distutils/dist.py", line 130, in __init__ setattr(self, method_name, getattr(self.metadata, method_name)) AttributeError: DistributionMetadata instance has no attribute 'get___doc__' srm-srv-r4c:~/Distutils-1.0.2 # Can someone help me! -- Regards, Santosh M ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Problem in install Distutils/python-sybase-0.39
Python is the same of SLES10 distro santosh-r4c:~ # python -V Python 2.4.2 On Mon, Jun 1, 2009 at 3:28 PM, Gerdus van Zyl wrote: > what python version are you running? and from where did you get > python? distutils should be part of your python since it's part of the > standard library. > > On Mon, Jun 1, 2009 at 11:43 AM, Santosh Mohan > wrote: > > Hi, > > > > I am facing problem in installing python-sybase-0.39 and Distutils. > > > > python-sybase-0.39 requires Distutils. > > > > > --- > > santosh-r4c:~/python-sybase-0.38 # ls > > .cvsignore LICENCE Sybase.py blk.c conn.c databuf.c datetime.c > > examples iodesc.c money.c numeric.c sybasect.c > > ChangeLog PKG-INFO TODO cmd.c ctx.c datafmt.c doc > > freetds.h locale.c msgs.c setup.py sybasect.h > > > > santosh-r4c:~/python-sybase-0.38 # python setup.py install > > Traceback (most recent call last): > > File "setup.py", line 12, in ? > >import distutils > > ImportError: No module named distutils > > > > > > santosh-r4c:~/Distutils-1.0.2 # ls > > CHANGES.txt MANIFEST.in PKG-INFO README.txt TODO USAGE.txt > distutils > > doc examples misc setup.cfg setup.py > > santosh-r4c:~/Distutils-1.0.2 # python setup.py build > > Traceback (most recent call last): > > File "setup.py", line 30, in ? > >packages = ['distutils', 'distutils.command'], > > File "/root/Distutils-1.0.2/distutils/core.py", line 101, in setup > >_setup_distribution = dist = klass(attrs) > > File "/root/Distutils-1.0.2/distutils/dist.py", line 130, in __init__ > >setattr(self, method_name, getattr(self.metadata, method_name)) > > AttributeError: DistributionMetadata instance has no attribute > 'get___doc__' > > > > santosh-r4c:~/Distutils-1.0.2 # python setup.py install > > Traceback (most recent call last): > > File "setup.py", line 30, in ? > > packages = ['distutils', 'distutils.command'], > > File "/root/Distutils-1.0.2/distutils/core.py", line 101, in setup > > _setup_distribution = dist = klass(attrs) > > File "/root/Distutils-1.0.2/distutils/dist.py", line 130, in __init__ > > setattr(self, method_name, getattr(self.metadata, method_name)) > > AttributeError: DistributionMetadata instance has no attribute > 'get___doc__' > > srm-srv-r4c:~/Distutils-1.0.2 # > > > > Can someone help me! > > > > -- > > Regards, > > Santosh M > > > > > > ___ > > python-win32 mailing list > > python-win32@python.org > > http://mail.python.org/mailman/listinfo/python-win32 > > > > > -- Regards, Santosh M ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
Re: [python-win32] Phyton editor
Try PythonWin (http://starship.python.net/crew/mhammond/win32/Downloads.html ) -- Regards, Santosh M ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32
[python-win32] Porting code from Python 2.x code to Python 3.x
HI, I installed new version of Python 3.1. I tried to run my older programs, but I couldn't run. I had used "print" statements, in Newer version print statement syntax is changed. Python2.x >>>x=20 >>>print x >>> 20 Python 3.x >>>x=20 >>> print x File "", line 1 print x ^ SyntaxError: invalid syntax >>>print(x) >>>20 Is there any utility for running the older version programs? Regards, Santosh M ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32