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: [email protected] 
[mailto:[email protected]] On Behalf Of William Clifford
Sent: Wednesday, November 18, 2009 10:27 AM
To: [email protected]
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.
[email protected]<mailto:[email protected]>
Mobile: 954-347-8037
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to