From: Delbert D. F. <iq...@so...> - 2004-12-09 02:34:39
|
I am evaluating matplotlib for its date handling for plotting time series produced by a unsteady-flow simulation package. I downloaded the Debian package from http://anakonda.altervista.org/debian because I could not get apt-get to get the package after modifying my sources.list. However, dpkg did not complain about any missing packages and several test cases worked well. However, none of the following examples would run date_demo1.py error---cannot import date2num, num2date date_demo2.py error--cannot import name MONDAY date_demo_convert.py error--cannot import DayLocator, HourLocator date_demo_rrule.py error--cannot import name YEARLY After some time checking docs and looking at the various *.py files involved, I noticed that none of the dateutl files were on my system and neither were the pytz files. The documentation on the web site clearly states that the dateutil files are included in the package but somehow they got missed in the 0.64-1 release downloaded from the site given above. 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! 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. I am using Python 2.3.4 matplotlib 0.64-1 Libranet 2.8.1 Kernel 2.6.9 Delbert Franz |
From: Philip A. <pa...@eo...> - 2004-12-09 03:47:32
|
Delbert D. Franz writes: > I am evaluating matplotlib for its date handling for plotting time > series produced by a unsteady-flow simulation package. > I downloaded the Debian package from http://anakonda.altervista.org/debian > because I could not get apt-get to get the package after modifying > my sources.list. This problem went away for me when I upgraded to date-util to version 0.5 https://moin.conectiva.com.br/DateUtil#head-f5cbdf6bfb51439be085b5c6b7460a7c91eabc3c -- Phil |
From: John H. <jdh...@ac...> - 2004-12-09 23:24:59
|
>>>>> "Delbert" == Delbert D Franz <iq...@so...> writes: Delbert> After downloading and installing these two packages all Delbert> but date_demo_rrule.py completed properly. The error in Delbert> this case was an unknown name "rand". A check of the Delbert> Python Library reference stated it was obsolete. I Delbert> replaced it with random.randrange but got another error, Delbert> an assertion error apparently on the y value. Being Delbert> somewhat new to Python and even newer to matplotlib I Delbert> gave up on that demo. Delbert> Perhaps someone else can test date_demo_rrule.py and see Delbert> what happens. It is always a good thing when demos in Delbert> 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. Delbert> I am also testing under MS Windows and the dateutils and Delbert> pytz files came with that install but none of the example Delbert> files came. Not sure why they are not included in the Delbert> *.exe installer. It's a distutils thing. Suggestions here welcome. JDH |
From: Delbert D. F. <iq...@so...> - 2004-12-13 17:48:55
|
On Thursday 09 December 2004 03:22 pm, John Hunter wrote: > >>>>> "Delbert" == Delbert D Franz <iq...@so...> writes: > > Delbert> After downloading and installing these two packages all > Delbert> but date_demo_rrule.py completed properly. The error in > Delbert> this case was an unknown name "rand". A check of the > Delbert> Python Library reference stated it was obsolete. I > Delbert> replaced it with random.randrange but got another error, > Delbert> an assertion error apparently on the y value. Being > Delbert> somewhat new to Python and even newer to matplotlib I > Delbert> gave up on that demo. > > Delbert> Perhaps someone else can test date_demo_rrule.py and see > Delbert> what happens. It is always a good thing when demos in > Delbert> 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. > 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. > > > Delbert> I am also testing under MS Windows and the dateutils and > Delbert> pytz files came with that install but none of the example > Delbert> files came. Not sure why they are not included in the > Delbert> *.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 > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > |