<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div>Yep, that did it! Thanks for your help. I'll submit the PR this afternoon.</div><div><br></div><div>Daniel</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-03-27 13:36 GMT-04:00 Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Fri, Mar 27, 2015 at 10:34 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Daniel,<div><br></div><div>Ah, I think that the fix is to change it to "cStringIO" rather than "cStringIO.StringIO".  Can you try that and if it works, PR it?</div></div></blockquote><div><br></div></span><div>For a tiny bit of context, six is part of our plan for supporting both python2 and python3 in the same codebase.  If you run into more issues like this, it helps to look at this page in the six docs:</div><div><br></div><div><a href="https://pythonhosted.org/six/#module-six.moves" target="_blank">https://pythonhosted.org/six/#module-six.moves</a><br></div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, Mar 27, 2015 at 12:32 PM, Daniel Fenn <span dir="ltr"><<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr">Hi everyone,<div><br></div><div>I've been working here and there on making the two point functions compatible with yt 3. I've run into an issue with the file i/o that's got me puzzled.</div><div><br></div><div>There's a call to write_on_root() that's failing with the error</div><div><br></div><div><i>AttributeError: 'builtin_function_or_method' object has no attribute 'StringIO'</i><br></div><div><br></div><div>Looking at the definition for write_on_root() in parallel_analysis_interface.py, I see that the offending line is:</div><div><br></div><div><i>return cStringIO.StringIO()</i><br></div><div><br></div><div>So apparently there's no function called StringIO(), even though the documentation for cStringIO says there should be.</div><div><br></div><div>I think the issue is how cStringIO is being imported:</div><div><i>from yt.extern.six.moves import cStringIO</i><br></div><div><br></div><div>Looking through yt/extern/six.py, it looks like it's modifying how the modules are imported, or something like that, but I can't really figure out what's going on in that file.</div><div><br></div><div>Does anyone have any thoughts on this?</div><div><br></div><div>Thanks,</div><div><br></div><div>Daniel</div></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></span></div><br></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>