GDAL-1.7.1 : vcvarsall.bat missing

2010-06-24 Thread kBob

 I am attempting to install the GDAL bindings (GDAL-1.7.1) on a
Windows XP Desktop with Python 2.6 and GDAL. During install, the
script finishes with "error: Unable to find vcvarsall.bat".

What dependencies am I missing?


C:\PyPI\GDAL-1.7.1>c:\python26\python setup.py install
running install
running bdist_egg
running egg_info
writing GDAL.egg-info\PKG-INFO
writing top-level names to GDAL.egg-info\top_level.txt
writing dependency_links to GDAL.egg-info\dependency_links.txt
reading manifest file 'GDAL.egg-info\SOURCES.txt'
writing manifest file 'GDAL.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
running build_ext
building 'osgeo._gdal' extension
error: Unable to find vcvarsall.bat

Kelly Dean
Fort Collins, CO
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-25 Thread kBob
On Jun 25, 1:26 am, Mark Lawrence  wrote:
> On 24/06/2010 21:48, Christian Heimes wrote:
>
> >>   I am attempting to install the GDAL bindings (GDAL-1.7.1) on a
> >> Windows XP Desktop with Python 2.6 and GDAL. During install, the
> >> script finishes with "error: Unable to find vcvarsall.bat".
>
> >> What dependencies am I missing?
>
> > Visual Studio 2008
>
> > Christian
>
> Not always, see my comment here.
>
> http://www.mail-archive.com/python-wi...@python.org/msg06755.html
>
> Kindest regards.
>
> Mark Lawrence

 Thanks for the tips, gentlemen.

 I'll try my luck with Cygwin's ggc before I look into another C/C++
compiler.

Kelly Dean
Fort Collins, CO
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: GDAL-1.7.1 : vcvarsall.bat missing

2010-06-28 Thread kBob
On Jun 25, 9:51 am, Max Erickson  wrote:
> kBob  wrote:
> > On Jun 25, 1:26 am, Mark Lawrence 
> > wrote:
> >> On 24/06/2010 21:48, Christian Heimes wrote:
>
> >> >>   I am attempting to install the GDAL bindings (GDAL-1.7.1)
> >> >> on a Windows XP Desktop with Python 2.6 and GDAL. During
> >> >> install, the
>
> If it suits your needs, you can wire the OSGEO installation of GDAL
> to a python.org python installation (rather than a bundled OSGEO
> python interpreter, which is another option):
>
> http://trac.osgeo.org/osgeo4w/
>
> Setting the correct paths was enough to get the basic things I used
> to work (but I haven't used it extensively).
>
>
>
> >  Thanks for the tips, gentlemen.
>
> >  I'll try my luck with Cygwin's ggc before I look into another
> >  C/C++
> > compiler.
>
> > Kelly Dean
> > Fort Collins, CO
>
> Giovanni Bajo packages a version of MinGW GCC for use with Python:
>
> http://www.develer.com/oss/GccWinBinaries
>
> He does note on the page that the MinGW project isn't quite so sure
> that GCC 4.x is ready for release.
>
> Max

Thanks again for the tips. Your suggestions are very helpful.

I was able to get the FWTools installed on the Windows Desktop. It
worked out very well. No issues with the GDAL included in this set of
binaries.

However, I am intrigued with the OSGeo Project, especially with the Qt
binaries included. After understanding GDAL, I'll have to build some
GUI applications to display the GeoTIFF, MrSID, and JPG2000. I was
planning to use Tkinter, but with Qt available from OSgeo4W, it will
give me an opportunity to explorer the GUI development offer by this
package.

Kelly Dean
Fort Collins, CO
-- 
http://mail.python.org/mailman/listinfo/python-list


urllib timeout

2010-07-27 Thread kBob


 I created a script to access weather satellite imagery fron NOAA's
ADDS.

 It worked fine until recently with Python 2.6.

 The company changed the Internet LAN connections to "Accept Automatic
settings" and "Use automatic configuration script"

 How do you get urllib.urlopen to use the the "automatic script"
configuration?

 This code worked recently, until the company implemented these LAN
connections...

SAT_URL = "http://adds.aviationweather.gov/data/satellite/
latest_BWI_vis.jpg"
satpic = urllib.urlopen(SAT_URL, proxies=0 )
satimg = satpic.read()


Kelly Dean
Fort Collins, CO
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: urllib timeout

2010-07-27 Thread kBob
On Jul 27, 4:23 pm, MRAB  wrote:
> kBob wrote:
>
> >  I created a script to access weather satellite imagery fron NOAA's
> > ADDS.
>
> >  It worked fine until recently with Python 2.6.
>
> >  The company changed the Internet LAN connections to "Accept Automatic
> > settings" and "Use automatic configuration script"
>
> >  How do you get urllib.urlopen to use the the "automatic script"
> > configuration?
>
> >  This code worked recently, until the company implemented these LAN
> > connections...
>
> >     SAT_URL = "http://adds.aviationweather.gov/data/satellite/
> > latest_BWI_vis.jpg"
> >     satpic = urllib.urlopen(SAT_URL, proxies=0 )
> >     satimg = satpic.read()
>
> For the record, I got:
>
>  >>> import urllib
>  >>> SAT_URL =
> "http://adds.aviationweather.gov/data/satellite/latest_BWI_vis.jpg";
>  >>> satpic = urllib.urlopen(SAT_URL, proxies=0 )
> Traceback (most recent call last):
>    File "", line 1, in 
>    File "C:\Python26\lib\urllib.py", line 79, in urlopen
>      opener = FancyURLopener(proxies=proxies)
>    File "C:\Python26\lib\urllib.py", line 617, in __init__
>      URLopener.__init__(self, *args, **kwargs)
>    File "C:\Python26\lib\urllib.py", line 129, in __init__
>      assert hasattr(proxies, 'has_key'), "proxies must be a mapping"
> AssertionError: proxies must be a mapping
>
> However, urllib.urlretrieve(...) works.- Hide quoted text -
>
> - Show quoted text -

I saw that, but I still get the same error time out error ...

>>> import urllib
>>> SAT_URL = "http://adds.aviationweather.gov/data/satellite/";
>>> SAT_FILE = "latest_BWI_vis.jpg"
>>> satimg = urllib.urlretrieve( SAT_URL, SAT_FILE )
Traceback (most recent call last):
  File "", line 1, in 
  File "c:\python26\lib\urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
  File "c:\python26\lib\urllib.py", line 237, in retrieve
fp = self.open(url, data)
  File "c:\python26\lib\urllib.py", line 205, in open
return getattr(self, name)(url)
  File "c:\python26\lib\urllib.py", line 344, in open_http
h.endheaders()
  File "c:\python26\lib\httplib.py", line 904, in endheaders
self._send_output()
  File "c:\python26\lib\httplib.py", line 776, in _send_output
self.send(msg)
  File "c:\python26\lib\httplib.py", line 735, in send
self.connect()
  File "c:\python26\lib\httplib.py", line 716, in connect
self.timeout)
  File "c:\python26\lib\socket.py", line 514, in create_connection
