On Wednesday, July 23, 2014 9:17:15 PM UTC+8, Robert Cimrman wrote:
On 07/23/2014 02:45 PM, Ouyang wrote:
On Tuesday, July 22, 2014 3:45:08 AM UTC+8, Robert Cimrman wrote:
On 07/21/2014 07:06 PM, Ouyang wrote:
Hi Robert,
Still does not work for both "make latex" and "make html".
I will try to install sfepy in a w8 virtual box, to see what is wrong.
It
would help to know your setup - how did you install sfepy and its dependencies.
For the new copy of sfepy, error info and debgu info from run_tests.py are attached.
That is strange - it seems that import_file() function does not work properly. Could you try applying the patch:
diff --git a/sfepy/base/base.py b/sfepy/base/base.py index 95a3f45..52f55dc 100644 --- a/sfepy/base/base.py +++ b/sfepy/base/base.py @@ -140,9 +140,11 @@ def import_file(filename, package_name=None, can_reload=Tru name = os.path.splitext(os.path.basename(filename))[0]
if package_name: + print '.'.join((package_name, name)) mod = __import__('.'.join((package_name, name)), fromlist=[name])
else: + print name mod = __import__(name)
if (name in sys.modules) and can_reload:
and re-run any failing test in debug mode?
How to apply the patch? Never do this before. I will google it to see how to do it.
The easiest thing is to open sfepy/base/base.py in an editor and add the print statements to import_file() :)
r.
Found the problem. See https://groups.google.com/forum/#!topic/sfepy-devel/GKcexGbS5ZY ouyang