
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/mods.py",
Dear yt-users, I'm having a very peculiar problem, and I wonder if any of you have experienced this. I have been using my desktop machine to make tons of images of some enzo simulations - literally several thousand images at this point - and yt has mysteriously stopped working. I haven't done anything to python, attempted to upgrade yt, or anything like that... It just started throwing errors about 800 images into a script. It seems that I can get this error by simply typing 'python' and then 'from yt.mods import *'. The error message is at the end of this email. If anybody could give me some advice, I'd appreciate it - it seems like it might actually be deeper than simply a yt problem, though. Thanks! --Brian nibbler:/Users/bwoshea/Desktop/CondBubbleSims/spitzer_0_1_cool%python Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. line 32, in <module> import yt.lagos as lagos File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/lagos/__init__.py", line 97, in <module> from OutputTypes import * File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/lagos/OutputTypes.py", line 37, in <module> _pf_store = ParameterFileStore() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ParameterFileStorage.py", line 73, in __init__ self._records = self.read_db() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ParameterFileStorage.py", line 211, in read_db else: v['last_seen'] = float(v['last_seen']) ValueError: invalid literal for float(): EnzoStaticOutput

Hi Brian, I will investigate WHY this is happening, but to fix it move the ~/.yt/ *.csv files out of the way. -Matt On Apr 5, 2010, at 7:01 PM, "Brian O'Shea" <bwoshea@gmail.com> wrote:
Dear yt-users,
I'm having a very peculiar problem, and I wonder if any of you have experienced this. I have been using my desktop machine to make tons of images of some enzo simulations - literally several thousand images at this point - and yt has mysteriously stopped working. I haven't done anything to python, attempted to upgrade yt, or anything like that... It just started throwing errors about 800 images into a script. It seems that I can get this error by simply typing 'python' and then 'from yt.mods import *'. The error message is at the end of this email. If anybody could give me some advice, I'd appreciate it - it seems like it might actually be deeper than simply a yt problem, though.
Thanks!
--Brian
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
nibbler:/Users/bwoshea/Desktop/CondBubbleSims/spitzer_0_1_cool%python Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/ mods.py", line 32, in <module> import yt.lagos as lagos File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/ lagos/__init__.py", line 97, in <module> from OutputTypes import * File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/ lagos/OutputTypes.py", line 37, in <module> _pf_store = ParameterFileStore() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ ParameterFileStorage.py", line 73, in __init__ self._records = self.read_db() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ ParameterFileStorage.py", line 211, in read_db else: v['last_seen'] = float(v['last_seen']) ValueError: invalid literal for float(): EnzoStaticOutput
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Matt, That did the trick. Thank you! For my edification, what exactly does the file ~/.yt/parameter_files.csv do? Thanks! Brian On Mon, Apr 5, 2010 at 10:07 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Brian,
I will investigate WHY this is happening, but to fix it move the ~/.yt/*.csv files out of the way.
-Matt
On Apr 5, 2010, at 7:01 PM, "Brian O'Shea" <bwoshea@gmail.com> wrote:
Dear yt-users,
I'm having a very peculiar problem, and I wonder if any of you have experienced this. I have been using my desktop machine to make tons of images of some enzo simulations - literally several thousand images at this point - and yt has mysteriously stopped working. I haven't done anything to python, attempted to upgrade yt, or anything like that... It just started throwing errors about 800 images into a script. It seems that I can get this error by simply typing 'python' and then 'from yt.mods import *'. The error message is at the end of this email. If anybody could give me some advice, I'd appreciate it - it seems like it might actually be deeper than simply a yt problem, though.
Thanks!
--Brian
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/mods.py",
nibbler:/Users/bwoshea/Desktop/CondBubbleSims/spitzer_0_1_cool%python Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. line 32, in <module> import yt.lagos as lagos File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/lagos/__init__.py", line 97, in <module> from OutputTypes import * File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/lagos/OutputTypes.py", line 37, in <module> _pf_store = ParameterFileStore() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ParameterFileStorage.py", line 73, in __init__ self._records = self.read_db() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ParameterFileStorage.py", line 211, in read_db else: v['last_seen'] = float(v['last_seen']) ValueError: invalid literal for float(): EnzoStaticOutput
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Brian, It's how yt tracks the last 500 or so parameter files that have been loaded. It's not clear to me why in some/most cases it works but in others it fails at the turnover point. The point is to be able to pickle objects affiliated with a parameter file - data sources, etc - and be able to restore them. The __reduce__ operation in BaseDataTypes.py and the ParameterFileStore in yt/fido are where this happens. -Matt On Apr 5, 2010, at 7:13 PM, "Brian O'Shea" <bwoshea@gmail.com> wrote:
Hi Matt,
That did the trick. Thank you!
For my edification, what exactly does the file ~/.yt/ parameter_files.csv do?
Thanks!
Brian
On Mon, Apr 5, 2010 at 10:07 PM, Matthew Turk <matthewturk@gmail.com> wrote: Hi Brian,
I will investigate WHY this is happening, but to fix it move the ~/.yt/*.csv files out of the way.
-Matt
On Apr 5, 2010, at 7:01 PM, "Brian O'Shea" <bwoshea@gmail.com> wrote:
Dear yt-users,
I'm having a very peculiar problem, and I wonder if any of you have experienced this. I have been using my desktop machine to make tons of images of some enzo simulations - literally several thousand images at this point - and yt has mysteriously stopped working. I haven't done anything to python, attempted to upgrade yt, or anything like that... It just started throwing errors about 800 images into a script. It seems that I can get this error by simply typing 'python' and then 'from yt.mods import *'. The error message is at the end of this email. If anybody could give me some advice, I'd appreciate it - it seems like it might actually be deeper than simply a yt problem, though.
Thanks!
--Brian
from yt.mods import * Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
nibbler:/Users/bwoshea/Desktop/CondBubbleSims/spitzer_0_1_cool%python Python 2.5.4 (r254:67917, Dec 23 2008, 14:57:27) [GCC 4.0.1 (Apple Computer, Inc. build 5363)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/ mods.py", line 32, in <module> import yt.lagos as lagos File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/ lagos/__init__.py", line 97, in <module> from OutputTypes import * File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/ lagos/OutputTypes.py", line 37, in <module> _pf_store = ParameterFileStore() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ ParameterFileStorage.py", line 73, in __init__ self._records = self.read_db() File "/Library/Frameworks/Python.framework/Versions/2.5/lib/ python2.5/site-packages/yt-2.0dev-py2.5-macosx-10.3-i386.egg/yt/fido/ ParameterFileStorage.py", line 211, in read_db else: v['last_seen'] = float(v['last_seen']) ValueError: invalid literal for float(): EnzoStaticOutput
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Brian O'Shea
-
Matthew Turk