raise error, msg
IOError: [Errno socket error] [Errno 10060] A connection attempt
failed because
the connected party did not properly respond after a period of time,
or establis
hed connection failed because connected host has failed to respond

Kelly
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: urllib timeout

2010-07-28 Thread kBob
On Jul 27, 4:56 pm, MRAB  wrote:
> kBob wrote:
> > On Jul 27, 4:23 pm, MRAB  wrote:
> >> kBob wrote:
>
> >>>  I created a script to access weather satellite imagery fron NOAA's
> >>> ADDS.
> >>>  It worked fine until recently with Python 2.6.
> >>>  The company changed the Internet LAN connections to "Accept Automatic
> >>> settings" and "Use automatic configuration script"
> >>>  How do you get urllib.urlopen to use the the "automatic script"
> >>> configuration?
> >>>  This code worked recently, until the company implemented these LAN
> >>> connections...
> >>>     SAT_URL = "http://adds.aviationweather.gov/data/satellite/
> >>> latest_BWI_vis.jpg"
> >>>     satpic = urllib.urlopen(SAT_URL, proxies=0 )
> >>>     satimg = satpic.read()
> >> For the record, I got:
>
> >>  >>> import urllib
> >>  >>> SAT_URL =
> >> "http://adds.aviationweather.gov/data/satellite/latest_BWI_vis.jpg";
> >>  >>> satpic = urllib.urlopen(SAT_URL, proxies=0 )
> >> Traceback (most recent call last):
> >>    File "", line 1, in 
> >>    File "C:\Python26\lib\urllib.py", line 79, in urlopen
> >>      opener = FancyURLopener(proxies=proxies)
> >>    File "C:\Python26\lib\urllib.py", line 617, in __init__
> >>      URLopener.__init__(self, *args, **kwargs)
> >>    File "C:\Python26\lib\urllib.py", line 129, in __init__
> >>      assert hasattr(proxies, 'has_key'), "proxies must be a mapping"
> >> AssertionError: proxies must be a mapping
>
> >> However, urllib.urlretrieve(...) works.- Hide quoted text -
>
> >> - Show quoted text -
>
> > I saw that, but I still get the same error time out error ...
>
> >>>> import urllib
> >>>> SAT_URL = "http://adds.aviationweather.gov/data/satellite/";
> >>>> SAT_FILE = "latest_BWI_vis.jpg"
> >>>> satimg = urllib.urlretrieve( SAT_URL, SAT_FILE )
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "c:\python26\lib\urllib.py", line 93, in urlretrieve
> >     return _urlopener.retrieve(url, filename, reporthook, data)
> >   File "c:\python26\lib\urllib.py", line 237, in retrieve
> >     fp = self.open(url, data)
> >   File "c:\python26\lib\urllib.py", line 205, in open
> >     return getattr(self, name)(url)
> >   File "c:\python26\lib\urllib.py", line 344, in open_http
> >     h.endheaders()
> >   File "c:\python26\lib\httplib.py", line 904, in endheaders
> >     self._send_output()
> >   File "c:\python26\lib\httplib.py", line 776, in _send_output
> >     self.send(msg)
> >   File "c:\python26\lib\httplib.py", line 735, in send
> >     self.connect()
> >   File "c:\python26\lib\httplib.py", line 716, in connect
> >     self.timeout)
> >   File "c:\python26\lib\socket.py", line 514, in create_connection
> >     raise error, msg
> > IOError: [Errno socket error] [Errno 10060] A connection attempt
> > failed because
> > the connected party did not properly respond after a period of time,
> > or establis
> > hed connection failed because connected host has failed to respond
>
> It should be like this:
>
> SAT_URL =
> "http://adds.aviationweather.gov/data/satellite/latest_BWI_vis.jpg";
> SAT_FILE = r"C:\latest_BWI_vis.jpg"
> urllib.urlretrieve(SAT_URL, SAT_FILE)- Hide quoted text -
>
> - Show quoted text -

