On Tue, Jul 13, 2010 at 8:09 AM, AUGARDE C.E.
<cha...@du...> wrote:
> I am trying to use pysparse on a Windows (xp) python installation. When I
> try to test, by running testSuperLU as suggested at
> http://pysparse.sourceforge.net/introduction.html#testing-pysparse
> I encounter problems since python module resource is for Unix. Does anyone
> have any suggestions?
>
> I started with python 2.7 and have since tried going back to python 2.5 as
> suggested in a reply to a post on another forum.
You are right that the 'resource' module is Unix specific and isn't
available on Windows. Switching Python version would not resolve the
issue.
I tried to correct the situation by adding a new "sptime" module to
Pysparse. The new module uses 'resource' if available, or time.clock()
if not. Could you grab the new branch and give it a try?
svn co https://pysparse.svn.sourceforge.net/svnroot/pysparse/branches/new-setup-py
pysparse
--
Dominique
|