[IronPython] Ability to use CPython csv module

Dino Viehland dinov at microsoft.com
Wed Nov 18 19:32:13 CET 2009


You could try using CPython's _csv w/ IronClad but other than that we still need to implement _csv.

If you, or anyone else, would like to see us hurry up and implement this  http://ironpython.codeplex.com/WorkItem/View.aspx?WorkItemId=21395 is the bug to vote for.

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of William Clifford
Sent: Wednesday, November 18, 2009 10:27 AM
To: users at lists.ironpython.com
Subject: [IronPython] Ability to use CPython csv module

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<mailto: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/e7175aaf/attachment.html>


More information about the Ironpython-users mailing list