Hi Sven,
Does any of these work:
from enthought.mayavi import version
or
from mayavi import version
I have mayavi 4.0.0, where the latter works. In 3.* versions, the former way worked, but you may have something older. Note this is the mayavi version, not VTK. Anyway, mayavi is not a hard dependency, so you should be able run sfepy without it, or with older version.
r.
On 04/16/2012 06:48 AM, KASSBOHM wrote:
Hello Robert,
Mayavi version - VTK version 5.4.2 Python 2.7.1+ wxPython 2.8.11.0
Linux thnkpd 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:02:55 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Thanks for your help. Sven
On Sun, 15 Apr 2012, Robert Cimrman wrote:
What is your system and mayavi version? Is mayavi installed? Anyway, thanks for creating the issue, it looks like a bug in setup.
In the meantime, you can try commenting out the mayavi version check in setup.py, around line 110.
r.
----- Reply message ----- From: "kassbohm" kass...@gmail.com To: "sfepy-devel" sfepy...@googlegroups.com Subject: Trying Installation... AttributeError: LooseVersion instance has no attribute 'version' Date: Sun, Apr 15, 2012 14:43
Sorry, I also posted this question here: https://github.com/sfepy/sfepy/issues/180
Getting the following error during installation. How do I fix this?
$ python setup.py buildext --inplace Traceback (most recent call last): File "setup.py", line 112, in version_getter=_mayavi_version) File "/home/kassbohm/SFePy_Install/sfepy-2012.1/build_helpers.py", line 320, in package_check if checker(have_version) < checker(version): File "/usr/lib/python2.7/distutils/version.py", line 296, in __cmp_ return cmp(self.version, other.version) AttributeError: LooseVersion instance has no attribute 'version'