libconfig wrapper testing
Hi all, I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values. If I could get a few people, next time they update, to open up yt/utilities/setup.py and change: INSTALL_LIBCONFIG_WRAPPER = 0 to INSTALL_LIBCONFIG_WRAPPER = 1 and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit. I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt. Thanks for any testing ... -Matt
Hi, I just tried on my Ubuntu 10.04 laptop, and things worked just fine. There were a few warnings regarding locales, and a few minor things: grammar.y:50: warning: function declaration isn’t a prototype grammar.y:51: warning: function declaration isn’t a prototype gcc: yt/utilities/_libconfig/libconfig.c yt/utilities/_libconfig/libconfig.c:100:2: warning: #warning "No way to modify calling thread's locale!" yt/utilities/_libconfig/libconfig.c:121:2: warning: #warning "No way to modify calling thread's locale!" gcc: yt/utilities/libconfig_wrapper.c yt/utilities/libconfig_wrapper.c: In function ‘__pyx_pf_2yt_9utilities_17libconfig_wrapper_22libconfigConfiguration_get_setting’: yt/utilities/libconfig_wrapper.c:936: warning: assignment discards qualifiers from pointer target type gcc: yt/utilities/_libconfig/scanner.c but it worked no problem. j On Thu, Jan 27, 2011 at 9:15 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Awesome, thanks Jeff. I didn't quite mention it in the email, but testing this is a backdoor for finding out if it will also work on the platforms Enzo runs on, so anybody else that would be able to test, it'd be a huge help! On Fri, Jan 28, 2011 at 2:31 PM, j s oishi <jsoishi@gmail.com> wrote:
Hi,
I just tried on my Ubuntu 10.04 laptop, and things worked just fine. There were a few warnings regarding locales, and a few minor things:
grammar.y:50: warning: function declaration isn’t a prototype grammar.y:51: warning: function declaration isn’t a prototype gcc: yt/utilities/_libconfig/libconfig.c yt/utilities/_libconfig/libconfig.c:100:2: warning: #warning "No way to modify calling thread's locale!" yt/utilities/_libconfig/libconfig.c:121:2: warning: #warning "No way to modify calling thread's locale!" gcc: yt/utilities/libconfig_wrapper.c yt/utilities/libconfig_wrapper.c: In function ‘__pyx_pf_2yt_9utilities_17libconfig_wrapper_22libconfigConfiguration_get_setting’: yt/utilities/libconfig_wrapper.c:936: warning: assignment discards qualifiers from pointer target type gcc: yt/utilities/_libconfig/scanner.c
but it worked no problem.
j
On Thu, Jan 27, 2011 at 9:15 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Are you suggesting that Enzo doesn't run on my laptop? I BRISTLE AT THIS SUGGESTION GOOD SIR. On Fri, Jan 28, 2011 at 11:33 AM, Matthew Turk <matthewturk@gmail.com> wrote:
Awesome, thanks Jeff. I didn't quite mention it in the email, but testing this is a backdoor for finding out if it will also work on the platforms Enzo runs on, so anybody else that would be able to test, it'd be a huge help!
On Fri, Jan 28, 2011 at 2:31 PM, j s oishi <jsoishi@gmail.com> wrote:
Hi,
I just tried on my Ubuntu 10.04 laptop, and things worked just fine. There were a few warnings regarding locales, and a few minor things:
grammar.y:50: warning: function declaration isn’t a prototype grammar.y:51: warning: function declaration isn’t a prototype gcc: yt/utilities/_libconfig/libconfig.c yt/utilities/_libconfig/libconfig.c:100:2: warning: #warning "No way to modify calling thread's locale!" yt/utilities/_libconfig/libconfig.c:121:2: warning: #warning "No way to modify calling thread's locale!" gcc: yt/utilities/libconfig_wrapper.c yt/utilities/libconfig_wrapper.c: In function ‘__pyx_pf_2yt_9utilities_17libconfig_wrapper_22libconfigConfiguration_get_setting’: yt/utilities/libconfig_wrapper.c:936: warning: assignment discards qualifiers from pointer target type gcc: yt/utilities/_libconfig/scanner.c
but it worked no problem.
j
On Thu, Jan 27, 2011 at 9:15 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Sorry for my ignorance, but what exactly needs to be rebuilt? I pulled and updated from hg, but I'm not sure what I need to do (outside of changing the install flag) to test this... Chris On Fri, Jan 28, 2011 at 12:15 AM, Matthew Turk <matthewturk@gmail.com>wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Hi Chris, Once you switch the install flag and re-run python2.6 setup.py build_ext -i you should then be able to do: python2.6 -c "import yt.utilities.libconfig_wrapper" If there's an import error, it has failed. I shoudl also have mentioned, it's useful to know what kind of system (or if it's a supercomputer resource) it succeeds/fails on. Thanks, and sorry for the confusion, Matt On Fri, Jan 28, 2011 at 3:06 PM, Chris Malone <chris.m.malone@gmail.com> wrote:
Sorry for my ignorance, but what exactly needs to be rebuilt? I pulled and updated from hg, but I'm not sure what I need to do (outside of changing the install flag) to test this...
Chris
On Fri, Jan 28, 2011 at 12:15 AM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Hi Matt, Sorry, that is what I was doing, but I was doing it in yt/utilities/ instead of the main yt directory! There was no output and I was perplexed... Anyhow, I installed on my FC9 machine without problems. I did, however, receive the same warnings as Jeff. Chris On Fri, Jan 28, 2011 at 3:08 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Chris,
Once you switch the install flag and re-run
python2.6 setup.py build_ext -i
you should then be able to do:
python2.6 -c "import yt.utilities.libconfig_wrapper"
If there's an import error, it has failed. I shoudl also have mentioned, it's useful to know what kind of system (or if it's a supercomputer resource) it succeeds/fails on.
Thanks, and sorry for the confusion,
Matt
Sorry for my ignorance, but what exactly needs to be rebuilt? I pulled and updated from hg, but I'm not sure what I need to do (outside of changing
On Fri, Jan 28, 2011 at 3:06 PM, Chris Malone <chris.m.malone@gmail.com> wrote: the
install flag) to test this...
Chris
On Fri, Jan 28, 2011 at 12:15 AM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Excellent, thanks! I'm going to keep testing it on a few more machines I have access to, but I think this will be workable, and that when the time comes I can flip the switch so that it gets built. On Fri, Jan 28, 2011 at 3:20 PM, Chris Malone <chris.m.malone@gmail.com> wrote:
Hi Matt,
Sorry, that is what I was doing, but I was doing it in yt/utilities/ instead of the main yt directory! There was no output and I was perplexed...
Anyhow, I installed on my FC9 machine without problems. I did, however, receive the same warnings as Jeff.
Chris
On Fri, Jan 28, 2011 at 3:08 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Chris,
Once you switch the install flag and re-run
python2.6 setup.py build_ext -i
you should then be able to do:
python2.6 -c "import yt.utilities.libconfig_wrapper"
If there's an import error, it has failed. I shoudl also have mentioned, it's useful to know what kind of system (or if it's a supercomputer resource) it succeeds/fails on.
Thanks, and sorry for the confusion,
Matt
On Fri, Jan 28, 2011 at 3:06 PM, Chris Malone <chris.m.malone@gmail.com> wrote:
Sorry for my ignorance, but what exactly needs to be rebuilt? I pulled and updated from hg, but I'm not sure what I need to do (outside of changing the install flag) to test this...
Chris
On Fri, Jan 28, 2011 at 12:15 AM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The issue here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
Hi Matt, I just tried this on my OSX 10.6 laptop and on TACC Ranger, and it worked fine for both. Britton On Fri, Jan 28, 2011 at 3:22 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Excellent, thanks! I'm going to keep testing it on a few more machines I have access to, but I think this will be workable, and that when the time comes I can flip the switch so that it gets built.
Hi Matt,
Sorry, that is what I was doing, but I was doing it in yt/utilities/ instead of the main yt directory! There was no output and I was perplexed...
Anyhow, I installed on my FC9 machine without problems. I did, however, receive the same warnings as Jeff.
Chris
On Fri, Jan 28, 2011 at 3:08 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Chris,
Once you switch the install flag and re-run
python2.6 setup.py build_ext -i
you should then be able to do:
python2.6 -c "import yt.utilities.libconfig_wrapper"
If there's an import error, it has failed. I shoudl also have mentioned, it's useful to know what kind of system (or if it's a supercomputer resource) it succeeds/fails on.
Thanks, and sorry for the confusion,
Matt
On Fri, Jan 28, 2011 at 3:06 PM, Chris Malone <chris.m.malone@gmail.com
wrote:
Sorry for my ignorance, but what exactly needs to be rebuilt? I
On Fri, Jan 28, 2011 at 3:20 PM, Chris Malone <chris.m.malone@gmail.com> wrote: pulled
and updated from hg, but I'm not sure what I need to do (outside of changing the install flag) to test this...
Chris
On Fri, Jan 28, 2011 at 12:15 AM, Matthew Turk <matthewturk@gmail.com
wrote:
Hi all,
I've added a wrapper for libconfig, along with a slightly modified version of the (LGPL'd, credits and license all included) libconfig source itself, to the current development tip. (The modification is to force all integers to be read as 64-bit.) By default it is turned off, because of an issue with locale setting for reading/writing floating point values.
If I could get a few people, next time they update, to open up yt/utilities/setup.py and change:
INSTALL_LIBCONFIG_WRAPPER = 0
to
INSTALL_LIBCONFIG_WRAPPER = 1
and just see if it builds, that would be extremely helpful. The
issue
here is that it's not clear to me if the file "xlocale.h" is going to be present on all systems; I've located it on all of the systems I've tested on so far, but that is not many. If it doesn't work for you, that'd be really good to know. Worse comes to worse and we can disable the locale code completely, but that worries me a bit.
I'm in the process of documenting how to use the libconfig wrapper, but for the next few days it's not being used by anything in yt.
Thanks for any testing ...
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
_______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (4)
-
Britton Smith
-
Chris Malone
-
j s oishi
-
Matthew Turk