[ matplotlib-Bugs-2949906 ] finance.quotes_historical_yahoo raises ZeroDivisionError

The instructions on that page (reasonably) assume that the developer has a working Python build system and knows how to build the required 3rd party libraries. This is not matplotlib specific information and is better described in the documentation for Python and the libraries.

···

On 6/8/2010 11:10 PM, David Goldsmith wrote:

On Tue, Jun 8, 2010 at 11:21 AM, Christoph Gohlke <cgohlke@…2143… > <mailto:cgohlke@…2143…>> wrote:

    On 6/8/2010 10:39 AM, John Hunter wrote:

        On Tue, Jun 8, 2010 at 11:53 AM, David Goldsmith > <d.l.goldsmith@…287… <mailto:d.l.goldsmith@…287…>> wrote:

            On Tue, Jun 8, 2010 at 9:52 AM, David > Goldsmith<d.l.goldsmith@…287… > <mailto:d.l.goldsmith@…287…>> > wrote:

                --------- Forwarded message ----------
                From: SourceForge.net<noreply@…3152…
                <mailto:noreply@…3152…>>
                Date: Mon, Jun 7, 2010 at 6:06 AM
                Subject: [ matplotlib-Bugs-2949906 ]
                finance.quotes_historical_yahoo
                raises ZeroDivisionError
                To: noreply@…3152… <mailto:noreply@…3152…>

                Bugs item #2949906, was opened at 2010-02-11 13:44
                Message generated for change (Comment added) made by jdh2358
                You can respond by visiting:

                https://sourceforge.net/tracker/?func=detail&atid=560720&aid=2949906&group_id=80706
                <https://sourceforge.net/tracker/?func=detail&atid=560720&aid=2949906&group_id=80706>

                Category: None
                Group: None
                Status: Closed
                Resolution: Duplicate
                Priority: 5
                Private: No
                Submitted By: David Goldsmith (olydlg)

                    Assigned to: John Hunter (jdh2358)

                Summary: finance.quotes_historical_yahoo raises
                ZeroDivisionError

                    Comment By: John Hunter (jdh2358)

                Date: 2010-06-07 08:06

                Message:
                This is fixed in svn 8392. Look for it in the upcoming
                release. Please
                test from svn if you are able

                http://matplotlib.sourceforge.net/faq/installing_faq.html#install-from-svn

                Thanks for the report,
                JDH

                Hi, John, etc. I checked-out current revision (8396 I
                believe), tried to
                build using python setup.py build, got error: Unable to
                find vcvarsall.bat.
                Googled, determined that it was something I'm supposed
                to get w/ a VC
                runtime, so grabbed the most recent version (VC2010 or
                some such),
                installed, determined that I now have a vcvarsall.bat
                and added it's
                location to my path, but am still getting the error.
                  Any ideas?
                Windows 7 home prem. 64 bit. Python 2.6. Thanks!

                DG

            Oh, and the error happens after building
            'matplotlib.ft2font' extension.
            Thanks again,

        Perhaps Christoph, who builds the win32 binaries, can let you know
        what he does. It's never as simple a python setup.py install,
        though.
          You may want to look in the release/win32 directory at the
        README.txt
        and Makefile.

    You need Visual Studio 2008 (MSVC9) to compile extensions for Python
     >=2.6 on Windows. "python setup.py build" works once you have built
    the prerequisites. See
    <http://matplotlib.sourceforge.net/users/installing.html>.

Compared to what you've written here, those instructions are incomplete
and/or out-of-date.

DG

      I link against the static libraries of libpng, zlib, and freetype,
    compiled with the /MD switch. You may have to adjust your %LIB% and
    %INCLUDE% environment variables and rename the lib files in order to
    be found by the matplotlib build system.

--
Christoph