Re: path error

Andy Robinson <[email protected]>
Newsgroups gmane.comp.python.reportlab.user
Message-ID <CABjtApvuwxDfXU2fp1eP9jHdoN-OVQB=g9H74BuPQtuo3hNfyg@mail.gmail.com>
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 <[email protected]> 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" <[email protected]> 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 <[email protected]> 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 <[email protected]>:
>> >>
>> >> 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
>> >> [email protected]
>> >> http://two.pairlist.net/mailman/listinfo/reportlab-users
>> >
>> >
>> >
>> >
>> > --
>> > jose m allegue
>> >
>> > [email protected]
>> >
>> > _______________________________________________
>> > reportlab-users mailing list
>> > [email protected]
>> > 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
>> [email protected]
>> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
> _______________________________________________
> reportlab-users mailing list
> [email protected]
> 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
[email protected]
http://two.pairlist.net/mailman/listinfo/reportlab-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.