[IronPython] Ability to use CPython csv module

William Clifford william.clifford.mit at gmail.com
Wed Nov 18 19:27:02 CET 2009

Just curious if anyone has been able to get the CPython csv module to work
with IronPython (2.6 rc2)? I use csv regularly for my regular python
scripts, and I am exploring the ability to switch over to IronPython, simply
for the ability to put together decent GUIs. Not being able to use it throws
a major monkey wrench into the works.

I have tried doing the following:

C:> set IRONPYTHONPATH=C:\Python26\Lib
C:> ipy
IronPython 2.6 (2.6.10920.0) on .NET 2.0.50727.3603
Type "help", "copyright", "credits" or "license" for more information.
>>> import csv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python26\Lib\csv.py", line 8, in C:\Python26\Lib\csv.py
ImportError: No module named _csv

Same thing happens with the bsddb module. Now I have looked for anything
named _csv.* in my python installation and have not found anything like
_csv.pyd, _csv.dll, etc, so I am assuming that it is not something that
should be in the PATH / PYTHONPATH / IRONPYTHONPATH folder(s).

Anyone have any idea how to get this to work? Is it something that is simply
not supported by IronPython?

Thanks in advance

William M. Clifford, M.I.T.
william.clifford.mit at gmail.com
Mobile: 954-347-8037
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20091118/2760be30/attachment.html>

More information about the Ironpython-users mailing list