Quoting osman os...@fuse.net:
On Fri, 2010-06-04 at 15:17 +0200, Robert Cimrman wrote:
On 06/04/10 15:01, osman wrote:
On Fri, 2010-06-04 at 10:23 +0200, Robert Cimrman wrote:
On 06/04/10 05:45, Logan Sorenson wrote:
Hi Osman,
On Thu, Jun 3, 2010 at 4:48 PM, osmanos...@fuse.net wrote:
On Thu, 2010-06-03 at 14:02 -0400, Logan Sorenson wrote: > It's working here, along with the schroedinger examples (although > hydrogen and boron have the known convergence issue in 3d). > > Thanks! > Logan > > On Thu, Jun 3, 2010 at 7:50 AM, Robert
Cimrmancimr...@ntc.zcu.cz wrote: >> Hi all, >> >> we have fixed tests/test_input_linear_elastic_mM.py, so now
all tests should >> pass again. Verifications welcome! >> >> r. >> >tests/test_input_linear_elastic_mM.py --- test instance creation failed
47 test file(s) executed in 60.45 s, 1 failure(s) of 65 test(s)
Not for me :-(
osman@destiny:~/src/sfepy$ ./schroedinger.py --boron Traceback (most recent call last): File "./schroedinger.py", line 729, in<module> main() File "./schroedinger.py", line 715, in main conf = ProblemConf.from_file( filename_in, required, other ) File "/home/osman/src/sfepy/sfepy/base/conf.py", line 248, in from_file funmod = import_file( filename ) File "/home/osman/src/sfepy/sfepy/base/base.py", line 126, in import_file mod = __import__(name) File "/home/osman/src/sfepy/examples/quantum/boron.py", line 3, in <module> from common import common ImportError: cannot import name common
Mesh was created already. This is with a new clone.
I pulled from Robert's repository on github. Could it be that the changes haven't propagated to the main git repo yet?
Both versions should be the same. Maybe you have another module
named common.py on your python search path, that predates the right one? What if
you rename common.py to quantum_common.py and fix the import statements?Also try running (i)python in the main sfepy directory, add
'examples/quantum/' directory to sys.path and 'import common' to see what is
actually imported.r.
I just tried quantum_common suggestion , worked.
OK. I am not sure how to prevent such name clashes in general -
maybe we should make examples/ a python package by adding __init__.py in every
subdir, and use fully qualified imports (from examples.quantum.common import common)?I guess this ambiguity is addressed in Python3, so let's just
rename the file for the moment. It is an easy fix - would you like to send a patch? :)r.
Don't know if I did this correctly but just doing git diff > foo seems to create a patch that looked ok to me. -osman
Hi Osman,
yes, 'git diff' produces a patch. I will apply it as soon as I get to
my computer (tomorrow).
If you want the patch to contain also the commit time and author
information, look at 'git format-patch', see [1].
thanks! r.
[1] http://docs.sfepy.org/doc-devel/developer_guide.html#how-to-contribute