| Autor | 
    Nachricht | 
   
  
    | 
      
     | 
    
      
        
					
            Titel: Python program help please 
             Verfasst am: 30.06.2006, 17:38 Uhr
           | 
				 
       
     | 
   
  
    
      
        
          
             
            
  
            Anmeldung: 19. Mai 2006 
            Beiträge: 23 
             
            
            
           | 
         
       
     | 
    
      
        
          Dear All,
 
 
I just recently downloaded an interesting looking program from sourceforge called PhotoDVDSlideshow which is a python program. When I run the program as instructed which is to use : python gui.py , I get an error message-
 
 
xmlControl.py", line 15, in ?
 
    from xml.dom import implementation
 
ImportError: cannot import name implementation
 
 
and of course the program does not run. I have researched this for a few days and tried their forum but no help so far. I am not familiar with python or any programming language. Anyone here know what I can do to run this program?
 
 
Any suggestions are appreciated.
 
 
Thank you very much,
 
 
Marcia | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
   
  
    | 
      
      
     | 
   
  
      | 
   
  
    | 
      
     | 
    
      
        
					
            Titel:  
             Verfasst am: 30.06.2006, 20:20 Uhr
           | 
				 
       
     | 
   
  
    
      
        
          
             
            
  
            Anmeldung: 19. Mai 2006 
            Beiträge: 23 
             
            
            
           | 
         
       
     | 
    
      
        
          Dear All,
 
 
I believe I resolved the xml problem by installing more xml packages and those with references to python as well. That got rid of the xml error, however now I have a new error.
 
 
python gui.py
 
Traceback (most recent call last):
 
  File "gui.py", line 2504, in ?
 
    w = gui()
 
  File "gui.py", line 19, in __init__
 
    self.setSizePolicy(QSizePolicy(0,0,0,0,self.sizePolicy().hasHeightForWidth()))
 
TypeError: argument 1 of QSizePolicy() has an invalid type
 
 
I researched this and got a fix which I am not sure how to do. The fix is:
 
 
PyQt has been built with SIP v4.2 (or later) which triggers 
 
a bug in pyuic 3.13 (and earlier). You need to upgrade your PyQt - then 
 
re-run pyuic on your .ui files
 
 
I then upgraded as suggested however I do not know the first thing abour re-running pyuic on a .ui file. I have been researching this now, however, the how-to's are a bit over my head. Is there a simple way to do this? Would using QT designer help?
 
 
Any suggestions are welcome.
 
 
Thank you very much.
 
 
Marcia | 
         
        
          | 
          
            
          
            
            
           | 
         
         
	        |     | 
	       
       
     | 
   
  
    | 
      
      
     | 
   
  
      | 
   
  
  
    | 
      
     | 
   
 
					 | 
				 
			 
		 |