It doesn't matter, the same error 10060 appears .

The connection problem has to do with the proxy settings.

 In order for me to use Internet Explorer, the LAN's Automatic
configuration must be turned on and use a script found on the
company's proxy server. I was wondering how to get urllib.urlopen to
access the script on the proxy server.

Thanks for your help.

Kelly
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: urllib timeout

2010-07-28 Thread kBob
On Jul 28, 9:11 am, kBob  wrote:
> On Jul 27, 4:56 pm, MRAB  wrote:
>
>
>
>
>
> > kBob wrote:
> > > On Jul 27, 4:23 pm, MRAB  wrote:
> > >> kBob wrote:
>
> > >>>  I created a script to access weather satellite imagery fron NOAA's
> > >>> ADDS.
> > >>>  It worked fine until recently with Python 2.6.
> > >>>  The company changed the Internet LAN connections to "Accept Automatic
> > >>> settings" and "Use automatic configuration script"
> > >>>  How do you get urllib.urlopen to use the the "automatic script"
> > >>> configuration?
> > >>>  This code worked recently, until the company implemented these LAN
> > >>> connections...
> > >>>     SAT_URL = "http://adds.aviationweather.gov/data/satellite/
> > >>> latest_BWI_vis.jpg"
> > >>>     satpic = urllib.urlopen(SAT_URL, proxies=0 )
> > >>>     satimg = satpic.read()
> > >> For the record, I got:
>
> > >>  >>> import urllib
> > >>  >>> SAT_URL =
> > >> "http://adds.aviationweather.gov/data/satellite/latest_BWI_vis.jpg";
> > >>  >>> satpic = urllib.urlopen(SAT_URL, proxies=0 )
> > >> Traceback (most recent call last):
> > >>    File "", line 1, in 
> > >>    File "C:\Python26\lib\urllib.py", line 79, in urlopen
> > >>      opener = FancyURLopener(proxies=proxies)
> > >>    File "C:\Python26\lib\urllib.py", line 617, in __init__
> > >>      URLopener.__init__(self, *args, **kwargs)
> > >>    File "C:\Python26\lib\urllib.py", line 129, in __init__
> > >>      assert hasattr(proxies, 'has_key'), "proxies must be a mapping"
> > >> AssertionError: proxies must be a mapping
>
> > >> However, urllib.urlretrieve(...) works.- Hide quoted text -
>
> > >> - Show quoted text -
>
> > > I saw that, but I still get the same error time out error ...
>
> > >>>> import urllib
> > >>>> SAT_URL = "http://adds.aviationweather.gov/data/satellite/";
> > >>>> SAT_FILE = "latest_BWI_vis.jpg"
> > >>>> satimg = urllib.urlretrieve( SAT_URL, SAT_FILE )
> > > Traceback (most recent call last):
> > >   File "", line 1, in 
> > >   File "c:\python26\lib\urllib.py", line 93, in urlretrieve
> > >     return _urlopener.retrieve(url, filename, reporthook, data)
> > >   File "c:\python26\lib\urllib.py", line 237, in retrieve
> > >     fp = self.open(url, data)
> > >   File "c:\python26\lib\urllib.py", line 205, in open
> > >     return getattr(self, name)(url)
> > >   File "c:\python26\lib\urllib.py", line 344, in open_http
> > >     h.endheaders()
> > >   File "c:\python26\lib\httplib.py", line 904, in endheaders
> > >     self._send_output()
> > >   File "c:\python26\lib\httplib.py", line 776, in _send_output
> > >     self.send(msg)
> > >   File "c:\python26\lib\httplib.py", line 735, in send
> > >     self.connect()
> > >   File "c:\python26\lib\httplib.py", line 716, in connect
> > >     self.timeout)
> > >   File "c:\python26\lib\socket.py", line 514, in create_connection
> > >     raise error, msg
> > > IOError: [Errno socket error] [Errno 10060] A connection attempt
> > > failed because
> > > the connected party did not properly respond after a period of time,
> > > or establis
> > > hed connection failed because connected host has failed to respond
>
> > It should be like this:
>
> > SAT_URL =
> > "http://adds.aviationweather.gov/data/satellite/latest_BWI_vis.jpg";
> > SAT_FILE = r"C:\latest_BWI_vis.jpg"
> > urllib.urlretrieve(SAT_URL, SAT_FILE)- Hide quoted text -
>
> > - Show quoted text -
>
> It doesn't matter, the same error 10060 appears .
>
> The connection problem has to do with the proxy settings.
>
>  In order for me to use Internet Explorer, the LAN's Automatic
> configuration must be turned on and use a script found on the
> company's proxy server. I was wondering how to get urllib.urlopen to
> access the script on the proxy server.
>
> Thanks for your help.
>
> Kelly- Hide quoted text -
>
> - Show quoted text -

