Re: Weka startup -- Console shows Python-related Exceptions

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Weka startup -- Console shows Python-related Exceptions

Chaitanya Birudavolu
Hi,

I didn't see a response to this earlier query.

Did it go into some mail-server spam-bin or did I miss something?

Please let me know if any additional diagnostic info is needed.

Thanks and Cheers,
Chaitanya Birudavolu

--------------------------------------------
On Tue, 11/20/18, Chaitanya Birudavolu <[hidden email]> wrote:

 Subject: Weka startup -- Console shows Python-related Exceptions
 To: [hidden email]
 Date: Tuesday, November 20, 2018, 2:20 PM
 
 Hi,
 
 I'm using Weka 3.8.1 on Windows 10 x64,
 with Java 1.8 in my environment.
 I'm able to use most of Weka's
 functionality (but not yet ventured into Python usage in
 Weka).
 Python works fine outside of Weka, for
 me.
 
 When I start Python, I get the below
 exceptions on the Weka console.
 
 Could you please let me know what it
 means and what corrective action I should take?
 
 Thanks in advance.
 -Chaitanya
 
 The console output is as below:
 
 3D [dev] 1.6.0-pre12-daily-experimental
 daily
 
 weka.core.WekaException: Cannot run
 program "python": CreateProcess error=2, The system cannot
 find the file specified
        
 weka.python.PythonSession.initSession(PythonSession.java:595)
        
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
        
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
        
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
        
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
        
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
        
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
        
 javax.swing.AbstractButton.fireActionPerformed(Unknown
 Source)
        
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
 Source)
        
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
 Source)
        
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
 Source)
        
 java.awt.Component.processMouseEvent(Unknown Source)
        
 javax.swing.JComponent.processMouseEvent(Unknown Source)
        
 java.awt.Component.processEvent(Unknown Source)
        
 java.awt.Container.processEvent(Unknown Source)
        
 java.awt.Component.dispatchEventImpl(Unknown Source)
        
 java.awt.Container.dispatchEventImpl(Unknown Source)
        
 java.awt.Component.dispatchEvent(Unknown Source)
        
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
 Source)
        
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
 Source)
        
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
 Source)
        
 java.awt.Container.dispatchEventImpl(Unknown Source)
        
 java.awt.Window.dispatchEventImpl(Unknown Source)
        
 java.awt.Component.dispatchEvent(Unknown Source)
        
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        
 java.awt.EventQueue.access$500(Unknown Source)
        
 java.awt.EventQueue$3.run(Unknown Source)
        
 java.awt.EventQueue$3.run(Unknown Source)
        
 java.security.AccessController.doPrivileged(Native Method)
        
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
        
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
        
 java.awt.EventQueue$4.run(Unknown Source)
        
 java.awt.EventQueue$4.run(Unknown Source)
        
 java.security.AccessController.doPrivileged(Native Method)
        
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
        
 java.awt.EventQueue.dispatchEvent(Unknown Source)
        
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
 Source)
        
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
 Source)
        
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
 Source)
        
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        
 java.awt.EventDispatchThread.run(Unknown Source)
 
         at
 weka.python.PythonSession.initSession(PythonSession.java:595)
         at
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
         at
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
         at
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
         at
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
         at
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
         at
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
         at
 javax.swing.AbstractButton.fireActionPerformed(Unknown
 Source)
         at
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
 Source)
         at
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
 Source)
         at
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
 Source)
         at
 java.awt.Component.processMouseEvent(Unknown Source)
         at
 javax.swing.JComponent.processMouseEvent(Unknown Source)
         at
 java.awt.Component.processEvent(Unknown Source)
         at
 java.awt.Container.processEvent(Unknown Source)
         at
 java.awt.Component.dispatchEventImpl(Unknown Source)
         at
 java.awt.Container.dispatchEventImpl(Unknown Source)
         at
 java.awt.Component.dispatchEvent(Unknown Source)
         at
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
 Source)
         at
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
 Source)
         at
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
 Source)
         at
 java.awt.Container.dispatchEventImpl(Unknown Source)
         at
 java.awt.Window.dispatchEventImpl(Unknown Source)
         at
 java.awt.Component.dispatchEvent(Unknown Source)
         at
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
         at
 java.awt.EventQueue.access$500(Unknown Source)
         at
 java.awt.EventQueue$3.run(Unknown Source)
         at
 java.awt.EventQueue$3.run(Unknown Source)
         at
 java.security.AccessController.doPrivileged(Native Method)
         at
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
         at
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
         at
 java.awt.EventQueue$4.run(Unknown Source)
         at
 java.awt.EventQueue$4.run(Unknown Source)
         at
 java.security.AccessController.doPrivileged(Native Method)
         at
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
 Source)
         at
 java.awt.EventQueue.dispatchEvent(Unknown Source)
         at
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
 Source)
         at
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
 Source)
         at
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
 Source)
         at
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at
 java.awt.EventDispatchThread.run(Unknown Source)
 Caused by: java.io.IOException: Cannot
 run program "python": CreateProcess error=2, The system
 cannot find the file specified
         at
 java.lang.ProcessBuilder.start(Unknown Source)
         at
 weka.python.PythonSession.<init>(PythonSession.java:140)
         at
 weka.python.PythonSession.initSession(PythonSession.java:593)
         ... 42
 more
 Caused by: java.io.IOException:
 CreateProcess error=2, The system cannot find the file
 specified
         at
 java.lang.ProcessImpl.create(Native Method)
         at
 java.lang.ProcessImpl.<init>(Unknown Source)
         at
 java.lang.ProcessImpl.start(Unknown Source)
         ... 45
 more
 null
 
 
 
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Weka startup -- Console shows Python-related Exceptions

