[python-win32] odbc giving None when the data in a row has string length more that 216 characters

2010-10-13 Thread siddhartha veedaluru
Hi, odbc retrieving value "None" when the data in a row has string length more that 216 characters. The Column AdditionalUpdates is of datatype ntext. the value in it has a string length more than 216, which when retrieved gives None. -

Re: [python-win32] Connection to remote machine registry fails.

2009-09-18 Thread siddhartha veedaluru
is error: error: (5, 'InitiateSystemShutdown', 'Access is denied.') I'm i missing anything or any window's way of doing this kind of things. Thank you very much for the responce. Thanks, Siddhartha > 1. Connection to remote machine registry fails. > (siddh

[python-win32] Connection to remote machine registry fails.

2009-09-17 Thread siddhartha veedaluru
Hi , I'm trying to connect to a remote windows machine's registry using ConnectRegistry and try to get the process architecture information. Here is the code snippet for it #processRegKey = "System\CurrentControlSet\Control\Session Manager\Environment" #processRegValue = "PROCESSOR_ARCHITECTURE"

[python-win32] Permission denied erro while copying file from remote machine to local using win32wnet.WnetAddConnection

2009-06-30 Thread siddhartha veedaluru
Hi, I have used the following code snippet to copy files or folder from remote machine to local machine. I have used the same method to copy files to remote machine. Can some one point me to solve this? Or Help needed to copy files or folders from remote machne ot lcoal one and also remote to

[python-win32] Silent installation of pywin32

2009-05-08 Thread siddhartha veedaluru
Hi all Do we have a way to install pywin32 module silently.? Does the exe which is downloable support silent installation? thanks Siddhartha ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] is these modules available for IA64bit

2009-03-30 Thread siddhartha veedaluru
hi, i have a product (client/server based) that can be installed on any window server os with 32,x64 and IA64 bit support. i need to run my scripts which will update my product. i wrote for 32bit using python2.5 and using pyodbc, pywin32 modules. I see that i can use 32bit ones on x64 but not on

[python-win32] Unable to connect to MSSQL Database(x64) using pyodbc 32bit & python 32bit

2009-02-06 Thread siddhartha veedaluru
Hi all, I trying to connect to MSSQl 2005 Database which is on a x64 bit machine. i have installed 32bit python2.5 and pyodbc.pywin32-211 i have created a odbc DSN. When i'm using this DSN in the script it errors out saying ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not f

Re: [python-win32] python.exe crashes while connecting to MSSQL Database using pyodbc.connect

2008-12-17 Thread siddhartha veedaluru
Hi, Thank you Everybody who vested their valuable time in replying me. Thanks Vernon Cole Thanks Michael. Michael, As you said,i have downloaded the latest version of pyodbc and tested with it. same issue comes up again. Other facts i noticed while testing : 1) The script just exists with retur

[python-win32] python.exe crashes while connecting to the MSSQL Database on remote machine using pyodbc module

2008-12-17 Thread siddhartha veedaluru
Hi, Summary-: python.exe crashes while connecting to the MSSQL Database on remote machine using pyodbc module OS-: win 2003 server, 32bit Installed python products: python 2.5,pyodbc-2.0.52,pywin32-211 Problem Description & Steps followed: i have MSSQL Database on a remote machine i have created

Re: [python-win32] python.exe crashes while connecting to MSSQL Database using pyodbc.connect

2008-12-17 Thread siddhartha veedaluru
Hi, > Summary-: python.exe crashes while connecting to the MSSQL Database on > remote machine using pyodbc module > OS-: win 2003 server, 32bit > Installed python products: python 2.5,pyodbc-2.0.52,pywin32-211 > > Problem Description & Steps followed: > i have MSSQL Database on a remote machine >

[python-win32] Created Map NetWork Drive is not visible in "My Computer" window

2008-08-24 Thread siddhartha veedaluru
Hi, i have used the following code to create Map NetWork Drive. But it is not visble when i open "My Computer" window. --- import win32net,time data = {} data['remote'] = r'\\fredo\Project' data['local'] = 'K:' data['user'] =

Re: [python-win32] Access is denied while retriving 64 bit registry from 32bit

2008-07-29 Thread siddhartha veedaluru
Thanks Tim. Sorry,i was wrong in using the operators i modified the script and once again i ran it import os, sys from _winreg import * KEY_WOW64_64KEY = 256 regHandle = OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\Value Systems\ValApp\Instance001",0,KEY_WOW64_64KEY|KEY_READ|KEY_WRITE) print regHandle val

[python-win32] Access is denied while retriving 64 bit registry from 32bit python script