OK, looks like I need to start a new thread.

  How to get urllib to work with a Web Proxy Auto-Discovery Protocol
(WPAD)?

Kelly
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: urllib timeout

2010-07-28 Thread kBob
On Jul 28, 12:44 pm, John Nagle  wrote:
> On 7/27/2010 2:36 PM, kBob wrote:
>
>
>
>
>
>
>
> >   I created a script to access weather satellite imagery fron NOAA's
> > ADDS.
>
> >   It worked fine until recently with Python 2.6.
>
> >   The company changed the Internet LAN connections to "Accept Automatic
> > settings" and "Use automatic configuration script"
>
> >   How do you get urllib.urlopen to use the the "automatic script"
> > configuration?
>
> >   This code worked recently, until the company implemented these LAN
> > connections...
>
> >      SAT_URL = "http://adds.aviationweather.gov/data/satellite/
> > latest_BWI_vis.jpg"
>
>    Try
>
> https://adds.aviationweather.gov/data/satellite/latest_BWI_vis.jpg
>
>    The aviationweather.gov site will accept a HTTPS request.
>
>    Maybe that will bypass whatever lame web proxy is in the way.
>
>                                         John Nagle- Hide quoted text -
>
> - Show quoted text -

Same error - 10060.

Thanks for the suggestion.

Kelly
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: From IDL to Python

2010-09-13 Thread kBob
On Sep 13, 9:58 am, Chris  wrote:
> Hi,
>
> I'm an IDL user since years and try now to learn Python since a few
> days.
> I'm blogging the various steps of this transition 
> to:http://idl2python.blogspot.com/
> I hope that other IDL switchers can help me by commenting on the blog
> and helping (me and others) to learn quickly the basics of Python.
> Cheers,
> Christophe

I have been using IDL and ENVI for years and started working with
Python this summer. Mostly, as I find myself working with ArcGIS users
and Python is popular among this group. I couldn't convinced them that
IDL/ENVI was easier.

Did my first "widget" with Python/Tkinter, which does require more
work. Still can't get my Python version of the Widget/Hourglass to
work correctly. However, you see, you may have to rebuild those IDL
routines your so use to using in IDL.

However, some areas are alot easier with Python like XML and Net URL
stuff (working on OGC WMS and WFS project). There is plenty of
examples to help you out.

Maybe I should start my own blog spot, just to share my experiences.

Kelly Dean
Milliken, CO

-- 
http://mail.python.org/mailman/listinfo/python-list