Mark Hall
You need to make sure that your python's bin directory is in your PATH environment variable. The Weka python integration requires several python packages to be installed as well. The easiest way to get started is to download and install Anaconda python, it comes with all the Weka dependencies already installed.

Cheers,
Mark.

On 29/11/18, 4:55 AM, "Chaitanya Birudavolu" <[hidden email] on behalf of [hidden email]> wrote:

    Hi,
   
    I didn't see a response to this earlier query.
   
    Did it go into some mail-server spam-bin or did I miss something?
   
    Please let me know if any additional diagnostic info is needed.
   
    Thanks and Cheers,
    Chaitanya Birudavolu
   
    --------------------------------------------
    On Tue, 11/20/18, Chaitanya Birudavolu <[hidden email]> wrote:
   
     Subject: Weka startup -- Console shows Python-related Exceptions
     To: [hidden email]
     Date: Tuesday, November 20, 2018, 2:20 PM
     
     Hi,
     
     I'm using Weka 3.8.1 on Windows 10 x64,
     with Java 1.8 in my environment.
     I'm able to use most of Weka's
     functionality (but not yet ventured into Python usage in
     Weka).
     Python works fine outside of Weka, for
     me.
     
     When I start Python, I get the below
     exceptions on the Weka console.
     
     Could you please let me know what it
     means and what corrective action I should take?
     
     Thanks in advance.
     -Chaitanya
     
     The console output is as below:
     
     3D [dev] 1.6.0-pre12-daily-experimental
     daily
     
     weka.core.WekaException: Cannot run
     program "python": CreateProcess error=2, The system cannot
     find the file specified
           
     weka.python.PythonSession.initSession(PythonSession.java:595)
           
     weka.gui.PythonPanel.<init>(PythonPanel.java:464)
           
     weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
           
     weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
           
     weka.gui.explorer.Explorer.<init>(Explorer.java:236)
           
     weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
           
     weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
           
     javax.swing.AbstractButton.fireActionPerformed(Unknown
     Source)
           
     javax.swing.AbstractButton$Handler.actionPerformed(Unknown
     Source)
           
     javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
     Source)
           
     javax.swing.DefaultButtonModel.setPressed(Unknown Source)
           
     javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
     Source)
           
     java.awt.Component.processMouseEvent(Unknown Source)
           
     javax.swing.JComponent.processMouseEvent(Unknown Source)
           
     java.awt.Component.processEvent(Unknown Source)
           
     java.awt.Container.processEvent(Unknown Source)
           
     java.awt.Component.dispatchEventImpl(Unknown Source)
           
     java.awt.Container.dispatchEventImpl(Unknown Source)
           
     java.awt.Component.dispatchEvent(Unknown Source)
           
     java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
     Source)
           
     java.awt.LightweightDispatcher.processMouseEvent(Unknown
     Source)
           
     java.awt.LightweightDispatcher.dispatchEvent(Unknown
     Source)
           
     java.awt.Container.dispatchEventImpl(Unknown Source)
           
     java.awt.Window.dispatchEventImpl(Unknown Source)
           
     java.awt.Component.dispatchEvent(Unknown Source)
           
     java.awt.EventQueue.dispatchEventImpl(Unknown Source)
           
     java.awt.EventQueue.access$500(Unknown Source)
           
     java.awt.EventQueue$3.run(Unknown Source)
           
     java.awt.EventQueue$3.run(Unknown Source)
           
     java.security.AccessController.doPrivileged(Native Method)
           
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
     Source)
           
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
     Source)
           
     java.awt.EventQueue$4.run(Unknown Source)
           
     java.awt.EventQueue$4.run(Unknown Source)
           
     java.security.AccessController.doPrivileged(Native Method)
           
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
     Source)
           
     java.awt.EventQueue.dispatchEvent(Unknown Source)
           
     java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
     Source)
           
     java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
     Source)
           
     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
     Source)
           
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
           
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
           
     java.awt.EventDispatchThread.run(Unknown Source)
     
             at
     weka.python.PythonSession.initSession(PythonSession.java:595)
             at
     weka.gui.PythonPanel.<init>(PythonPanel.java:464)
             at
     weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
             at
     weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
             at
     weka.gui.explorer.Explorer.<init>(Explorer.java:236)
             at
     weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
             at
     weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
             at
     javax.swing.AbstractButton.fireActionPerformed(Unknown
     Source)
             at
     javax.swing.AbstractButton$Handler.actionPerformed(Unknown
     Source)
             at
     javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
     Source)
             at
     javax.swing.DefaultButtonModel.setPressed(Unknown Source)
             at
     javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
     Source)
             at
     java.awt.Component.processMouseEvent(Unknown Source)
             at
     javax.swing.JComponent.processMouseEvent(Unknown Source)
             at
     java.awt.Component.processEvent(Unknown Source)
             at
     java.awt.Container.processEvent(Unknown Source)
             at
     java.awt.Component.dispatchEventImpl(Unknown Source)
             at
     java.awt.Container.dispatchEventImpl(Unknown Source)
             at
     java.awt.Component.dispatchEvent(Unknown Source)
             at
     java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
     Source)
             at
     java.awt.LightweightDispatcher.processMouseEvent(Unknown
     Source)
             at
     java.awt.LightweightDispatcher.dispatchEvent(Unknown
     Source)
             at
     java.awt.Container.dispatchEventImpl(Unknown Source)
             at
     java.awt.Window.dispatchEventImpl(Unknown Source)
             at
     java.awt.Component.dispatchEvent(Unknown Source)
             at
     java.awt.EventQueue.dispatchEventImpl(Unknown Source)
             at
     java.awt.EventQueue.access$500(Unknown Source)
             at
     java.awt.EventQueue$3.run(Unknown Source)
             at
     java.awt.EventQueue$3.run(Unknown Source)
             at
     java.security.AccessController.doPrivileged(Native Method)
             at
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
     Source)
             at
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
     Source)
             at
     java.awt.EventQueue$4.run(Unknown Source)
             at
     java.awt.EventQueue$4.run(Unknown Source)
             at
     java.security.AccessController.doPrivileged(Native Method)
             at
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
     Source)
             at
     java.awt.EventQueue.dispatchEvent(Unknown Source)
             at
     java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
     Source)
             at
     java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
     Source)
             at
     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
     Source)
             at
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
             at
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
             at
     java.awt.EventDispatchThread.run(Unknown Source)
     Caused by: java.io.IOException: Cannot
     run program "python": CreateProcess error=2, The system
     cannot find the file specified
             at
     java.lang.ProcessBuilder.start(Unknown Source)
             at
     weka.python.PythonSession.<init>(PythonSession.java:140)
             at
     weka.python.PythonSession.initSession(PythonSession.java:593)
             ... 42
     more
     Caused by: java.io.IOException:
     CreateProcess error=2, The system cannot find the file
     specified
             at
     java.lang.ProcessImpl.create(Native Method)
             at
     java.lang.ProcessImpl.<init>(Unknown Source)
             at
     java.lang.ProcessImpl.start(Unknown Source)
             ... 45
     more
     null
     
     
     
    _______________________________________________
    Wekalist mailing list
    Send posts to: [hidden email]
    To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
    List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
   


