Hi,
concerning this problem, we tried your patch and it worked. The alps module is now enabled, but we get these additional error messages when we load the file from the tutorial (http://alps.comp-phys.org/mediawiki/index.php/ALPS_2_Tutorials:MC-01_Autocor...) :
CRITICAL 2012-03-07 16:39:38,019 /tmp/alps/vistrails-src/vistrails/gui/vistrail_controller.py, line 777 The current workflow could not be validated. Pipeline cannot be instantiated: Missing module Tools|ShowListOfHTMLFiles in package org.comp-phys.alps (version 2.0.0) Missing module Dataset|Plot|ShowListOfPlots in package org.comp-phys.alps (version 2.0.0) Upgrading workflow failed. Could not upgrade module ShowListOfHTMLFiles from package org.comp-phys.alps. Upgrading workflow failed. Could not upgrade module ShowListOfPlots from package org.comp-phys.alps.
We are using the alps version andreas mentioned and vistrails 1.7.
regards Markus
On 03/07/2012 03:08 PM, Matthias Troyer wrote:
Can you try the following patch:
Index: vistrails/alps/parameters.py
--- vistrails/alps/parameters.py (revision 6020) +++ vistrails/alps/parameters.py (working copy) @@ -19,7 +19,10 @@
import numpy as np
-from gui.modules.constant_configuration import StandardConstantWidget +try:
- from gui.modules.constant_configuration import StandardConstantWidget
+except:
- from core.modules.constant_configuration import StandardConstantWidget
On Mar 6, 2012, at 10:33 PM, Andreas Sindermann wrote:
Matthias Troyer writes:
On 6 Mar 2012, at 21:33, Andreas Sindermann wrote:
Matthias Troyer writes:
Hi,
which version of ALPS is that?
That should be the current 2.x (2.0?) release, downloaded yesterday.
Please tell me the exact version you downloaded - did you get 2.0.3 or the nightly snapshot?
Sorry, it was alps-2.0.3-src-with-boost.tar.gz. Not the nightly snapshot.
Andreas
Matthias
Andreas
Matthias
On 6 Mar 2012, at 12:20, Andreas Sindermann wrote:
Dear all,
I tried to install vistrails on a Debian system. When calling vistrails with python 2.6.6 and trying to enable the alps module in the preferences error messages appear concerning the alps initialization:
Critical message: Initialization of package 'alps' failed
Package 'ALPS' failed to initialize, raising 'ImportError: No module named modules.constant_configuration'. Traceback: Traceback (most recent call last): File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/core/modules/module_registry.py", line 1355, in initialize_package package.initialize() File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/core/modules/package.py", line 368, in initialize __import__(name, globals(), locals(), []) File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/core/modules/package.py", line 262, in _import (name, globals, locals, fromlist, level)) File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/packages/alps/init.py", line 17, in<module> import parameters File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/core/modules/package.py", line 262, in _import (name, globals, locals, fromlist, level)) File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/packages/alps/parameters.py", line 22, in<module> from gui.modules.constant_configuration import StandardConstantWidget File "/tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/core/modules/package.py", line 262, in _import (name, globals, locals, fromlist, level)) ImportError: No module named modules.constant_configuration
Time: 2012-03-06 12:18:54,455 Location: /tmp/spielwiese/vistrails-src-1.7-51517a6cdab6/vistrails/gui/preferences.py, line 308
Any ideas? :-)
Best wishes Andreas