Need some Python help

Roger Upole rupole at hotmail.com
Thu Feb 24 12:48:42 EST 2005


There's a bug in python's tokenizer that's triggered when
the generated wrapper code for a COM object has
lines longer than 512.  See below link for a workaround:

https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1085454&group_id=78018

       Roger


"Matt Upton" <matt2 at roffs.com> wrote in message 
news:mailman.3000.1109259089.22381.python-list at python.org...
>
>
> Hello, I am new to Python and am trying to produce script to run batch
> processes for ArcGIS 9.0 (ArcView).  I have upgraded to Phython 2.4 from 
> 2.1
> and am using the Pythonwin to try to code but am running into a problem.
> Whenever I try to debug my program or run any code past the following code
> it gets hung up and crashes, quits, no warning, and no messages.  HELP, 
> what
> is the problem, it is getting very frustrating.
>
>>> import win32com.client
>>> gp = win32com.client.Dispatch("esriGeoprocessing.GPDispatch.1")
>>> gp.workspace = "c:/Program Files/ArcGIS/NASA"
>
>
> It ALWAYS crashes and quits 30 sec or so after line 2 or 3 of the code
> above????  I can't get Python to do anything in ArcGIS so far, none of the
> tools can be called or used?
>
> I am assuming there is some sort of path or link that is not working
> properly between ArcGIS and Python?
>
> Using the same coding in the IDLE Python environment results in the same
> crashing results.
>
> Oh yea, I am running everything on Windows XP.
>
> Thank you.
>
> Matthew Upton
>
>
>
> 



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



More information about the Python-list mailing list