_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Weka startup -- Console shows Python-related Exceptions

Chaitanya Birudavolu
In reply to this post by Chaitanya Birudavolu
Thanks Mark.

Problem solved now (no more python exceptions on console upon starting Explorer)

I happen to have already installed Anaconda. But I noticed that my path environment variables had no information at all about anaconda or python. (It appears that though the Python got installed with Anaconda, the existence of Python doesn't get advertised in any environment variables).

Typing "where python" on the Anaconda Console gave me the location of where my python.exe was located. I added this location to my PATH, and bingo -- the exceptions upon Explorer startup went away.

Thanks and Cheers,
Chaitanya


--------------------------------------------
On Wed, 11/28/18, Mark Hall <[hidden email]> wrote:

 Subject: Re: [Wekalist] Weka startup -- Console shows Python-related Exceptions
 To: "Chaitanya Birudavolu" <[hidden email]>, "Weka machine learning workbench list." <[hidden email]>
 Date: Wednesday, November 28, 2018, 8:18 PM
 
 You need to make sure that your
 python's bin directory is in your PATH environment
 variable. The Weka python integration requires several
 python packages to be installed as well. The easiest way to
 get started is to download and install Anaconda python, it
 comes with all the Weka dependencies already installed.
 
 Cheers,
 Mark.
 
 On
 29/11/18, 4:55 AM, "Chaitanya Birudavolu" <[hidden email]
 on behalf of [hidden email]>
 wrote:
 
     Hi,
    
     I didn't see a
 response to this earlier query.
    
     Did it go into some mail-server spam-bin
 or did I miss something?
    
     Please let me know if any additional
 diagnostic info is needed.
    
     Thanks and Cheers,
    
 Chaitanya Birudavolu
    
    
 --------------------------------------------
     On Tue, 11/20/18, Chaitanya Birudavolu
 <[hidden email]>
 wrote:
    
    
 Subject: Weka startup -- Console shows Python-related
 Exceptions
      To: [hidden email]
      Date: Tuesday, November 20, 2018, 2:20
 PM
      
      Hi,
      
      I'm using
 Weka 3.8.1 on Windows 10 x64,
      with
 Java 1.8 in my environment.
      I'm
 able to use most of Weka's
    
 functionality (but not yet ventured into Python usage in
      Weka).
      Python
 works fine outside of Weka, for
    
 me.
      
      When I
 start Python, I get the below
    
 exceptions on the Weka console.
      
      Could you please let me know what it
      means and what corrective action I
 should take?
      
    
 Thanks in advance.
      -Chaitanya
      
      The console
 output is as below:
      
      3D [dev]
 1.6.0-pre12-daily-experimental
    
 daily
      
    
 weka.core.WekaException: Cannot run
    
 program "python": CreateProcess error=2, The
 system cannot
      find the file
 specified
            
    
 weka.python.PythonSession.initSession(PythonSession.java:595)
            
    
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
            
    
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
            
    
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
            
    
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
            
    
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
            
    
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
            
    
 javax.swing.AbstractButton.fireActionPerformed(Unknown
      Source)
          
  
    
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
      Source)
          
  
    
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
      Source)
          
  
    
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
            
    
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
      Source)
          
  
    
 java.awt.Component.processMouseEvent(Unknown Source)
            
    
 javax.swing.JComponent.processMouseEvent(Unknown Source)
            
    
 java.awt.Component.processEvent(Unknown Source)
            
    
 java.awt.Container.processEvent(Unknown Source)
            
    
 java.awt.Component.dispatchEventImpl(Unknown Source)
            
    
 java.awt.Container.dispatchEventImpl(Unknown Source)
            
    
 java.awt.Component.dispatchEvent(Unknown Source)
            
    
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
      Source)
          
  
    
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
      Source)
          
  
    
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
      Source)
          
  
    
 java.awt.Container.dispatchEventImpl(Unknown Source)
            
    
 java.awt.Window.dispatchEventImpl(Unknown Source)
            
    
 java.awt.Component.dispatchEvent(Unknown Source)
            
    
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
            
    
 java.awt.EventQueue.access$500(Unknown Source)
            
    
 java.awt.EventQueue$3.run(Unknown Source)
  
          
    
 java.awt.EventQueue$3.run(Unknown Source)
  
          
    
 java.security.AccessController.doPrivileged(Native
 Method)
            
    
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
      Source)
          
  
    
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
      Source)
          
  
      java.awt.EventQueue$4.run(Unknown
 Source)
            
      java.awt.EventQueue$4.run(Unknown
 Source)
            
    
 java.security.AccessController.doPrivileged(Native
 Method)
            
    
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
      Source)
          
  
    
 java.awt.EventQueue.dispatchEvent(Unknown Source)
            
    
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
      Source)
          
  
    
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
      Source)
          
  
    
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
      Source)
          
  
    
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            
    
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
            
    
 java.awt.EventDispatchThread.run(Unknown Source)
      
            
 at
    
 weka.python.PythonSession.initSession(PythonSession.java:595)
              at
    
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
              at
    
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
              at
    
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
              at
    
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
              at
    
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
              at
    
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
              at
    
 javax.swing.AbstractButton.fireActionPerformed(Unknown
      Source)
          
    at
    
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
      Source)
          
    at
    
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
      Source)
          
    at
    
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
              at
    
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
      Source)
          
    at
    
 java.awt.Component.processMouseEvent(Unknown Source)
              at
    
 javax.swing.JComponent.processMouseEvent(Unknown Source)
              at
    
 java.awt.Component.processEvent(Unknown Source)
              at
    
 java.awt.Container.processEvent(Unknown Source)
              at
    
 java.awt.Component.dispatchEventImpl(Unknown Source)
              at
    
 java.awt.Container.dispatchEventImpl(Unknown Source)
              at
    
 java.awt.Component.dispatchEvent(Unknown Source)
              at
    
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
      Source)
          
    at
    
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
      Source)
          
    at
    
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
      Source)
          
    at
    
 java.awt.Container.dispatchEventImpl(Unknown Source)
              at
    
 java.awt.Window.dispatchEventImpl(Unknown Source)
              at
    
 java.awt.Component.dispatchEvent(Unknown Source)
              at
    
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
              at
    
 java.awt.EventQueue.access$500(Unknown Source)
              at
    
 java.awt.EventQueue$3.run(Unknown Source)
  
            at
    
 java.awt.EventQueue$3.run(Unknown Source)
  
            at
    
 java.security.AccessController.doPrivileged(Native
 Method)
              at
    
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
      Source)
          
    at
    
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
      Source)
          
    at
    
 java.awt.EventQueue$4.run(Unknown Source)
  
            at
    
 java.awt.EventQueue$4.run(Unknown Source)
  
            at
    
 java.security.AccessController.doPrivileged(Native
 Method)
              at
    
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
      Source)
          
    at
    
 java.awt.EventQueue.dispatchEvent(Unknown Source)
              at
    
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
      Source)
          
    at
    
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
      Source)
          
    at
    
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
      Source)
          
    at
    
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at
    
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              at
    
 java.awt.EventDispatchThread.run(Unknown Source)
      Caused by: java.io.IOException:
 Cannot
      run program
 "python": CreateProcess error=2, The system
      cannot find the file specified
              at
    
 java.lang.ProcessBuilder.start(Unknown Source)
              at
    
 weka.python.PythonSession.<init>(PythonSession.java:140)
              at
    
 weka.python.PythonSession.initSession(PythonSession.java:593)
              ... 42
    
  more
      Caused by:
 java.io.IOException:
      CreateProcess
 error=2, The system cannot find the file
  
    specified
              at
      java.lang.ProcessImpl.create(Native
 Method)
              at
    
 java.lang.ProcessImpl.<init>(Unknown Source)
              at
    
 java.lang.ProcessImpl.start(Unknown Source)
              ... 45
    
  more
      null
  
    
      
      
    
 _______________________________________________
     Wekalist mailing list
  
   Send posts to: [hidden email]
     To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
     List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
    
 
 
 
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Weka startup -- Console shows Python-related Exceptions

