Date demos from examples fail to run

After downloading and installing these two packages all

    > but date_demo_rrule.py completed properly. The error in
    > this case was an unknown name "rand". A check of the
    > Python Library reference stated it was obsolete. I
    > replaced it with random.randrange but got another error,
    > an assertion error apparently on the y value. Being
    > somewhat new to Python and even newer to matplotlib I
    > gave up on that demo.

    > Perhaps someone else can test date_demo_rrule.py and see
    > what happens. It is always a good thing when demos in
    > fact run!

True! But all of these demos do run for me. I suggest you flush your
existing matplotlib by removing site-packages/matplotlib and your
"build" directory and reinstall from the official source at
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474&release_id=281218.
Please follow the instructions at
http://matplotlib.sourceforge.net/installing.html, eg make sure you
have numeric or numarray installed when you compile matplotlib.

Let us know if you have more troubles, and please include a full
traceback from one of the date demos and run it with

python date_demo1.py --verbose-helpful

and report the output.

    > I am also testing under MS Windows and the dateutils and
    > pytz files came with that install but none of the example
    > files came. Not sure why they are not included in the
    > *.exe installer.

It's a distutils thing. Suggestions here welcome.

JDH

    > After downloading and installing these two packages all
    > but date_demo_rrule.py completed properly. The error in
    > this case was an unknown name "rand". A check of the
    > Python Library reference stated it was obsolete. I
    > replaced it with random.randrange but got another error,
    > an assertion error apparently on the y value. Being
    > somewhat new to Python and even newer to matplotlib I
    > gave up on that demo.

    > Perhaps someone else can test date_demo_rrule.py and see
    > what happens. It is always a good thing when demos in
    > fact run!

True! But all of these demos do run for me. I suggest you flush your
existing matplotlib by removing site-packages/matplotlib and your
"build" directory and reinstall from the official source at
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=82474&release_id=281218.
Please follow the instructions at
http://matplotlib.sourceforge.net/installing.html, eg make sure you
have numeric or numarray installed when you compile matplotlib.

After a bit of pondering and one false start (one compile failed because
it could not find some item related to GTK) I got matplotlib compiled for
the Tkinter backend only. It is the only one I'm interested in right now
anyway.

An update to the .matplotlibrc file solved the problem of seeking the GTKAgg
backend which was not there and we were off to the races. All of the date
examples completed without a hitch. A quite gratifying result! Apparently
the Debian package I downloaded had some problems.

One of the biggest challenges was translating short forms of software names
into the package names used on the Debian package site-just one of those
realities of the great world of open-source software. Not everyone uses
the same descriptive name for the same entity.

···

On Thursday 09 December 2004 03:22 pm, John Hunter wrote:

Let us know if you have more troubles, and please include a full
traceback from one of the date demos and run it with

> python date_demo1.py --verbose-helpful

and report the output.

    > I am also testing under MS Windows and the dateutils and
    > pytz files came with that install but none of the example
    > files came. Not sure why they are not included in the
    > *.exe installer.

It's a distutils thing. Suggestions here welcome.

JDH

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options