Pyt

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.

Imports
import reportlab.pdfgen.canvas
from reportlab.lib.pagesizes import A4
from reportlab.lib.units import inch
prettyPrint();

The successful information on module pagesizes is shown below.
PyCharm_missing_reference_20141228_02.png


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


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".
PyCharm_missing_reference_20141228_01.png


All three modules are available, see below.

Module_listing
# ls -l /usr/lib64/python2.7/site-packages/reportlab/pdfgen/canvas.py
-rw-r--r-- 1 root root 73679 Mar 14  2013 /usr/lib64/python2.7/site-packages/reportlab/pdfgen/canvas.py
# ls -l /usr/lib64/python2.7/site-packages/reportlab/lib/pagesizes.py
-rw-r--r-- 1 root root 1264 Sep 10 22:13 /usr/lib64/python2.7/site-packages/reportlab/lib/pagesizes.py
# ls -l /usr/lib64/python2.7/site-packages/reportlab/lib/units.py
-rw-r--r-- 1 root root 917 Sep 10 22:13 /usr/lib64/python2.7/site-packages/reportlab/lib/units.py
prettyPrint();

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

Please sign in to leave a comment.