Chaitanya Birudavolu
In reply to this post by Chaitanya Birudavolu
Just so it might benefit someone, may I add a little, about my next hurdle and its solution:--

After adding Python location to the my Windows PATH variable, the python-related exceptions upon starting Weka Explorer stopped, and the CPythonConsole panel appeared in my Weka Explorer (it wasn't appearing earlier). However, in the CPythonConsole, there was some error message inside one of the boxes, that the "Python server could not be started" or words to that effect.

To solve this, I figured that since everything in this world needs to have a "_HOME" variable (like JAVA_HOME, CATALINA_HOME), probably Weka was looking for a PYTHON_HOME variable. So I created one (Anaconda installation did not create that one either). That error went away too.

Regards,
Chaitanya

--------------------------------------------
On Sat, 12/1/18, Chaitanya Birudavolu <[hidden email]> wrote:

 Subject: Re: [Wekalist] Weka startup -- Console shows Python-related Exceptions
 To: "Weka machine learning workbench list." <[hidden email]>, "Mark Hall" <[hidden email]>
 Date: Saturday, December 1, 2018, 2:58 AM
 
 Thanks Mark.
 
 Problem solved now (no more python
 exceptions on console upon starting Explorer)
 
 I happen to have already installed
 Anaconda. But I noticed that my path environment variables
 had no information at all about anaconda or python. (It
 appears that though the Python got installed with Anaconda,
 the existence of Python doesn't get advertised in any
 environment variables).
 
 Typing "where python" on the Anaconda
 Console gave me the location of where my python.exe was
 located. I added this location to my PATH, and bingo -- the
 exceptions upon Explorer startup went away.
 
 Thanks and Cheers,
 Chaitanya
 
 
 --------------------------------------------
 On Wed, 11/28/18, Mark Hall <[hidden email]>
 wrote:
 
  Subject: Re: [Wekalist] Weka startup
 -- Console shows Python-related Exceptions
  To: "Chaitanya Birudavolu" <[hidden email]>,
 "Weka machine learning workbench list." <[hidden email]>
  Date: Wednesday, November 28, 2018,
 8:18 PM
 
  You need to make sure that your
  python's bin directory is in your PATH
 environment
  variable. The Weka python integration
 requires several
  python packages to be installed as
 well. The easiest way to
  get started is to download and install
 Anaconda python, it
  comes with all the Weka dependencies
 already installed.
 
  Cheers,
  Mark.
 
  On
  29/11/18, 4:55 AM, "Chaitanya
 Birudavolu" <[hidden email]
  on behalf of [hidden email]>
  wrote:
 
      Hi,
     
      I didn't see a
  response to this earlier query.
     
      Did it go into some mail-server
 spam-bin
  or did I miss something?
     
      Please let me know if any
 additional
  diagnostic info is needed.
     
      Thanks and Cheers,
     
  Chaitanya Birudavolu
     
     
 
 --------------------------------------------
      On Tue, 11/20/18, Chaitanya
 Birudavolu
  <[hidden email]>
  wrote:
     
     
  Subject: Weka startup -- Console shows
 Python-related
  Exceptions
       To: [hidden email]
       Date: Tuesday, November
 20, 2018, 2:20
  PM
      
       Hi,
      
       I'm using
  Weka 3.8.1 on Windows 10 x64,
       with
  Java 1.8 in my environment.
       I'm
  able to use most of Weka's
     
  functionality (but not yet ventured
 into Python usage in
       Weka).
       Python
  works fine outside of Weka, for
     
  me.
      
       When I
  start Python, I get the below
     
  exceptions on the Weka console.
      
       Could you please let me
 know what it
       means and what corrective
 action I
  should take?
      
     
  Thanks in advance.
       -Chaitanya
      
       The console
  output is as below:
      
       3D [dev]
  1.6.0-pre12-daily-experimental
     
  daily
      
     
  weka.core.WekaException: Cannot run
     
  program "python": CreateProcess
 error=2, The
  system cannot
       find the file
  specified
             
     
 
 weka.python.PythonSession.initSession(PythonSession.java:595)
             
     
 
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
             
     
 
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
             
     
 
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
             
     
 
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
             
     
 
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
             
     
 
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
             
     
 
 javax.swing.AbstractButton.fireActionPerformed(Unknown
       Source)
           
   
     
 
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
       Source)
           
   
     
 
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
       Source)
           
   
     
 
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
             
     
 
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
       Source)
           
   
     
 
 java.awt.Component.processMouseEvent(Unknown Source)
             
     
 
 javax.swing.JComponent.processMouseEvent(Unknown Source)
             
     
 
 java.awt.Component.processEvent(Unknown Source)
             
     
 
 java.awt.Container.processEvent(Unknown Source)
             
     
 
 java.awt.Component.dispatchEventImpl(Unknown Source)
             
     
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
             
     
 
 java.awt.Component.dispatchEvent(Unknown Source)
             
     
 
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
       Source)
           
   
     
 
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
       Source)
           
   
     
 
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
       Source)
           
   
     
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
             
     
 
 java.awt.Window.dispatchEventImpl(Unknown Source)
             
     
 
 java.awt.Component.dispatchEvent(Unknown Source)
             
     
 
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
             
     
  java.awt.EventQueue.access$500(Unknown
 Source)
             
     
  java.awt.EventQueue$3.run(Unknown
 Source)
   
           
     
  java.awt.EventQueue$3.run(Unknown
 Source)
   
           
     
 
 java.security.AccessController.doPrivileged(Native
  Method)
             
     
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
       Source)
           
   
     
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
       Source)
           
   
      
 java.awt.EventQueue$4.run(Unknown
  Source)
             
      
 java.awt.EventQueue$4.run(Unknown
  Source)
             
     
 
 java.security.AccessController.doPrivileged(Native
  Method)
             
     
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
       Source)
           
   
     
 
 java.awt.EventQueue.dispatchEvent(Unknown Source)
             
     
 
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
       Source)
           
   
     
 
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
       Source)
           
   
     
 
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
       Source)
           
   
     
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
             
     
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
             
     
 
 java.awt.EventDispatchThread.run(Unknown Source)
      
             
  at
     
 
 weka.python.PythonSession.initSession(PythonSession.java:595)
               at
     
 
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
               at
     
 
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
               at
     
 
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
               at
     
 
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
               at
     
 
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
               at
     
 
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
               at
     
 
 javax.swing.AbstractButton.fireActionPerformed(Unknown
       Source)
           
     at
     
 
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
       Source)
           
     at
     
 
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
       Source)
           
     at
     
 
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
               at
     
 
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
       Source)
           
     at
     
 
 java.awt.Component.processMouseEvent(Unknown Source)
               at
     
 
 javax.swing.JComponent.processMouseEvent(Unknown Source)
               at
     
 
 java.awt.Component.processEvent(Unknown Source)
               at
     
 
 java.awt.Container.processEvent(Unknown Source)
               at
     
 
 java.awt.Component.dispatchEventImpl(Unknown Source)
               at
     
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
               at
     
 
 java.awt.Component.dispatchEvent(Unknown Source)
               at
     
 
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
       Source)
           
     at
     
 
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
       Source)
           
     at
     
 
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
       Source)
           
     at
     
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
               at
     
 
 java.awt.Window.dispatchEventImpl(Unknown Source)
               at
     
 
 java.awt.Component.dispatchEvent(Unknown Source)
               at
     
 
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
               at
     
  java.awt.EventQueue.access$500(Unknown
 Source)
               at
     
  java.awt.EventQueue$3.run(Unknown
 Source)
   
             at
     
  java.awt.EventQueue$3.run(Unknown
 Source)
   
             at
     
 
 java.security.AccessController.doPrivileged(Native
  Method)
               at
     
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
       Source)
           
     at
     
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
       Source)
           
     at
     
  java.awt.EventQueue$4.run(Unknown
 Source)
   
             at
     
  java.awt.EventQueue$4.run(Unknown
 Source)
   
             at
     
 
 java.security.AccessController.doPrivileged(Native
  Method)
               at
     
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
       Source)
           
     at
     
 
 java.awt.EventQueue.dispatchEvent(Unknown Source)
               at
     
 
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
       Source)
           
     at
     
 
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
       Source)
           
     at
     
 
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
       Source)
           
     at
     
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at
     
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
               at
     
 
 java.awt.EventDispatchThread.run(Unknown Source)
       Caused by:
 java.io.IOException:
  Cannot
       run program
  "python": CreateProcess error=2, The
 system
       cannot find the file
 specified
               at
     
  java.lang.ProcessBuilder.start(Unknown
 Source)
               at
     
 
 weka.python.PythonSession.<init>(PythonSession.java:140)
               at
     
 
 weka.python.PythonSession.initSession(PythonSession.java:593)
               ... 42
     
   more
       Caused by:
  java.io.IOException:
       CreateProcess
  error=2, The system cannot find the
 file
   
     specified
               at
      
 java.lang.ProcessImpl.create(Native
  Method)
               at
     
 
 java.lang.ProcessImpl.<init>(Unknown Source)
               at
     
  java.lang.ProcessImpl.start(Unknown
 Source)
               ... 45
     
   more
       null
   
    
      
      
     
 
 _______________________________________________
      Wekalist mailing list
   
    Send posts to: [hidden email]
      To subscribe, unsubscribe, etc.,
 visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
      List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
     
 
 
 
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
Reply | Threaded
Open this post in threaded view
|

