[reportlab-users] Platypus Gives NameError on Import

Shayan Raghavjee shayanr at sjsoft.com
Thu Jun 15 03:51:15 EDT 2006


Nicholas Urie wrote:
> Robin Becker wrote:
>   
>> That's very strange. I wonder if it's because you have installed
>> reportlab in two different places ie
>> c:\Documents and Settings\Aardvark\My Documents\reportlab\
>>
>> vs
>>
>> C:\Python24\reportlab\
>>     
>
> No, it's just installed in C:\Python24\reportlab\. The reportlab folder
> in my documents just contains the examples I was trying to run. I agree
> on the really strange part.
> _______________________________________________
> reportlab-users mailing list
> reportlab-users at reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
>
>   
It might be the python path, I used to have problem with code located in 
the Python directory and not in the site-packages directory because the 
python main dir wasn't in the python path.

It could work from the python prompt because the current path would be 
c:\python24 and the module is right there, but if you run it from the 
command line, the current path would be c:\Documents and 
Settings\Aardvark\My Documents\reportlab\ and the module obviously isn't.


Hopefully it's that simple.



More information about the reportlab-users mailing list