2008-07-29 Thread siddhartha veedaluru
Hi, Hello, I have installed 32bit python on x64 bit machine. I also installed pywin32-211.win32-py2.5.exe As part of a script i required to access the registry and i used the following code snippet. import os, sys from _winreg import * KEY_WOW64_64KEY = 256 regHandle = OpenKey(HKEY_LOCAL_MACHINE

Re: [python-win32] python-win32 Digest, Vol 64, Issue 25

2008-07-23 Thread siddhartha veedaluru
On Wed, Jul 23, 2008 at 4:27 PM, siddhartha veedaluru < [EMAIL PROTECTED]> wrote: > Hi, > > Tried the following snippet: > > import os, sys > from _winreg import * > KEY_WOW64_64KEY = 256 > regHandle = > OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\Myapp\Base&

Re: [python-win32] python-win32 Digest, Vol 64, Issue 25

2008-07-23 Thread siddhartha veedaluru
Hi, Tried the following snippet: import os, sys from _winreg import * KEY_WOW64_64KEY = 256 regHandle = OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\Myapp\Base",0,KEY_WOW64_64KEY) val = QueryValue(regHandle,"nPLATTYPE") print val Got the following error Traceback (most recent call last): File "C:\Pr

[python-win32] 32bit python on x64 bit machine cannot access registry

2008-07-22 Thread siddhartha veedaluru
Hello i cannot access some of the values from registry using 32bit python on x64bit machine i need to install 32bit because i couldn't get x64bit pyodbc module. Can anyone know where can i get the x64 version pyodbc. or solution to the above problem. thanks Siddhartha __

[python-win32] Cannot import "pyodbc" module

2008-07-21 Thread siddhartha veedaluru
Hi, Getting the following error while i install the pyodbc module and import it >>> import pyodbc Traceback (most recent call last): File "", line 1, in import pyodbc ImportError: DLL load failed with error code 193 i have installed win32it pyodbc module in a x64 Win 2003 os already havin

[python-win32] Get Blank Lines in a text file

2008-07-03 Thread siddhartha veedaluru
Hi, As part of a task i need to verify that last line of a text file is blank. When i read that file, its getting ignored and i couldn't able to check that. Here is the code snippet that i used: import os iniFileName = "Config.ini" iniFile = open(iniFileName, 'r') lines = iniFile.readlines() noOf

[python-win32] Error while listing the Installed Software using wmi module

2008-05-29 Thread siddhartha veedaluru
Hi all, The following code snippet gives the error import wmi c = wmi.WMI() for i in c.Win32_Product(): print i.Name Output --- Windows Installer Clean Up Python 2.5.1 Debugging Tools for Windows Windows Resource Kit Tools Adobe Reader 8.1.2 Java(TM) SE Runtime Environment 6 Java(TM) 6 U

[python-win32] Fwd: import COM modules and access the methods and properties

2008-05-20 Thread siddhartha veedaluru
Hi, we are using HP Quality Center Test Director. It provides Open Test Architecture API so that we can you use this API with other tools such as VB,C++ to connect,perform operation etc with TestDirector.The Open Test Architecture API is a COM library. Using PythonWin COM Browser i can see its O

[python-win32] import COM modules and access the methods and properties

2008-05-20 Thread siddhartha veedaluru
Hi, we are using HP Quality Center Test Director. It provides Open Test Architecture API so that we can you use this API with other tools such as VB,C++ to connect,perform operation etc with TestDirector.The Open Test Architecture API is a COM library. Using PythonWin COM Browser i can see its Ob

Re: [python-win32] python-win32 Digest, Vol 62, Issue 13

2008-05-15 Thread siddhartha veedaluru
Hi, Sorry about the confusing question. Here is what i want to achieve i have certain updates that i need to install on different machines These updates are placed in a location and is mapped to all the machines There will be an exe file say "InstallUpdate.exe" for every update. i need to run t

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread siddhartha veedaluru
Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Thanks, Siddhartha ___ python-win32 mailing list python-win32@python.or

Re: [python-win32] Create a System DSN which points to a MSSQL Database on Remote Machine

2008-05-12 Thread siddhartha veedaluru
Thanks tim, But when i give user and pass information it is not able to create the dsn It is default local system user name and creating, which fails connecting to database. i gave the user information as following: "SQL Server", SERVER="SQLSVR01",DESCRIPTION="MS SQL Server DSN", DSN="MyDSN", DA

[python-win32] Create a System DSN which points to a MSSQL Database on remote machine

2008-05-06 Thread siddhartha veedaluru
Hi, I'm trying to create a Sytem DSN which points to a MSSQL Database on remote machine. i tried using the following code snip in the following link http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/414879 i customized the script according to my requirements and it got created but i could

[python-win32] Will wmi can a command on remore host and get the return code

2008-04-30 Thread siddhartha veedaluru
Hi, I need to run a command on remote machine (may be in another domain also) and get the output and return code of that command or exe. Also i need to copy file to remote machine.? Can i achive it through wmi, if not help how can i get it done. Thanks a million, Siddhartha

[python-win32] Create x64 exe using py2exe on 32bit machine

2008-04-25 Thread siddhartha veedaluru
Hi, how can i create an x64 exe of a python script on a 32 bit machine. Please let me know if need any other information Thanks Siddhartha ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Library not Registered Error while running

2008-03-18 Thread siddhartha veedaluru
lt;[EMAIL PROTECTED]> > Subject: Re: [python-win32] python-win32 Digest, Vol 60, Issue 26 > Cc: python-win32@python.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > siddhartha veedaluru wrote: > > Hi Tim, >

[python-win32] Library not Registered Error while running

2008-03-17 Thread siddhartha veedaluru
than "Re: Contents of python-win32 digest..." > > > Today's Topics: > > 1. Library not Registered Error while running (siddhartha veedaluru) > 2. Re: Library not Registered Error while running (Tim Golden) > > > -------

Re: [python-win32] python-win32 Digest, Vol 60, Issue 26

2008-03-17 Thread siddhartha veedaluru
;Re: Contents of python-win32 digest..." > > > Today's Topics: > > 1. Library not Registered Error while running (siddhartha veedaluru) > 2. Re: Library not Registered Error while running (Tim Golden) > > > -------

[python-win32] Library not Registered Error while running

2008-03-16 Thread siddhartha veedaluru
ormat=flowed siddhartha veedaluru wrote: > I have installed win32 extensions on my windows 2003 server > i'm using python 2.5.1. > > downloaded the wmi module 1.3.2 to my machine > used > > "python setup.py install" > > to install the module > > i tried run

[python-win32] Library not Registered Error while running WMI example script

2008-03-14 Thread siddhartha veedaluru
Hello, I have installed win32 extensions on my windows 2003 server i'm using python 2.5.1. downloaded the wmi module 1.3.2 to my machine used "python setup.py install" to install the module i tried run an example mentioned in the web page. it gave the following error. File "C:\Python25\Lib\si