Closed
Description
Ubuntu-14.04LTS
Python-2.7
Python.NET latest development branch with #119 patch for setup.py
Mono-4.0.12 (Xamarin)
I know that Python.NET isn't officially supported on Linux with mono, but I thought for posterity I should report this and maybe I or someone else will find a fix for at a later date.
>>> import clr
>>> clr.AddReference("System.IO")
>>> from System.IO import FileStream, FileMode
>>> fs = FileStream('myfile.net', FileMode.Open)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-22-0478243743b3> in <module>()
----> 1 fs = FileStream('myfile.net', FileMode.Open)
TypeError: no constructor matches given arguments
The same exact commands work on IronPython, so I don't think it's mono. I think the way to solve this is to rebuild pythonnet with debugging and attach GDB to the python process and step through the .NET code. If/when I do this, I will update this ticket. ✌️
Metadata
Metadata
Assignees
Labels
No labels