[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grinder-use
Subject:    Re: [Grinder-use] paths for scripts run on demote agents
From:       Rob Schroder <rschroder () onekingslane ! com>
Date:       2012-10-22 21:30:30
Message-ID: 9C9A48AC-E716-4735-8D33-8C366C4C2BD4 () onekingslane ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hey, Phil,

Just wanted to let you know that 3.11 did indeed fix the module import issues I was \
seeing.  I'll be giving 3.11 a thorough workout this week.  Appreciate the timely \
fix!

Cheers….Rob

On Oct 17, 2012, at 11:19 PM, Philip Aston wrote:

> There are some fixes to make module import behaviour more consistent and useful in \
> 3.11, particularly when distributing scripts using the console. I'm hoping to \
> release 3.11 at the weekend. 
> I'm not sure why you can't load your properties file, maybe 3.11 will fix this. \
> Please supply the code shipper you are using, and describe whether you are using \
> script distribution. 
> Also, try using an absolute path as a workaround.
> 
> - Phil
> On Oct 18, 2012 2:55 AM, "Rob Schroder" <rschroder@onekingslane.com> wrote:
> Hi,
> 
> Apologies if this question is stupid.  New to The Grinder and Jython.
> 
> I'm trying to load a file containing usernames and passwords, called usernames.csv. \
> The file lives in the same directory as the script, navigate.py.  But, I'm getting \
> the following error: 
> net.grinder.scriptengine.jython.JythonScriptExecutionException: IOError: No such \
> file or directory: usernames.csv File \
> "/Users/rschroder/OneKingsLane/dev/neptune/storefront/conf/../src/navigate.py", \
> line 62, in __init__ File \
> "/Users/rschroder/OneKingsLane/dev/neptune/storefront/conf/../src/navigate.py", \
> line 72, in ? 
> 
> Is there some environment variable that I need to set to allow grinder scripts to \
> see files in the directory in which they live?  I'm having similar problems trying \
> to import modules that live in the scripts directory. 
> -Thanks
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct
> _______________________________________________
> grinder-use mailing list
> grinder-use@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grinder-use
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________
> grinder-use mailing list
> grinder-use@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/grinder-use


[Attachment #5 (unknown)]

<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; ">Hey, Phil,<div><br></div><div>Just wanted to \
let you know that 3.11 did indeed fix the module import issues I was seeing. \
&nbsp;I'll be giving 3.11 a thorough workout this week. &nbsp;Appreciate the timely \
fix!</div><div><br></div><div>Cheers….Rob<br><div apple-content-edited="true"><span \
class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); \
font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: \
normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: \
-webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; \
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; \
"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, \
0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: \
normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: \
-webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; \
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; \
"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; \
color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: \
normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: \
normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; \
"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: \
after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; \
font-variant: normal; letter-spacing: normal; line-height: normal; orphans: 2; \
text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: \
normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; \
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; \
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; \
"></span></div></span></div></span></span> </div>
<br><div><div>On Oct 17, 2012, at 11:19 PM, Philip Aston wrote:</div><br \
class="Apple-interchange-newline"><blockquote type="cite"><p>There are some fixes to \
make module import behaviour more consistent and useful in 3.11, particularly when \
distributing scripts using the console. I'm hoping to release 3.11 at the \
weekend.</p><p>I'm not sure why you can't load your properties file, maybe 3.11 will \
fix this. Please supply the code shipper you are using, and describe whether you are \
using script distribution. </p><p>Also, try using an absolute path as a \
workaround.</p><p>- Phil<br> </p>
<div class="gmail_quote">On Oct 18, 2012 2:55 AM, "Rob Schroder" &lt;<a \
href="mailto:rschroder@onekingslane.com">rschroder@onekingslane.com</a>&gt; wrote:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex"> Hi,<br>
<br>
Apologies if this question is stupid. &nbsp;New to The Grinder and Jython.<br>
<br>
I'm trying to load a file containing usernames and passwords, called usernames.csv. \
&nbsp;The file lives in the same directory as the script, navigate.py. &nbsp;But, I'm \
getting the following error:<br> <br>
net.grinder.scriptengine.jython.JythonScriptExecutionException: IOError: No such file \
or directory: usernames.csv<br> &nbsp; &nbsp; &nbsp; &nbsp; File \
"/Users/rschroder/OneKingsLane/dev/neptune/storefront/conf/../src/navigate.py", line \
62, in __init__<br> &nbsp; &nbsp; &nbsp; &nbsp; File \
"/Users/rschroder/OneKingsLane/dev/neptune/storefront/conf/../src/navigate.py", line \
72, in ?<br> <br>
<br>
Is there some environment variable that I need to set to allow grinder scripts to see \
files in the directory in which they live? &nbsp;I'm having similar problems trying \
to import modules that live in the scripts directory.<br>

<br>
-Thanks<br>
------------------------------------------------------------------------------<br>
Everyone hates slow websites. So do we.<br>
Make your web apps faster with AppDynamics<br>
Download AppDynamics Lite for free today:<br>
<a href="http://p.sf.net/sfu/appdyn_sfd2d_oct" \
target="_blank">http://p.sf.net/sfu/appdyn_sfd2d_oct</a><br> \
_______________________________________________<br> grinder-use mailing list<br>
<a href="mailto:grinder-use@lists.sourceforge.net">grinder-use@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/grinder-use" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/grinder-use</a><br> \
                </blockquote></div>
------------------------------------------------------------------------------<br>Everyone \
hates slow websites. So do we.<br>Make your web apps faster with \
AppDynamics<br>Download AppDynamics Lite for free today:<br><a \
href="http://p.sf.net/sfu/appdyn_sfd2d_oct____________________________________________ \
___">http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________</a><br>grinder-use \
mailing list<br>grinder-use@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/grinder-use<br></blockquote></div><br></div></body></html>




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct

_______________________________________________
grinder-use mailing list
grinder-use@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/grinder-use


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic