Hi Peter,

Thanks for pointing out the dependencies, I will fix the docs accordingly.

The error is caused by einsum() being added to numpy rather recently. (Btw. it is a very cool function able to express any tensor multiplication). I have already made the test to be skipped if it is not available in my private repo, will push it to master soon.

Best regards,
r.

----- Reply message -----
From: "Peter M. Clausen" <petermic...@googlemail.com>
To: <sfep...@googlegroups.com>
Subject: Install sfepy on Ubuntu 11.10
Date: Sun, Nov 6, 2011 01:16


Hi

Just playing with Ubuntu 11.10 and SfePy 2011.3 (from git: git clone git://github.com/sfepy/sfepy.git) and found missing dependencies. I think the full list for ubuntu should be:

sudo apt-get install python-tables python-pyparsing python-matplotlib python-scipy  mayavi2 python-dev ipython python-sympy cython

Almost all tests pass except:
+++ test_transform_data: ok
>>> <type 'exceptions.AttributeError'>
Traceback (most recent call last):
  File "./runTests.py", line 225, in <module>
    main()
  File "./runTests.py", line 219, in main
    op.walk( options.test_dir, run_tests, stats )
  File "/usr/lib/python2.7/posixpath.py", line 229, in walk
    func(arg, top, names)
  File "./runTests.py", line 148, in run_tests
    n_fail, n_total, test_time = run_test( conf_name, options )
  File "./runTests.py", line 111, in run_test
    ok, n_fail, n_total = test.run( options.debug )
  File "/opt/sfepy/sfepy/sfepy/base/testing.py", line 65, in run
    ret = test_method()
  File "tests/test_tensors.py", line 137, in test_transform_data4
    do = tn.transform_data(dr[None, ...], mtx=mtx[None, ...])
  File "/opt/sfepy/sfepy/sfepy/mechanics/tensors.py", line 256, in transform_data
    tdf = nm.einsum('apqrs,aip,ajq,akr,als->aijkl',
AttributeError: 'module' object has no attribute 'einsum'

I'm not quite sure why...

Best regards

Peter

--
You received this message because you are subscribed to the Google Groups "sfepy-devel" group.
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.