[reportlab-users] Cannot execute runAll.py
Amit
amit.uttam at gmail.com
Wed Jun 22 14:43:32 EDT 2005
Thanks for the quick reply.
You are correct executing python `pwd`/runAll.py works. Although now I
have a different problem, reagarding renderPM. I get the error "Failed
to import renderPM." I have looked in the reportlab website and cannot
seem to find reference on how to install renderPM.
Thanks in advance,
Amit
On 6/22/05, Robin Becker <robin at reportlab.com> wrote:
> Amit wrote:
> > Hi,
> >
>
> >
> > Here is the output after executing sudo python runAll.py:
> >
> > bash$ sudo python runAll.py
> > Traceback (most recent call last):
> > File "runAll.py", line 65, in ?
> > main()
> > File "runAll.py", line 55, in main
> > testSuite = makeSuite(folder,nonImportable=NI,pattern=pattern+(not
> > haveSRC and 'c' or ''))
> > File "runAll.py", line 17, in makeSuite
> > for filename in GlobDirectoryWalker(folder, pattern):
> > File "/sw/lib/python2.4/reportlab/test/utils.py", line 98, in __init__
> > raise ValueError('"%s" is not a directory' % directory)
> > ValueError: "" is not a directory
> > bash$
> >
> > Any help would be greatly appreciated.
> Amit, I think this is a bug in the startup code of runAll.py; we try to locate
> the folder containing the testfiles. It seems to be coming out as the empty string.
>
> A way round this is to ensure that runAll.py has a folder. Try executing
>
> python `pwd`/runAll.py
>
> If that works it will confirm the problem. Can you let me know what version of
> python & reportlab you're using. I have tried to fix up the runAll script
> before, but it seems I have failed to locate the test folder properly.
> --
> Robin Becker
>
More information about the reportlab-users
mailing list