« Return to Thread: Import issues

Re: Import issues

by RUSSEL Scott :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.

I have seen some odd problems on Ubuntu with the jython system path, so now I set it in the script properties file as follows….

 

 grinder.jvm.arguments=-Dpython.home=../../lib/jython2.2.1

 

In this case it is pointing to the location where I installed jyhton.  You might like to put in a full path, instead like “/home/scott/jython2.2.1” or wherever you installed jython…..

 

                        Hope this helps

 

 

                                                   Sc0tt….

 

 

 


From: grinder-use-bounces@... [mailto:grinder-use-bounces@...] On Behalf Of Ron Brennan
Sent: Wednesday, June 04, 2008 11:20 PM
To: grinder-use@...
Subject: [Grinder-use] Import issues

 

Hello,

 

I am having an issue with trying to import Python modules. 

 

When I use "import csv" in my script I get the error: "(ImportError: no module named csv..."

 

When I enter it on the Python command prompt I get:

>>> import csv

>>> csv.__file__

'usr/lib/python2.4/csv.pyc'

 

Thoughts on wy my grinder script can't find the python module


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
grinder-use mailing list
grinder-use@...
https://lists.sourceforge.net/lists/listinfo/grinder-use

 « Return to Thread: Import issues

LightInTheBox - Buy quality products at wholesale price!