On 2/12/2014 4:18 PM, Martin Zibricky wrote:
>
> In PyInstaller/hooks/hook-reportlab.pdfbase._fontdata.py:
>
> > +    'reportlab.pdfbase._fontdata_enc_winansi',
> > +    'reportlab.pdfbase._fontdata_enc_zapfdingbats',
> > +    'reportlab.pdfbase._fontdata_widths_courier',
> > +    'reportlab.pdfbase._fontdata_widths_courierbold',
> > +    'reportlab.pdfbase._fontdata_widths_courierboldoblique',
> > +    'reportlab.pdfbase._fontdata_widths_courieroblique',
> > +    'reportlab.pdfbase._fontdata_widths_helvetica',
> > +    'reportlab.pdfbase._fontdata_widths_helveticabold',
> > +    'reportlab.pdfbase._fontdata_widths_helveticaboldoblique',
> > +    'reportlab.pdfbase._fontdata_widths_helveticaoblique',
> > +    'reportlab.pdfbase._fontdata_widths_symbol',
> > +    'reportlab.pdfbase._fontdata_widths_timesbold',
> > +    'reportlab.pdfbase._fontdata_widths_timesbolditalic',
> > +    'reportlab.pdfbase._fontdata_widths_timesitalic',
> > +    'reportlab.pdfbase._fontdata_widths_timesroman',
> > +    'reportlab.pdfbase._fontdata_widths_zapfdingbats',
>
> To get just what you need you could do:
>
> |from hookutils import collect_submodules
> hiddenimports = []
>
> for x in collect_submodules('reportlab.pdfbase'):
>      if x.startswith('reportlab.pdfbase._fontdata_'):
>          hiddenimports.append(x)
> |
>
> Could you please also add comment to the code what OS and that you tested it 
> with Reportlab 2.7 and 3.0a1?
>
Attempting to troubleshoot why it's not working with RL 2.7. Pyinstaller is 
throwing this exception:

c:\etc\pyinstaller\reportlab\hook-reportlab.pdfbase._fontdata.py:9: 
RuntimeWarning: Parent module 'PyInstaller.hooks.hook-reportlab.pdfbase' not 
found while handling absolute import
   from hookutils import collect_submodules

I don't quite understand what that is trying to tell me. Any help?

Thanks,
Michael