Re: Weka startup -- Console shows Python-related Exceptions

Chaitanya Birudavolu
In reply to this post by Chaitanya Birudavolu
Hi,

Sorry to keep flip-flopping, but the Python-integration issue has re-surfaced.

Here's a problem summary--

--1--I have Windows 10 Home. I have Python installed on it through Anaconda, and it works fine, through Anaconda's Spyder IDE. I have Weka 3.9.3 installed, which also seems to be working fine except for the problem I'm discussing here (Python-integration).
--2--When I start Weka with Console, it opens GUI Chooser, and from there I open Explorer. Wen I do so, I see lots of error lines on the console, and it all seems related to Python. (I've pasted those error lines in when I started this discussion thread). Also, in the CPython panel of Weka, in the Output box, I find the message "Was unable to start python server".
--3--This problem does not occur if I open PackageManager first (and keep it open). So, yes, this is a workaround for me.
--4--I have set the PATH variable (user variable as well as System variable) to include the location Python.exe. I have set PYTHON_HOME to the location of Python.exe  (again, user variable as well as System variable)

What could be the reason for this? What does the PackageManager window have to do with using the Python integration in the Explorer?

Cheers,
Chaitanya

--------------------------------------------
On Sat, 12/1/18, Chaitanya Birudavolu <[hidden email]> wrote:

 Subject: Re: [Wekalist] Weka startup -- Console shows Python-related Exceptions
 To: "Weka machine learning workbench list." <[hidden email]>, "Mark Hall" <[hidden email]>
 Date: Saturday, December 1, 2018, 3:35 AM
 
 Just so it might benefit someone, may I add a
 little, about my next hurdle and its solution:--
 
 After adding Python location to the my
 Windows PATH variable, the python-related exceptions upon
 starting Weka Explorer stopped, and the CPythonConsole panel
 appeared in my Weka Explorer (it wasn't appearing earlier).
 However, in the CPythonConsole, there was some error message
 inside one of the boxes, that the "Python server could not
 be started" or words to that effect.
 
 To solve this, I figured that since
 everything in this world needs to have a "_HOME" variable
 (like JAVA_HOME, CATALINA_HOME), probably Weka was looking
 for a PYTHON_HOME variable. So I created one (Anaconda
 installation did not create that one either). That error
 went away too.
 
 Regards,
 Chaitanya
 
 --------------------------------------------
 On Sat, 12/1/18, Chaitanya Birudavolu
 <[hidden email]>
 wrote:
 
  Subject: Re: [Wekalist] Weka startup
 -- Console shows Python-related Exceptions
  To: "Weka machine learning workbench
 list." <[hidden email]>,
 "Mark Hall" <[hidden email]>
  Date: Saturday, December 1, 2018, 2:58
 AM
 
  Thanks Mark.
 
  Problem solved now (no more python
  exceptions on console upon starting
 Explorer)
 
  I happen to have already installed
  Anaconda. But I noticed that my path
 environment variables
  had no information at all about
 anaconda or python. (It
  appears that though the Python got
 installed with Anaconda,
  the existence of Python doesn't get
 advertised in any
  environment variables).
 
  Typing "where python" on the Anaconda
  Console gave me the location of where
 my python.exe was
  located. I added this location to my
 PATH, and bingo -- the
  exceptions upon Explorer startup went
 away.
 
  Thanks and Cheers,
  Chaitanya
 
 
 
 --------------------------------------------
  On Wed, 11/28/18, Mark Hall <[hidden email]>
  wrote:
 
   Subject: Re: [Wekalist] Weka
 startup
  -- Console shows Python-related
 Exceptions
   To: "Chaitanya Birudavolu"
 <[hidden email]>,
  "Weka machine learning workbench
 list." <[hidden email]>
   Date: Wednesday, November 28,
 2018,
  8:18 PM
  
   You need to make sure that your
   python's bin directory is in
 your PATH
  environment
   variable. The Weka python
 integration
  requires several
   python packages to be installed
 as
  well. The easiest way to
   get started is to download and
 install
  Anaconda python, it
   comes with all the Weka
 dependencies
  already installed.
  
   Cheers,
   Mark.
  
   On
   29/11/18, 4:55 AM, "Chaitanya
  Birudavolu" <[hidden email]
   on behalf of [hidden email]>
   wrote:
  
       Hi,
      
       I didn't see a
   response to this earlier query.
      
       Did it go into some
 mail-server
  spam-bin
   or did I miss something?
      
       Please let me know if any
  additional
   diagnostic info is needed.
      
       Thanks and Cheers,
      
   Chaitanya Birudavolu
      
      
 
 
 --------------------------------------------
       On Tue, 11/20/18,
 Chaitanya
  Birudavolu
   <[hidden email]>
   wrote:
      
      
   Subject: Weka startup -- Console
 shows
  Python-related
   Exceptions
        To: [hidden email]
        Date: Tuesday, November
  20, 2018, 2:20
   PM
       
        Hi,
       
        I'm using
   Weka 3.8.1 on Windows 10 x64,
        with
   Java 1.8 in my environment.
        I'm
   able to use most of Weka's
      
   functionality (but not yet
 ventured
  into Python usage in
        Weka).
        Python
   works fine outside of Weka, for
      
   me.
       
        When I
   start Python, I get the below
      
   exceptions on the Weka console.
       
        Could you please let me
  know what it
        means and what
 corrective
  action I
   should take?
       
      
   Thanks in advance.
        -Chaitanya
       
        The console
   output is as below:
       
        3D [dev]
   1.6.0-pre12-daily-experimental
      
   daily
       
      
   weka.core.WekaException: Cannot
 run
      
   program "python": CreateProcess
  error=2, The
   system cannot
        find the file
   specified
              
      
 
 
 weka.python.PythonSession.initSession(PythonSession.java:595)
              
      
 
 
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
              
      
 
 
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
              
      
 
 
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
              
      
 
 
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
              
      
 
 
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
              
      
 
 
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
              
      
 
 
 javax.swing.AbstractButton.fireActionPerformed(Unknown
        Source)
            
    
      
 
 
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
        Source)
            
    
      
 
 
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
        Source)
            
    
      
 
 
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
              
      
 
 
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
        Source)
            
    
      
 
 
 java.awt.Component.processMouseEvent(Unknown Source)
              
      
 
 
 javax.swing.JComponent.processMouseEvent(Unknown Source)
              
      
 
 
 java.awt.Component.processEvent(Unknown Source)
              
      
 
 
 java.awt.Container.processEvent(Unknown Source)
              
      
 
 
 java.awt.Component.dispatchEventImpl(Unknown Source)
              
      
 
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
              
      
 
 
 java.awt.Component.dispatchEvent(Unknown Source)
              
      
 
 
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
        Source)
            
    
      
 
 
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
        Source)
            
    
      
 
 
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
        Source)
            
    
      
 
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
              
      
 
 
 java.awt.Window.dispatchEventImpl(Unknown Source)
              
      
 
 
 java.awt.Component.dispatchEvent(Unknown Source)
              
      
 
 
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
              
      
  
 java.awt.EventQueue.access$500(Unknown
  Source)
              
      
  
 java.awt.EventQueue$3.run(Unknown
  Source)
    
            
      
  
 java.awt.EventQueue$3.run(Unknown
  Source)
    
            
      
 
 
 java.security.AccessController.doPrivileged(Native
   Method)
              
      
 
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
        Source)
            
    
      
 
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
        Source)
            
    
       
  java.awt.EventQueue$4.run(Unknown
   Source)
              
       
  java.awt.EventQueue$4.run(Unknown
   Source)
              
      
 
 
 java.security.AccessController.doPrivileged(Native
   Method)
              
      
 
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
        Source)
            
    
      
 
 
 java.awt.EventQueue.dispatchEvent(Unknown Source)
              
      
 
 
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
        Source)
            
    
      
 
 
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
        Source)
            
    
      
 
 
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
        Source)
            
    
      
 
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              
      
 
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
              
      
 
 
 java.awt.EventDispatchThread.run(Unknown Source)
       
              
   at
      
 
 
 weka.python.PythonSession.initSession(PythonSession.java:595)
                at
      
 
 
 weka.gui.PythonPanel.<init>(PythonPanel.java:464)
                at
      
 
 
 weka.gui.explorer.PythonExplorerPanel.setup(PythonExplorerPanel.java:62)
                at
      
 
 
 weka.gui.explorer.PythonExplorerPanel.setExplorer(PythonExplorerPanel.java:74)
                at
      
 
 
 weka.gui.explorer.Explorer.<init>(Explorer.java:236)
                at
      
 
 
 weka.gui.GUIChooserApp.showExplorer(GUIChooserApp.java:1303)
                at
      
 
 
 weka.gui.GUIChooserApp$22.actionPerformed(GUIChooserApp.java:1127)
                at
      
 
 
 javax.swing.AbstractButton.fireActionPerformed(Unknown
        Source)
            
      at
      
 
 
 javax.swing.AbstractButton$Handler.actionPerformed(Unknown
        Source)
            
      at
      
 
 
 javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
        Source)
            
      at
      
 
 
 javax.swing.DefaultButtonModel.setPressed(Unknown Source)
                at
      
 
 
 javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
        Source)
            
      at
      
 
 
 java.awt.Component.processMouseEvent(Unknown Source)
                at
      
 
 
 javax.swing.JComponent.processMouseEvent(Unknown Source)
                at
      
 
 
 java.awt.Component.processEvent(Unknown Source)
                at
      
 
 
 java.awt.Container.processEvent(Unknown Source)
                at
      
 
 
 java.awt.Component.dispatchEventImpl(Unknown Source)
                at
      
 
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
                at
      
 
 
 java.awt.Component.dispatchEvent(Unknown Source)
                at
      
 
 
 java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
        Source)
            
      at
      
 
 
 java.awt.LightweightDispatcher.processMouseEvent(Unknown
        Source)
            
      at
      
 
 
 java.awt.LightweightDispatcher.dispatchEvent(Unknown
        Source)
            
      at
      
 
 
 java.awt.Container.dispatchEventImpl(Unknown Source)
                at
      
 
 
 java.awt.Window.dispatchEventImpl(Unknown Source)
                at
      
 
 
 java.awt.Component.dispatchEvent(Unknown Source)
                at
      
 
 
 java.awt.EventQueue.dispatchEventImpl(Unknown Source)
                at
      
  
 java.awt.EventQueue.access$500(Unknown
  Source)
                at
      
  
 java.awt.EventQueue$3.run(Unknown
  Source)
    
              at
      
  
 java.awt.EventQueue$3.run(Unknown
  Source)
    
              at
      
 
 
 java.security.AccessController.doPrivileged(Native
   Method)
                at
      
 
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
        Source)
            
      at
      
 
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
        Source)
            
      at
      
  
 java.awt.EventQueue$4.run(Unknown
  Source)
    
              at
      
  
 java.awt.EventQueue$4.run(Unknown
  Source)
    
              at
      
 
 
 java.security.AccessController.doPrivileged(Native
   Method)
                at
      
 
 
 java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown
        Source)
            
      at
      
 
 
 java.awt.EventQueue.dispatchEvent(Unknown Source)
                at
      
 
 
 java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
        Source)
            
      at
      
 
 
 java.awt.EventDispatchThread.pumpEventsForFilter(Unknown
        Source)
            
      at
      
 
 
 java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
        Source)
            
      at
      
 
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at
      
 
 
 java.awt.EventDispatchThread.pumpEvents(Unknown Source)
                at
      
 
 
 java.awt.EventDispatchThread.run(Unknown Source)
        Caused by:
  java.io.IOException:
   Cannot
        run program
   "python": CreateProcess error=2,
 The
  system
        cannot find the file
  specified
                at
      
  
 java.lang.ProcessBuilder.start(Unknown
  Source)
                at
      
 
 
 weka.python.PythonSession.<init>(PythonSession.java:140)
                at
      
 
 
 weka.python.PythonSession.initSession(PythonSession.java:593)
                ... 42
      
    more
        Caused by:
   java.io.IOException:
        CreateProcess
   error=2, The system cannot find
 the
  file
    
      specified
                at
       
  java.lang.ProcessImpl.create(Native
   Method)
                at
      
 
 
 java.lang.ProcessImpl.<init>(Unknown Source)
                at
      
  
 java.lang.ProcessImpl.start(Unknown
  Source)
                ... 45
      
    more
        null
    
     
       
       
      
 
 
 _______________________________________________
       Wekalist mailing list
    
     Send posts to: [hidden email]
       To subscribe, unsubscribe,
 etc.,
  visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
       List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html
      
  
  
  
_______________________________________________
Wekalist mailing list
Send posts to: [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/mailman/listinfo/wekalist
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html