[reportlab-users] Can't get reportlab to work
Robin Becker
robin at reportlab.com
Thu Jul 29 05:09:40 EDT 2010
Hi Brian,
perhaps you can say how you installed reportlab/rlextra and then maybe we'd have
a better idea what the problem is. Form the path in your message it appears as
though you have python2.6 installed, but perhaps there's more than one when you
just run testall.py it runs the python that's associated with the .py extension.
Can you confirm that you have only one python and that it's installed at
c:\devtool\Python26?
Are there files called
C:\devtool\Python26\Lib\site-packages\rlextra\test\test_layout.py
C:\devtool\Python26\Lib\site-packages\rlextra\test\__init__.py
C:\devtool\Python26\Lib\site-packages\reportlab\__init__.py
What happens when you try executing
C:\devtool\Python26\python.exe -c"import sys;print sys.path"
--
Robin Becker
On 29/07/2010 01:33, Brian Kessler wrote:
> Dear All,
>
> I am currently attempting to work through a tutorial on Django which brought
> ReportLab to my attention.
>
> Unfortunately, I am having a problem getting it to work.
>
> If I go to C:\devtool\Python26\Lib\site-packages\rlextra and try:
>
> testall.py
>
> I get:
>
> Traceback (most recent call last):
> File "C:\devtool\Python26\Lib\site-packages\rlextra\testall.py", line 136,
> in<module>
> unittest.TextTestRunner().run(makeSuite())
> File "C:\devtool\Python26\Lib\site-packages\rlextra\testall.py", line 68,
> in makeSuite
> import rlextra.test.test_layout
> ImportError: No module named rlextra.test.test_layout
>
> ... And (more critically) when I am in manage.py shell, after:
>
>>>> import reportlab
>
> I get:
>
> Traceback (most recent call last):
> File "<console>", line 1, in<module>
> ImportError: No module named reportlab
>
>
> My stack includes:
>
> Windows XP SP3
> Python 2.6.5
> Django (svn revision 13448)
> PIL-1.1.7
> Pmw-1.3.2
> Psycopg2-2.0.14
> Pywin32-214
> Reportlab-2.4
> Rlextra-2.4
> Apache 2.2
> Mod_wsgi-3.3
>
>
> Any idea what I am doing wrong or how to fix it?
>
>
>
>
> Best regards,
>
> -Brian.
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
More information about the reportlab-users
mailing list