[mesa-users] Gyre and python
Cyrus Zalian
thebigkiwi2003 at yahoo.fr
Mon Dec 7 18:38:45 EST 2015
Thank you for your answer. I had the bad idea to search for the whole error
message on Google.
Anyway, I keep on having these error messages, so I'll ask the
administrator of the server to upgrade Python, because otherwise it will
drive me crazy.
I'll ask at the same time if I can use the virtualenv.
Thank you both for your help.
2015-12-07 23:42 GMT+01:00 Josiah Schwab <jwschwab at berkeley.edu>:
> Hi Cyrus,
>
> > File "make_plot.py", line 15, in <module>
> > number, profiles = fileio.list_mesa_data('LOGS/profiles.index')
> > File "/data/home/blablabla/stellarmodels/fileio.py", line 883, in
> > list_mesa_data
> > logfiles =
> > [os.path.join(os.path.dirname(filename),'profile{:.0f}.data'.format(nr))
> > for nr in lognr]
> > ValueError: zero length field name in format
>
> Yes. Auto-numbered replacement fields are a python 2.7 feature. As a
> workaround, you can just manually number it.
>
> https://bugs.python.org/issue5237
>
> Did you know that if you do a Google search for "ValueError: zero length
> field name in format", the very first hit is an answer to your question?
>
>
> http://stackoverflow.com/questions/5446964/valueerror-zero-length-field-name-in-format-error-in-python-3-0-3-1-3-2
>
> Josiah
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20151208/af940734/attachment.html>
More information about the Mesa-users
mailing list