Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #8238

Re: running an existing script

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ethan@stoneleaf.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'modifies': 0.09; 'received:gator410.hostgator.com': 0.09; '~ethan~': 0.09; 'exception': 0.12; 'wrote:': 0.14; 'adam': 0.16; 'class:': 0.16; 'exit.': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 0.16; 'threw': 0.16; 'cc:addr:python- list': 0.17; 'guess': 0.19; 'header:In-Reply-To:1': 0.21; 'java': 0.21; 'variable': 0.21; 'cc:2**0': 0.22; 'cc:no real name:2**0': 0.23; 'lines,': 0.23; 'thanks': 0.28; 'cc:addr:python.org': 0.30; 'environment': 0.30; 'asking': 0.33; 'file': 0.34; 'header:User- Agent:1': 0.35; 'thread': 0.37; 'skip:- 10': 0.37; 'two': 0.37; 'could': 0.38; 'run': 0.38; 'but': 0.38; 'subject:: ': 0.38; 'system.': 0.39; 'really': 0.40; 'back': 0.63; 'received:websitewelcome.com': 0.67; 'received:69.93': 0.67; 'batch': 0.68; 'chapman': 0.84; 'ethan,': 0.84; 'method)': 0.84
Date Wed, 22 Jun 2011 11:50:25 -0700
From Ethan Furman <ethan@stoneleaf.us>
User-Agent Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version 1.0
To Adam Chapman <adamchapman1985@hotmail.co.uk>
Subject Re: running an existing script
References <4E00E3DB.9040900@stoneleaf.us> <SNT109-W44DCBD6223E4A2C5492ECAE6510@phx.gbl> <mailman.238.1308682012.1164.python-list@python.org> <44f694fd-c075-41a3-a044-c1b05f2a1463@x38g2000pri.googlegroups.com> <2d53da9c-0a28-4f88-b786-f18a3d0f4f11@f2g2000yqh.googlegroups.com> <58532636-8ddf-44ff-bcc7-1449b6dbdf80@e17g2000prj.googlegroups.com> <mailman.290.1308760634.1164.python-list@python.org> <7acdb2ca-a5a9-4c20-ade0-c598bb0b5bae@c41g2000yqm.googlegroups.com> <413b6a24-1b7c-4ae9-aef7-1533df92d1d7@v10g2000yqn.googlegroups.com> <ab9c12eb-89e9-4c8a-bb8b-7790805d2c50@j31g2000yqe.googlegroups.com>
In-Reply-To <ab9c12eb-89e9-4c8a-bb8b-7790805d2c50@j31g2000yqe.googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-AntiAbuse This header was added to track abuse, please include it with any abuse report
X-AntiAbuse Primary Hostname - gator410.hostgator.com
X-AntiAbuse Original Domain - python.org
X-AntiAbuse Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse Sender Address Domain - stoneleaf.us
X-BWhitelist no
X-Source
X-Source-Args
X-Source-Dir
X-Source-Sender mail.admailinc.com ([192.168.10.136]) [72.11.125.166]:1838
X-Source-Auth ethan+stoneleaf.us
X-Email-Count 2
X-Source-Cap dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ==
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.293.1308767801.1164.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 82.94.164.166
X-Trace 1308767802 news.xs4all.nl 14145 [::ffff:82.94.164.166]:37700
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:8238

Show key headers only | View raw


Adam Chapman wrote:
> Thanks again Ethan, It did begin to run nfold.py this time, after I
> added the environment variable "CLASSPATH" to my system. It threw back
> a java error, but I guess this isn;t the right place to be asking
> about that
> 
> C:\Users\Adam\Desktop\JBOOST\jboost-2.2\jboost-2.2\scripts>nfold.py --
> booster=Adaboost --folds=5 --data=spambase.data --spec=spambase.spec --
> rounds=500 --tree=ADD_ALL --generate
> nfold.py --booster=Adaboost --folds=5 --data=spambase.data --
> spec=spambase.spec --rounds=500 --tree=ADD_ALL --generate
> java.lang.NoClassDefFoundError: jboost/controller/Controller
> Caused by: java.lang.ClassNotFoundException:
> jboost.controller.Controller
> 	at java.net.URLClassLoader$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at java.net.URLClassLoader.findClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> 	at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: jboost.controller.Controller.  Program
> will exit.
> Exception in thread "main" k: 0 start:0 end:920


Looking at the batch file I see a line that modifies the CLASSPATH, so 
try this before you run nfold.py (cut across two lines, but it's really 
just one):
set CLASSPATH= 
%CLASSPATH%;../dist/jboost.jar;../lib/jfreechart-1.0.10.jar;../lib/jcommon-1.0.8.jar 



Good luck!

~Ethan~

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-21 10:45 -0700
  Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-21 11:32 -0700
  Re: running an existing script Benjamin Kaplan <benjamin.kaplan@case.edu> - 2011-06-21 11:25 -0700
  Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-21 12:00 -0700
    Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-21 13:12 -0700
      Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 08:54 -0700
        Re: running an existing script Chris Rebert <clp2@rebertia.com> - 2011-06-22 09:13 -0700
        Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 09:35 -0700
        Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 09:15 -0700
          Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 09:51 -0700
            Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 09:51 -0700
              Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 10:13 -0700
                Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 10:46 -0700
                Re: running an existing script Adam Chapman <adamchapman1985@hotmail.co.uk> - 2011-06-22 10:54 -0700
                Re: running an existing script Ethan Furman <ethan@stoneleaf.us> - 2011-06-22 11:50 -0700

csiph-web