I am using PyCharm professional edition 4.0.3 and trying to go through the examples fo ReportLab user documentation. Therefore I created a Python script which should test the functionality. On my three import statements for only one PyCharm is able to find the documentation, i.e. for pagesizes it provides the documenation but for canvas and units it doesn't, see below code fragment.

import reportlab.pdfgen.canvas
from reportlab.lib.pagesizes import A4
from reportlab.lib.units import inch

The successful information on module pagesizes is shown below.

The same check on e.g. units states "No documentation found."

That is probably also the reason why no documentation is available on the methods, e.g. Canvas. When I run Inspect Code I get only spelling suggestions. I avoid using the name canvas as it was mentioned in thread "cannot find reference".

All three modules are available, see below.

# ls -l /usr/lib64/python2.7/site-packages/reportlab/pdfgen/
-rw-r--r-- 1 root root 73679 Mar 14  2013 /usr/lib64/python2.7/site-packages/reportlab/pdfgen/
# ls -l /usr/lib64/python2.7/site-packages/reportlab/lib/
-rw-r--r-- 1 root root 1264 Sep 10 22:13 /usr/lib64/python2.7/site-packages/reportlab/lib/
# ls -l /usr/lib64/python2.7/site-packages/reportlab/lib/
-rw-r--r-- 1 root root 917 Sep 10 22:13 /usr/lib64/python2.7/site-packages/reportlab/lib/

Does anybody has a suggestion for me what is going wrong or what I am doing wrong?

Please sign in to leave a comment.