current git master in windows?

13 views
Skip to first unread message

Robert Cimrman

unread,
Nov 3, 2011, 7:13:29 AM11/3/11
to sfepy-devel
Hi,

any windows users around? Is current git master working for you or not?

(git clone git://github.com/sfepy/sfepy.git)

r.

Md. Golam Rashed

unread,
Nov 3, 2011, 10:53:42 AM11/3/11
to sfepy...@googlegroups.com
I downloaded as a zip, and running on a Atom machine gives-
59 test file(s) executed in 547.77 s, 2 failure(s) of 96 test(s)

Robert Cimrman

unread,
Nov 3, 2011, 11:00:42 AM11/3/11
to sfepy...@googlegroups.com
On 11/03/11 15:53, Md. Golam Rashed wrote:
> I downloaded as a zip, and running on a Atom machine gives-
> 59 test file(s) executed in 547.77 s, 2 failure(s) of 96 test(s)

Could you run

runTests.py --debug testfile

for the test file(s) that failed and send me the output?

Thanks,
r.

Md. Golam Rashed

unread,
Nov 3, 2011, 11:56:44 AM11/3/11
to sfepy...@googlegroups.com
1.

$ runTests.py --debug test_input_navier_stokes.py
<<< directory: , test files: 1
<<< test_input_navier_stokes.py
--- test instance creation failed
Traceback (most recent call last):
  File "./runTests.py", line 225, in <module>
    main()
  File "./runTests.py", line 216, in main
    run_tests(stats, dirname, [filename])
  File "./runTests.py", line 148, in run_tests
    n_fail, n_total, test_time = run_test( conf_name, options )
  File "./runTests.py", line 94, in run_test
    conf = ProblemConf.from_file( conf_name, required, _required + other )
  File "c:\src\sfepy\sfepy\base\conf.py", line 270, in from_file
    funmod = import_file( filename )
  File "c:\src\sfepy\sfepy\base\base.py", line 120, in import_file
    mod = __import__(name)
ImportError: No module named test_input_navier_stokes

2.

$ runTests.py --debug test_input_stabilized_navier_stokes.py
<<< directory: , test files: 1
<<< test_input_stabilized_navier_stokes.py
--- test instance creation failed
Traceback (most recent call last):
  File "./runTests.py", line 225, in <module>
    main()
  File "./runTests.py", line 216, in main
    run_tests(stats, dirname, [filename])
  File "./runTests.py", line 148, in run_tests
    n_fail, n_total, test_time = run_test( conf_name, options )
  File "./runTests.py", line 94, in run_test
    conf = ProblemConf.from_file( conf_name, required, _required + other )
  File "c:\src\sfepy\sfepy\base\conf.py", line 270, in from_file
    funmod = import_file( filename )
  File "c:\src\sfepy\sfepy\base\base.py", line 120, in import_file
    mod = __import__(name)
ImportError: No module named test_input_stabilized_navier_stokes

Robert Cimrman

unread,
Nov 3, 2011, 12:20:08 PM11/3/11
to sfepy...@googlegroups.com

You have to run

./runTests.py tests/test_input_navier_stokes.py --debug

i.e. provide the full path (prepend tests/ to filename).

cheers,
r.

Md. Golam Rashed

unread,
Nov 3, 2011, 1:32:23 PM11/3/11
to sfepy...@googlegroups.com
1.

$ ./runTests.py tests/test_input_navier_stokes.py --debug
<<< directory: tests, test files: 1
<<< tests\test_input_navier_stokes.py
sfepy: left over: ['verbose', '__builtins__', '_filename', '__file__', '__package__', 'TestI
nput', 'input_name', '__name__', 'output_name', '__doc__']
--- test instance creation failed
Traceback (most recent call last):
  File "./runTests.py", line 225, in <module>
    main()
  File "./runTests.py", line 216, in main
    run_tests(stats, dirname, [filename])
  File "./runTests.py", line 148, in run_tests
    n_fail, n_total, test_time = run_test( conf_name, options )
  File "./runTests.py", line 95, in run_test
    test = conf.funmod.Test.from_conf( conf, options )
  File "tests\testsBasic.py", line 30, in from_conf
    test_conf = ProblemConf.from_file(input_name, required, other)
  File "c:\src\sfepy\sfepy\base\conf.py", line 270, in from_file
    funmod = import_file( filename )
  File "c:\src\sfepy\sfepy\base\base.py", line 120, in import_file
    mod = __import__(name)
  File "tests\../examples/navier_stokes\navier_stokes.py", line 183, in <module>
    cinc = getattr(utils, cinc_name)
AttributeError: 'module' object has no attribute 'cinc_elbow2'

2.

$ ./runTests.py tests/test_input_stabilized_navier_stokes.py --debug
<<< directory: tests, test files: 1
<<< tests\test_input_stabilized_navier_stokes.py
sfepy: left over: ['verbose', '__builtins__', '_filename', '__file__', '__package__', 'TestI
nput', 'input_name', '__name__', 'output_name', '__doc__']
--- test instance creation failed
Traceback (most recent call last):
  File "./runTests.py", line 225, in <module>
    main()
  File "./runTests.py", line 216, in main
    run_tests(stats, dirname, [filename])
  File "./runTests.py", line 148, in run_tests
    n_fail, n_total, test_time = run_test( conf_name, options )
  File "./runTests.py", line 95, in run_test
    test = conf.funmod.Test.from_conf( conf, options )
  File "tests\testsBasic.py", line 30, in from_conf
    test_conf = ProblemConf.from_file(input_name, required, other)
  File "c:\src\sfepy\sfepy\base\conf.py", line 270, in from_file
    funmod = import_file( filename )
  File "c:\src\sfepy\sfepy\base\base.py", line 120, in import_file
    mod = __import__(name)
  File "tests\../examples/navier_stokes\stabilized_navier_stokes.py", line 145, in <module>
    cinc = getattr(utils, cinc_name)
AttributeError: 'module' object has no attribute 'cinc_elbow2'

Md. Golam Rashed

unread,
Nov 4, 2011, 3:06:27 AM11/4/11
to sfepy...@googlegroups.com
Did that help?

Robert Cimrman

unread,
Nov 4, 2011, 3:22:29 AM11/4/11
to sfepy...@googlegroups.com
Yes, thanks! It seems that wrong utils.py gets imported instead of the one in examples/navier_stokes/

r.

----- Reply message -----
From: "Md. Golam Rashed" <rashed...@gmail.com>
To: <sfepy...@googlegroups.com>
Subject: current git master in windows?
Date: Fri, Nov 4, 2011 08:06


Did that help?

--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
To view this discussion on the web visit https://groups.google.com/d/msg/sfepy-devel/-/8JItNcuRrx8J.
To post to this group, send email to sfepy...@googlegroups.com.
To unsubscribe from this group, send email to sfepy-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sfepy-devel?hl=en.

Robert Cimrman

unread,
Nov 6, 2011, 5:13:59 AM11/6/11
to sfepy...@googlegroups.com
On 11/04/11 08:22, Robert Cimrman wrote:
> Yes, thanks! It seems that wrong utils.py gets imported instead of the one
> in examples/navier_stokes/

Actually what is the contents of examples/navier_stokes/utils.py in your
installation? It should contain cinc_elbow2() function.

Md. Golam Rashed

unread,
Nov 11, 2011, 1:55:04 PM11/11/11
to sfepy...@googlegroups.com
The examples/navier_stokes/utils.py file does not contain the cinc_elbow2() function

Robert Cimrman

unread,
Nov 12, 2011, 11:17:12 AM11/12/11
to sfepy...@googlegroups.com
On Fri, 11 Nov 2011, Md. Golam Rashed wrote:

> The�examples/navier_stokes/utils.py file does not contain
> the�cinc_elbow2() function

I have found the problem - somehow utils.py from pytables gets imported
instead of the correct file, as the pytables path is before the path of
the example in sys.path. To be fixed soon.

r.

Robert Cimrman

unread,
Nov 15, 2011, 8:09:18 AM11/15/11
to sfepy...@googlegroups.com

It should work now (master git repository) - I have tested it on Windows 7.

59 test file(s) executed in 224.12 s, 0 failure(s) of 96 test(s)

r.

Md. Golam Rashed

unread,
Nov 15, 2011, 9:40:35 AM11/15/11
to sfepy...@googlegroups.com
tested on an intel atom N570 netbook.
59 test file(s) executed in 650.56 s, 0 failure(s) of 96 test(s)

btw, where is the contribution of cython in this release?

Robert Cimrman

unread,
Nov 15, 2011, 9:49:43 AM11/15/11
to sfepy...@googlegroups.com
On 11/15/11 15:40, Md. Golam Rashed wrote:
> tested on an intel atom N570 netbook.
> 59 test file(s) executed in 650.56 s, 0 failure(s) of 96 test(s)

Good.

> btw, where is the contribution of cython in this release?

Cython is now used instead of Swig to call C functions (e.g. those in
sfepy/terms/extmods/) from Python. Some C functions were completely rewritten
in Cython (e.g. assembling of global vector/matrix). There should be no
user-visible changes coming from this transition.

r.

Md. Golam Rashed

unread,
Nov 18, 2011, 3:35:34 AM11/18/11
to sfepy...@googlegroups.com
i hope, before next release, testing will be done here so that there will be no errors or warnings in running runtests.py

Robert Cimrman

unread,
Nov 18, 2011, 5:39:23 AM11/18/11
to sfepy...@googlegroups.com
On Fri, 18 Nov 2011, Md. Golam Rashed wrote:

> i hope, before next release, testing will be done here so that there will
> be no errors or warnings in running runtests.py

Yes, there should be no errors. Are you getting some now?

As for warnings, it's more difficult, as they come from third party
packages. I would leave the control of ignoring them to user (via
warnings module).

r.

Md. Golam Rashed

unread,
Nov 18, 2011, 7:15:18 AM11/18/11
to sfepy...@googlegroups.com
no errors till now.
btw, after posting to this group, i often recieve a mail from "postm...@wilson.homeunix.com", the mail starts as below-

This is an automatically generated message from wilson.homeunix.com.
Please don't reply to it.

A technical issue was detected in your Email which cannot be
repaired automatically.  Your mail was delivered to the destination
address nevertheless.  For your convenience, the original email is
attached.  Thank you.

A desciption of the issue(s) follows:

--------------------------------------------------------------------

Your email contains HTML, which is marked with higher spam
probablility by widely-deployed anti-spam programs, and which can
cause display problems with various email clients.  Please switch to
"text messages" in your emails client.

====================================================================
====================================================================

Robert Cimrman

unread,
Nov 18, 2011, 7:36:34 AM11/18/11
to sfepy...@googlegroups.com
On 11/18/11 13:15, Md. Golam Rashed wrote:
> no errors till now.

ok

> btw, after posting to this group, i often recieve a mail from "postm...@wilson.homeunix.com",
> the mail starts as below-

Yes, I keep getting those too. It looks like someone on this list has a very
stringent spam policy setup, as it flags google groups e-mails as spam. I can
do nothing about that, as I do not know who the person is.

r.

Reply all
Reply to author
Forward
0 new messages