1

Is it possible to make Websphere to work with CSV? I would love to leverage jython csv module. But it seems default Websphere 7 jython doesn't have that.

Is it possible to either include a jar in the classpath or upgrade the jython in websphere

Please advise

Thanks in advance!

Roy Chan
  • 2,888
  • 6
  • 36
  • 43

3 Answers3

1

try to extract Lib/csv.py from the latest jython distribution and place it into WAS_ROOT/optionalLibraries/jython/Lib.

Let us know if that worked :)

  • Getting exception when importing the csv, looks like I have to upgrade the whole jython env. then just one .py? File "C:\Program Files\IBM\SDP\runtimes\base_v7\optionalLibraries\jython\Lib\csv.py", line 7, in ? ImportError: no module named _csv – Roy Chan Feb 06 '12 at 02:00
0

IBM have some detailed instructions on how to upgrade websphere to jython 2.5

http://www.ibm.com/developerworks/websphere/library/techarticles/1207_vansickel/1207_vansickel.html

Alan Kennedy
  • 131
  • 2
0

I have replaced the whole jython installation in the websphere with the new jython 2.5.2 (simple copy and paste) and it worked.

Roy Chan
  • 2,888
  • 6
  • 36
  • 43