reading txt file

2012-05-31 Thread Ahmed, Shakir
HI: I am trying to read a txt file and dump the columns in an access database table. But getting problem: Unhandled exception while debugging... Traceback (most recent call last): File C:\WindDuration\Reading_test.py, line 14, in module my_length_1 = nmAddrList[1] IndexError: list index

unzip problem

2011-06-24 Thread Ahmed, Shakir
Hi, I am getting following error message while unziping a .zip file. Any help or idea is highly appreciated. Error message Traceback (most recent call last): File C:\Zip_Process\py\test2_new.py, line 15, in module outfile.write(z.read(name)) IOError: (22, 'Invalid argument')

RE: unzip problem

2011-06-24 Thread Ahmed, Shakir
On Fri, 24 Jun 2011 10:55:52 -0400, Ahmed, Shakir wrote: Hi, I am getting following error message while unziping a .zip file. Any help or idea is highly appreciated. How do you know it is when unzipping the file? Maybe it is, or maybe it isn't. The line giving the error has *two* IO

RE: unzip problem

2011-06-24 Thread Ahmed, Shakir
, Ahmed, Shakir wrote: Hi, I am getting following error message while unziping a .zip file. Any help or idea is highly appreciated. Error message Traceback (most recent call last): File C:\Zip_Process\py\test2_new.py, line 15, in module outfile.write(z.read(name

RE: unzip problem - solved

2011-06-24 Thread Ahmed, Shakir
-Original Message- From: Ethan Furman [mailto:et...@stoneleaf.us] Sent: Friday, June 24, 2011 3:47 PM To: Ahmed, Shakir Cc: Python Subject: Re: unzip problem Ahmed, Shakir wrote: Thanks once again and you are right I am trying to unzip in the network share drive. here is the script now

list from FTP server to a text file

2011-01-06 Thread Ahmed, Shakir
Hi, I am trying to create a list in a txt file from an ftp server. The following code is retrieving the list of the files but could not able to write in a text file. Any help is highly appreciated. Thanks import os import time from ftplib import FTP ftp =

RE: list from FTP server to a text file

2011-01-06 Thread Ahmed, Shakir
2011 10:51:42 -0500, Ahmed, Shakir wrote: Hi, I am trying to create a list in a txt file from an ftp server. The following code is retrieving the list of the files but could not able to write in a text file. Any help is highly appreciated. Thanks import os

Data source path of a lyer file

2010-10-07 Thread Ahmed, Shakir
Hi, Is there any way that I can read the data source path of a .lyr file using Arc Object gp processor. Thanks sa -- http://mail.python.org/mailman/listinfo/python-list

error on exe file

2010-06-16 Thread Ahmed, Shakir
HI, I created a script to do some GIS process ( basic GIS operation exam: create shape file, project and copy) and exporting one of the output to dbf too. The Script is running without any problem where ArcGIS and python are installed. I need to runt this application where both of the

RE: Reading data from a Microsoft Access 2003 database

2010-05-19 Thread Ahmed, Shakir
-Original Message- From: python-list-bounces+shahmed=sfwmd@python.org [mailto:python-list-bounces+shahmed=sfwmd@python.org] On Behalf Of Simon Brunning Sent: Wednesday, May 19, 2010 6:13 AM To: python-list Subject: Re: Reading data from a Microsoft Access 2003 database On 19 May

RE: Python, CGI and Sqlite3

2010-04-13 Thread Ahmed, Shakir
-Original Message- From: python-list-bounces+shahmed=sfwmd@python.org [mailto:python-list-bounces+shahmed=sfwmd@python.org] On Behalf Of Tim Chase Sent: Tuesday, April 13, 2010 2:36 PM To: Majdi Sawalha Cc: python-list@python.org Subject: Re: Python, CGI and Sqlite3 On 04/13/2010

RE: memory error

2009-12-04 Thread Ahmed, Shakir
From: python-list-bounces+shahmed=sfwmd@python.org [mailto:python-list-bounces+shahmed=sfwmd@python.org] On Behalf Of Stephen Hansen Sent: Thursday, December 03, 2009 10:22 PM To: python-list@python.org Subject: Re: memory error On Thu, Dec 3, 2009 at 5:51 AM, Ahmed, Shakir

Data uploading to a ftp server

2009-04-16 Thread Ahmed, Shakir
I am getting following error while uploading data to a ftp server. Any help is highly appreciated. ftp.storbinary(stor erp.shp, ffile2,8192) File C:\Python24\lib\ftplib.py, line 419, in storbinary conn.sendall(buf) File string, line 1, in sendall error: (10054, 'Connection reset by

date format

2009-01-21 Thread Ahmed, Shakir
I am grabbing few fields from a table and one of the columns is in date format. The output which I am getting is Wed Feb 09 00:00:00 2005 but the data in that column is 02/09/2005 and I need the same format output to insert those recodes into another table. print my_service_DATE Wed Feb 09

RE: removing text string

2008-09-11 Thread Ahmed, Shakir
] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Lee Bieber Sent: Wednesday, September 10, 2008 3:45 PM To: python-list@python.org Subject: Re: removing text string On Wed, 10 Sep 2008 11:22:16 -0400, Ahmed, Shakir [EMAIL PROTECTED] declaimed the following in comp.lang.python: I need to remove text

RE: removing text string

2008-09-11 Thread Ahmed, Shakir
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, September 11, 2008 8:54 AM To: python-list@python.org Subject: Re: removing text string Ahmed, Shakir: Actually the number I am getting it is from slicing from a long

removing text string

2008-09-10 Thread Ahmed, Shakir
I need to remove text string from the list of the numbers mentioned below: 080829-7_A 070529-5_c 080824-7_O 070405_6_p The output will be : 080829-7 070529-5 080824-7 070405-6 Any idea

RE: Using strftime

2008-09-03 Thread Ahmed, Shakir
You can try Import time mytimeymd = time.strftime('%y%m%d') print mytimeymd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of frankrentef Sent: Wednesday, September 03, 2008 1:21 PM To: python-list@python.org Subject: Using strftime I have one line of

RE: help with parsing email

2008-08-18 Thread Ahmed, Shakir
@python.org Cc: [EMAIL PROTECTED] Subject: Re: help with parsing email En Thu, 14 Aug 2008 12:50:57 -0300, Ahmed, Shakir [EMAIL PROTECTED] escribió: I need to grab/parse numeric numbers such as app number from incoming emails stored in Microsoft Outlook (Microsoft Exchange server) with specified

RE: help with parsing email

2008-08-18 Thread Ahmed, Shakir
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Werner F. Bruhin Sent: Monday, August 18, 2008 1:04 PM To: python-list@python.org Cc: [EMAIL PROTECTED] Subject: Re: help with parsing email Ahmed, Shakir wrote: Thanks everyone who tried to help me

help with parsing email

2008-08-14 Thread Ahmed, Shakir
Hi all, I do appreciate if any one can help me for my following problem: I need to grab/parse numeric numbers such as app number from incoming emails stored in Microsoft Outlook (Microsoft Exchange server) with specified subject line. Any help with the python script is highly

parsing incoming emails

2008-07-10 Thread Ahmed, Shakir
HI, I am working on a project where I need to parse incoming emails (Microsoft outlook) with a specific subject into an excel file or a Microsoft access table. I am using python for my GIS works but not sure how I can use python script here to work with Microsoft outlook email. Any

need to parse html to microsoft access table

2008-06-20 Thread Ahmed, Shakir
I need help to parse html file into Microsoft Access database table. Right now I could parse it in a csv file but the way it is parsing is not that I want and I could not import the list into access table as the information is parsing one after another and it is not a row column format.

Removing Space and - from a string

2008-05-20 Thread Ahmed, Shakir
I have thousands of records in MS Access database table, which records I am fetching using python script. One of the columns having string like '8 58-2155-58' Desired output: '858215558' I want to remove any spaces between string and any dashes between strings. I could do it in access manually

RE: Removing Space and - from a string

2008-05-20 Thread Ahmed, Shakir
Thanks, works exactly what I needed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Tuesday, May 20, 2008 12:22 PM To: python-list@python.org Subject: Re: Removing Space and - from a string On May 20, 11:02 am, Ahmed, Shakir

RE: Pythonwin

2008-05-09 Thread Ahmed, Shakir
You need to install the same version on your pc, if you have 2.5 already installed you need to download 2.5 pythonwin from http://sourceforge.net Hope it will work for you. Thanks sk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clive_S Sent: Friday,

Error Message

2008-04-23 Thread Ahmed, Shakir
I am getting application error message The instruction at 0x7c910f29 referenced memory at 0x. The memory could not be read. I am running one python script and it is running good without any exception or error message but getting this message when I am closing python 2.4.1 application.

Deleting Microsoft access database

2008-03-20 Thread Ahmed, Shakir
I have a Microsoft Access database that I want to delete whether anyone is using that file. The database is already read only mode residing in a server, users are opening in read only mode. I want to delete that file, I remove read only check but could not delete that file. Getting error

Accessing Oracle/Access database py2.4

2008-02-15 Thread Ahmed, Shakir
I was used import odbc to connect oracle or access table before, now I switched to python 2.4 and is giving me error message. I appreciate any help on that. Thanks sh -- http://mail.python.org/mailman/listinfo/python-list

Table update

2007-08-28 Thread Ahmed, Shakir
I am trying to use python script to update a table by incremental value based on struc_No but having problem to get right result on the value field for the 3rd and 4th same number of struc_no. I need to update the Value field only with the incremental value of 15 or so Any help is highly

shutil.copyfile problem for GIS data

2007-07-16 Thread Ahmed, Shakir
Need help to copy a personal geodatabase from one location to another: Trying to copy a personal geodatabase from one location to another location where all the users are retrieving data from the second location: 1. I can copy over the updated personal geodatabase to the working location

permission denied in shutil.copyfile

2007-07-13 Thread Ahmed, Shakir
Is there any way to copy a file from src to dst if the dst is exclusively open by other users. I am using src = 'c:\mydata\data\*.mdb' dst = 'v:\data\all\*.mdb' shutil.copyfile(src,dst) but getting error message permission denied. Any help is highly appreciated. Thanks sh --

RE: Who uses Python?

2007-06-04 Thread Ahmed, Shakir
I mean other than sysadmins, programmers, and web-site developers? I have heard of some DBAs who use a lot of python. I suppose some scientists. I think python is used in bioinformatics. I think some math and physics people use python. I suppose some people use python to learn programming in

Copy geodatabase(mdb) if it is locked

2007-03-08 Thread Ahmed, Shakir
I am trying to copy a geodatabase (.mdb) file from source to destination using shutil.copyfile(src, dest) It is working fine but the main problem when the destination (.mdb) file is locked by other users then it's bumped out and not copied over. Is there any way to copy the locked .mdb

GIS Shape file upload FTP server

2007-03-01 Thread Ahmed, Shakir
HI Group, As I am very new in python field so this question might be very silly but If I get any help that is highly appreciated. Problem: I have a python script which is working fine to upload files to the ftp server but the problem is it is reducing the actual size after

GIS Shape file upload to FTP server

2007-03-01 Thread Ahmed, Shakir
HI Group, As I am very new in python field so this question might be very silly to you but if I get any help is highly appreciated. Problem: I wrote a python script which is working fine to upload files to the ftp server but the problem is it is reducing the actual size after transferring. I