?Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...)http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py?. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks,
/Axel Gagge
PhD Student
Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py
dmrg parm_spin_one_half.in.xml --write-xml
ALPS DMRG temporary files will be written to .
ALPS/dmrg version 1.0.0 (2006/10/02)
Density Matrix Renormalization Group algorithm
for low-dimensional interacting systems.
available from http://alps.comp-phys.org/
copyright (c) 2006-2013 by Adrian E. Feiguin
for details see the publication:
A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler
copyright (c) 1994-2006 by Matthias Troyer troyer@comp-phys.org.
see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4
available from http://alps.comp-phys.org/
copyright (c) 1994-2013 by the ALPS collaboration.
Consult the web page for license details.
For details see the publication:
B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid
Traceback (most recent call last):
File "spin_one-half.py", line 54, in <module>
for s in data[0]:
IndexError: list index out of range
It seems the container is not setting the language properly.
Try running as:
docker run -p 8888:8888 -e LC_ALL="en_US.UTF-8" dolfim/alps:2.2b4-notebook
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 4:55 PM, Axel Gagge axel.gagge@fysik.su.se wrote:
Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...) http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks, /Axel Gagge PhD Student Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py dmrg parm_spin_one_half.in.xml --write-xml ALPS DMRG temporary files will be written to . ALPS/dmrg version 1.0.0 (2006/10/02) Density Matrix Renormalization Group algorithm for low-dimensional interacting systems. available from http://alps.comp-phys.org/ http://alps.comp-phys.org/ copyright (c) 2006-2013 by Adrian E. Feiguin for details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer <troyer@comp-phys.org mailto:troyer@comp-phys.org>. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4 available from http://alps.comp-phys.org/ http://alps.comp-phys.org/ copyright (c) 1994-2013 by the ALPS collaboration. Consult the web page for license details. For details see the publication: B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid Traceback (most recent call last): File "spin_one-half.py", line 54, in <module> for s in data[0]: IndexError: list index out of range
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/ http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Thanks, it solved the locale problem but I still get no output from the simulation. The file "parm_spin_one_half.task1.in.xml" generated:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="ALPS.xsl"?> <SIMULATION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xml.comp-phys.org/2003/8/QMCXML.xsd"> <PARAMETERS> <PARAMETER name="LATTICE">open chain lattice</PARAMETER> <PARAMETER name="SEED">437896547</PARAMETER> <PARAMETER name="CONSERVED_QUANTUMNUMBERS">N,Sz</PARAMETER> <PARAMETER name="NUMBER_EIGENVALUES">1</PARAMETER> <PARAMETER name="MAXSTATES">100</PARAMETER> <PARAMETER name="MODEL">spin</PARAMETER>
<PARAMETER name="J">1</PARAMETER> <PARAMETER name="Sz_total">0</PARAMETER> <PARAMETER name="SWEEPS">4</PARAMETER> <PARAMETER name="L">32</PARAMETER> </PARAMETERS> </SIMULATION>
Best,
Axel
________________________________ Från: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch för Michele Dolfi dolfim@phys.ethz.ch Skickat: den 10 januari 2017 17:08 Till: comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
It seems the container is not setting the language properly.
Try running as:
docker run -p 8888:8888 -e LC_ALL="en_US.UTF-8" dolfim/alps:2.2b4-notebook
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.chmailto:dolfim@phys.ethz.ch www.itp.phys.ethz.chhttp://www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 4:55 PM, Axel Gagge <axel.gagge@fysik.su.semailto:axel.gagge@fysik.su.se> wrote:
Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...)http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks, /Axel Gagge PhD Student Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py dmrg parm_spin_one_half.in.xml --write-xml ALPS DMRG temporary files will be written to . ALPS/dmrg version 1.0.0 (2006/10/02) Density Matrix Renormalization Group algorithm for low-dimensional interacting systems. available from http://alps.comp-phys.org/ copyright (c) 2006-2013 by Adrian E. Feiguin for details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer <troyer@comp-phys.orgmailto:troyer@comp-phys.org>. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4 available from http://alps.comp-phys.org/ copyright (c) 1994-2013 by the ALPS collaboration. Consult the web page for license details. For details see the publication: B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid Traceback (most recent call last): File "spin_one-half.py", line 54, in <module> for s in data[0]: IndexError: list index out of range
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Well, the *task1.in.xml is an input file, therefore it will not contain any output. The Python script should automatically look into the generated output files.
How are you using the container? Are you using the IPython terminal? Or did you get an interactive shell via docker exec?
If you want to keep the result, you should mount some working directory inside the container, e.g. via docker run -v $PWD:/work ...
Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 5:29 PM, Axel Gagge axel.gagge@fysik.su.se wrote:
Thanks, it solved the locale problem but I still get no output from the simulation. The file "parm_spin_one_half.task1.in.xml" generated:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="ALPS.xsl"?>
<SIMULATION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance>" xsi:noNamespaceSchemaLocation="http://xml.comp-phys.org/2003/8/QMCXML.xsd <http://xml.comp-phys.org/2003/8/QMCXML.xsd>"> <PARAMETERS> <PARAMETER name="LATTICE">open chain lattice</PARAMETER> <PARAMETER name="SEED">437896547</PARAMETER> <PARAMETER name="CONSERVED_QUANTUMNUMBERS">N,Sz</PARAMETER> <PARAMETER name="NUMBER_EIGENVALUES">1</PARAMETER> <PARAMETER name="MAXSTATES">100</PARAMETER> <PARAMETER name="MODEL">spin</PARAMETER>
<PARAMETER name="J">1</PARAMETER> <PARAMETER name="Sz_total">0</PARAMETER> <PARAMETER name="SWEEPS">4</PARAMETER> <PARAMETER name="L">32</PARAMETER>
</PARAMETERS> </SIMULATION>
Best, Axel
Från: Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch mailto:comp-phys-alps-users-bounces@lists.phys.ethz.ch> för Michele Dolfi <dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch> Skickat: den 10 januari 2017 17:08 Till: comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
It seems the container is not setting the language properly.
Try running as:
docker run -p 8888:8888 -e LC_ALL="en_US.UTF-8" dolfim/alps:2.2b4-notebook
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch www.itp.phys.ethz.ch http://www.itp.phys.ethz.ch/
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 4:55 PM, Axel Gagge <axel.gagge@fysik.su.se mailto:axel.gagge@fysik.su.se> wrote:
Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...) http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks, /Axel Gagge PhD Student Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py dmrg parm_spin_one_half.in.xml --write-xml ALPS DMRG temporary files will be written to . ALPS/dmrg version 1.0.0 (2006/10/02) Density Matrix Renormalization Group algorithm for low-dimensional interacting systems. available from http://alps.comp-phys.org/ http://alps.comp-phys.org/ copyright (c) 2006-2013 by Adrian E. Feiguin for details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer <troyer@comp-phys.org mailto:troyer@comp-phys.org>. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4 available from http://alps.comp-phys.org/ http://alps.comp-phys.org/ copyright (c) 1994-2013 by the ALPS collaboration. Consult the web page for license details. For details see the publication: B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid Traceback (most recent call last): File "spin_one-half.py", line 54, in <module> for s in data[0]: IndexError: list index out of range
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/ http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/ http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
I am using it through IPython terminal but I have also tried to use the code from an IPython notebook. I tried to use docker exec (I could not find how to pass the locale option though), opened alpspython and pasted the DMRG script line for line. There was no difference.
Thanks for the help,
Best,
Axel
________________________________ Från: Comp-phys-alps-users comp-phys-alps-users-bounces@lists.phys.ethz.ch för Michele Dolfi dolfim@phys.ethz.ch Skickat: den 10 januari 2017 17:45 Till: comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
Well, the *task1.in.xml is an input file, therefore it will not contain any output. The Python script should automatically look into the generated output files.
How are you using the container? Are you using the IPython terminal? Or did you get an interactive shell via docker exec?
If you want to keep the result, you should mount some working directory inside the container, e.g. via docker run -v $PWD:/work ...
Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.chmailto:dolfim@phys.ethz.ch www.itp.phys.ethz.chhttp://www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 5:29 PM, Axel Gagge <axel.gagge@fysik.su.semailto:axel.gagge@fysik.su.se> wrote:
Thanks, it solved the locale problem but I still get no output from the simulation. The file "parm_spin_one_half.task1.in.xml" generated:
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="ALPS.xsl"?> <SIMULATION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xml.comp-phys.org/2003/8/QMCXML.xsd"> <PARAMETERS> <PARAMETER name="LATTICE">open chain lattice</PARAMETER> <PARAMETER name="SEED">437896547</PARAMETER> <PARAMETER name="CONSERVED_QUANTUMNUMBERS">N,Sz</PARAMETER> <PARAMETER name="NUMBER_EIGENVALUES">1</PARAMETER> <PARAMETER name="MAXSTATES">100</PARAMETER> <PARAMETER name="MODEL">spin</PARAMETER>
<PARAMETER name="J">1</PARAMETER> <PARAMETER name="Sz_total">0</PARAMETER> <PARAMETER name="SWEEPS">4</PARAMETER> <PARAMETER name="L">32</PARAMETER> </PARAMETERS> </SIMULATION>
Best, Axel
________________________________ Från: Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.chmailto:comp-phys-alps-users-bounces@lists.phys.ethz.ch> för Michele Dolfi <dolfim@phys.ethz.chmailto:dolfim@phys.ethz.ch> Skickat: den 10 januari 2017 17:08 Till: comp-phys-alps-users@lists.phys.ethz.chmailto:comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
It seems the container is not setting the language properly.
Try running as:
docker run -p 8888:8888 -e LC_ALL="en_US.UTF-8" dolfim/alps:2.2b4-notebook
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.chmailto:dolfim@phys.ethz.ch www.itp.phys.ethz.chhttp://www.itp.phys.ethz.ch/
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 4:55 PM, Axel Gagge <axel.gagge@fysik.su.semailto:axel.gagge@fysik.su.se> wrote:
Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...)http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks, /Axel Gagge PhD Student Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py dmrg parm_spin_one_half.in.xml --write-xml ALPS DMRG temporary files will be written to . ALPS/dmrg version 1.0.0 (2006/10/02) Density Matrix Renormalization Group algorithm for low-dimensional interacting systems. available from http://alps.comp-phys.org/ copyright (c) 2006-2013 by Adrian E. Feiguin for details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer <troyer@comp-phys.orgmailto:troyer@comp-phys.org>. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4 available from http://alps.comp-phys.org/ copyright (c) 1994-2013 by the ALPS collaboration. Consult the web page for license details. For details see the publication: B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid Traceback (most recent call last): File "spin_one-half.py", line 54, in <module> for s in data[0]: IndexError: list index out of range
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
---- Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.chmailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Dear Alex,
I just managed to try out the container. It was still failing because of the language problem.
Now it is fixed and I pushed a new image to the Docker Hub.
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch www.itp.phys.ethz.ch
+41 44 633 78 56 phone +41 44 633 11 15 fax
On 10 Jan 2017, at 18:22, Axel Gagge axel.gagge@fysik.su.se wrote:
I am using it through IPython terminal but I have also tried to use the code from an IPython notebook. I tried to use docker exec (I could not find how to pass the locale option though), opened alpspython and pasted the DMRG script line for line. There was no difference.
Thanks for the help,
Best, Axel
Från: Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch mailto:comp-phys-alps-users-bounces@lists.phys.ethz.ch> för Michele Dolfi <dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch> Skickat: den 10 januari 2017 17:45 Till: comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
Well, the *task1.in.xml is an input file, therefore it will not contain any output. The Python script should automatically look into the generated output files.
How are you using the container? Are you using the IPython terminal? Or did you get an interactive shell via docker exec?
If you want to keep the result, you should mount some working directory inside the container, e.g. via docker run -v $PWD:/work ...
Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch www.itp.phys.ethz.ch http://www.itp.phys.ethz.ch/
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 5:29 PM, Axel Gagge <axel.gagge@fysik.su.se mailto:axel.gagge@fysik.su.se> wrote:
Thanks, it solved the locale problem but I still get no output from the simulation. The file "parm_spin_one_half.task1.in.xml" generated:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="ALPS.xsl"?>
<SIMULATION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance>" xsi:noNamespaceSchemaLocation="http://xml.comp-phys.org/2003/8/QMCXML.xsd <http://xml.comp-phys.org/2003/8/QMCXML.xsd>"> <PARAMETERS> <PARAMETER name="LATTICE">open chain lattice</PARAMETER> <PARAMETER name="SEED">437896547</PARAMETER> <PARAMETER name="CONSERVED_QUANTUMNUMBERS">N,Sz</PARAMETER> <PARAMETER name="NUMBER_EIGENVALUES">1</PARAMETER> <PARAMETER name="MAXSTATES">100</PARAMETER> <PARAMETER name="MODEL">spin</PARAMETER>
<PARAMETER name="J">1</PARAMETER> <PARAMETER name="Sz_total">0</PARAMETER> <PARAMETER name="SWEEPS">4</PARAMETER> <PARAMETER name="L">32</PARAMETER>
</PARAMETERS> </SIMULATION>
Best, Axel
Från: Comp-phys-alps-users <comp-phys-alps-users-bounces@lists.phys.ethz.ch mailto:comp-phys-alps-users-bounces@lists.phys.ethz.ch> för Michele Dolfi <dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch> Skickat: den 10 januari 2017 17:08 Till: comp-phys-alps-users@lists.phys.ethz.ch mailto:comp-phys-alps-users@lists.phys.ethz.ch Ämne: Re: [ALPS-users] DMRG application does not run
It seems the container is not setting the language properly.
Try running as:
docker run -p 8888:8888 -e LC_ALL="en_US.UTF-8" dolfim/alps:2.2b4-notebook
Best, Michele
-- ETH Zurich Dr. Michele Dolfi Institute for Theoretical Physics HIT G 32.4 Wolfgang-Pauli-Str. 27 8093 Zurich Switzerland
dolfim@phys.ethz.ch mailto:dolfim@phys.ethz.ch www.itp.phys.ethz.ch http://www.itp.phys.ethz.ch/
+41 44 633 78 56 phone +41 44 633 11 15 fax
On Jan 10, 2017, at 4:55 PM, Axel Gagge <axel.gagge@fysik.su.se mailto:axel.gagge@fysik.su.se> wrote:
Hello!
I'm running the ALPS docker container with IPython support (I have the last version of the container):
docker run -p 8888:8888 dolfim/alps:2.2b4-notebook
I am trying to run the first example from the DMRG tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:DMRG-01_DMRG) but I encounter a problem related to the lines of the code which runs, writes and reads the simulation data (script at http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.p...) http://alps.comp-phys.org/static/tutorials2.2.0/dmrg-01-dmrg/spin_one_half.py. The script creates input files and task, but nothing more seems to happen and when trying to retrieve the output, there is just an empty list and thus I get an IndexError. Has anyone else encountered this problem? It should be reproducible with the Docker container.
Terminal output provided below.
Thanks, /Axel Gagge PhD Student Stockholm University
alps@a6d9e036c68e:~/work$ alpspython spin_one-half.py dmrg parm_spin_one_half.in.xml --write-xml ALPS DMRG temporary files will be written to . ALPS/dmrg version 1.0.0 (2006/10/02) Density Matrix Renormalization Group algorithm for low-dimensional interacting systems. available from http://alps.comp-phys.org/ http://alps.comp-phys.org/ copyright (c) 2006-2013 by Adrian E. Feiguin for details see the publication: A.F. Albuquerque et al., J. of Magn. and Magn. Materials 310, 1187 (2007).
using the ALPS parallelizing scheduler copyright (c) 1994-2006 by Matthias Troyer <troyer@comp-phys.org mailto:troyer@comp-phys.org>. see Lecture Notes in Computer Science, Vol. 1505, p. 191 (1998).
based on the ALPS libraries version 2.2.b4 available from http://alps.comp-phys.org/ http://alps.comp-phys.org/ copyright (c) 1994-2013 by the ALPS collaboration. Consult the web page for license details. For details see the publication: B. Bauer et al., J. Stat. Mech. (2011) P05001.
locale::facet::_S_create_c_locale name not valid Traceback (most recent call last): File "spin_one-half.py", line 54, in <module> for s in data[0]: IndexError: list index out of range
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/ http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/ http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
Comp-phys-alps-users Mailing List for the ALPS Project http://alps.comp-phys.org/ http://alps.comp-phys.org/
List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users
Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch mailto:comp-phys-alps-users-leave@lists.phys.ethz.ch.
comp-phys-alps-users@lists.phys.ethz.ch