Hi David,
the warning comes from the fact that d_diffusion_sa term was renamed to d_sd_diffusion during a term clean-up recently, and a file called terms_acoustic.py was completely removed.
Your build log seems perfectly ok. The fact that you do not see the warning when working in-place suggests, that you have the old terms_acoustic.py somewhere in the system-wide site-packages (c:\users\default.default-pc\anaconda2\lib\site-packages\sfepy....) - try searching for that file and remove it.
r.
On 05/20/2016 06:31 PM, David Brough wrote:
HI Robert,
I don't get the warning after building in place, only after install. I haven't tried the tutorials, but I do get the warning after running this <https://github.com/materialsinnovation/pymks/blob/master/pymks/datasets/elastic_FE_simulation.py> simulation.
Thanks,
David
On Thursday, May 19, 2016 at 2:16:29 PM UTC-4, David Brough wrote:
Hi Robert,
Here is the log.
Thanks,
David
On Thursday, May 19, 2016 at 2:02:55 PM UTC-4, Robert Cimrman wrote:
OK - there could be a problem with the d_diffusion_sa term (it has been changed recently). Do the interactive examples work (like the one in the tutorial)? Do you get the same error when building in place?
Could you run
python setup.py clean
, thenpython setup.py install > build-log.txt 2>&1
and then send me the build-log.txt?Thanks for debugging! r.
On 05/19/2016 06:11 PM, David Brough wrote:
Hi Robert,
I ran
python setup.py clean
removed all of the sfepy installations in C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\ , upgraded numpy to 0.10.4 ran the following
python setup.py install
I no longer get an error, but I get a warning.
Thanks,
David
Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information.
IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details.
In [1]: import sfepy
In [2]: from sfepy import discrete sfepy: WARNING: module
C:\Users\Default.Default-PC\Anaconda2\lib\site-packages\sfepy-2016.1_git_ec8f05440577a054f5d139251f8f997703f72b23-py2.7-win-amd64.egg\sfepy\terms\terms_acoustic.py
cannot be imported! sfepy: reason: 'module' object has no attribute 'd_diffusion_sa'