johnf wrote:
> On Sunday 16 November 2008 08:06:12 am Bob Sysero llc Dev wrote:
>   
>>    When I started the ClassDesigner on Ubuntu 8.04 in the terminal
>> window displayed the following:
>>
>> ** (python:7257): WARNING **: Can't create printer "PDF" because the id
>> "PDF" is already used
>>
>> (python:7257): GnomePrintCupsPlugin-WARNING **: The CUPS printer PDF
>> could not be created
>>
>>
>> (python:7257): GnomePrintCupsPlugin-WARNING **: The data for the CUPS
>> printer PDF could not be loaded.
>>
>>    In my Ubuntu 8.04 update I found that in my Print Manager had
>> included PDF option to print to printers or to a PDF.
>>
>>    For the ClassDesigner the PDF has no impact that I can tell.  But for
>> dabo ReportDesign could this cause a problem?
>>
>> Bob
>>     
>
> Please try the following from a terminal
>
> python 
> import wx
>
> Do you still get the error.  If you do then it's not Dabo.  If you do get the 
> error try the following.
>
> python 
> import os
> viewers = ("gpdf", "kpdf", "evince", "acroread", "xpdf", "firefox", 
>                                       "mozilla-firefox")
>
> viewer = None
> for v in viewers:
> r = os.system("which %s " % v)
>
> The above will tell us if you have a pdf viewer.
>
> Then
I ran the the test and the results are:
[EMAIL PROTECTED]:~$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:31:22)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import wx
 >>> import os
 >>> viewers = ("gpdf","kpdf","evince","acroread", "xpdf", "firefox", 
"mozilla-firefox")
 >>> viewwer - none
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'viewwer' is not defined
 >>> viewer = None
 >>> for v in viewers:
... r = os.system("which %s " % v)
File "<stdin>", line 2
r = os.system("which %s " % v)
^
IndentationError: expected an indented block

I don't understand the IndentationError I will try to enter Tab
But my next question is after I enter r = os.system( ....
what key do I press to run the block from bash?



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to