[reportlab-users] path error
Andy Robinson
andy at reportlab.com
Mon Aug 11 05:21:33 EDT 2014
This is really a basic Python FAQ and not a reportlab question.
What Python are you using? How did you install reportlab? What
command exactly did you type to run the script?
If you CD into the directory where the script is in a DOS prompt, and
type "python", do you get Python 3.4 or an older one?
Can't help more for a while, going into meetings...
- Andy
On 11 August 2014 09:55, Jose M.Allegue <jmallegue at gmail.com> wrote:
> Thanks.
> Well I see is a problem with 'my path'. Do you know how to fix it ?
>
> El 11/08/2014 10:49, "Andy Robinson" <andy at reportlab.com> escribió:
>
>> OH, so the initial import of reportlab is failing? If your first 7
>> lines are just import statements and you are not doing anything
>> strange, this suggests that your Python path is not set correctly.
>> It's unlikely to be anything to do with our library.
>>
>> - Andy
>>
>>
>>
>> On 11 August 2014 09:05, Jose M.Allegue <jmallegue at gmail.com> wrote:
>> > Sure. Thanks
>> >
>> >>>> ================================ RESTART
>> >>>> ================================
>> >>>>
>> > Traceback (most recent call last):
>> > File "<frozen importlib._bootstrap>", line 2218, in
>> > _find_and_load_unlocked
>> > AttributeError: 'module' object has no attribute '__path__'
>> >
>> > During handling of the above exception, another exception occurred:
>> >
>> > Traceback (most recent call last):
>> > File
>> > "C:\Python34\Scripts_jmab\ASA\ASA2AW139\SECTOR_SEARCH_reportlab.py",
>> > line 7, in <module>
>> > from reportlab.pdfgen import canvas
>> > File "C:\Python34\reportlab.py", line 3, in <module>
>> > from reportlab.pdfgen import canvas
>> > ImportError: No module named 'reportlab.pdfgen'; 'reportlab' is not a
>> > package
>> >>>>
>> >
>> >
>> > 2014-08-11 10:00 GMT+02:00 Andy Robinson <andy at reportlab.com>:
>> >>
>> >> Can please you send us a piece of code which reproduces the error?
>> >>
>> >> Thanks,
>> >>
>> >>
>> >> --
>> >> Andy Robinson
>> >> Managing Director
>> >> ReportLab Europe Ltd.
>> >> Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
>> >> Tel +44-20-8405-6420
>> >> _______________________________________________
>> >> reportlab-users mailing list
>> >> reportlab-users at lists2.reportlab.com
>> >> http://two.pairlist.net/mailman/listinfo/reportlab-users
>> >
>> >
>> >
>> >
>> > --
>> > jose m allegue
>> >
>> > jmallegue at gmail.com
>> >
>> > _______________________________________________
>> > reportlab-users mailing list
>> > reportlab-users at lists2.reportlab.com
>> > http://two.pairlist.net/mailman/listinfo/reportlab-users
>> >
>>
>>
>>
>> --
>> Andy Robinson
>> Managing Director
>> ReportLab Europe Ltd.
>> Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
>> Tel +44-20-8405-6420
>> _______________________________________________
>> reportlab-users mailing list
>> reportlab-users at lists2.reportlab.com
>> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at lists2.reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
--
Andy Robinson
Managing Director
ReportLab Europe Ltd.
Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
Tel +44-20-8405-6420
More information about the reportlab-users
mailing list