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'
Yes, this one works: from enthought.mayavi import version
But this is not the problem, I think... version can be imported. But LooseVersion instance has no attribute 'version'.
Regards, Sven
On Apr 16, 10:28 am, Robert Cimrman cimr...@ntc.zcu.cz wrote:
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'
On 04/16/2012 10:51 AM, kassbohm wrote:
Yes, this one works: from enthought.mayavi import version
But this is not the problem, I think... version can be imported. But LooseVersion instance has no attribute 'version'.
Regards, Sven
Sorry, I see now. Could you try adding
print pkg_name, have_version, version
into build_helpers.py, just before the line that fails (320)? I get the following output:
python setup.py build_ext --inplace numpy 1.5.1 1.3 scipy 0.9.0 0.7 matplotlib 1.0.1 0.99.0 pyparsing 1.5.2 1.5.0 tables 2.1.2 2.1.2 IPython 0.10.2 0.10.0 mayavi 4.0.0 3.3.0 sympy 0.6.7 0.6.7 cython 0.14.1 0.14.1 ...
It seems that somewhere you get None instead of the version string.
r.
On 04/16/2012 11:43 AM, Robert Cimrman wrote:
On 04/16/2012 10:51 AM, kassbohm wrote:
Yes, this one works: from enthought.mayavi import version
But this is not the problem, I think... version can be imported. But LooseVersion instance has no attribute 'version'.
Regards, Sven
Sorry, I see now. Could you try adding
print pkg_name, have_version, version
into build_helpers.py, just before the line that fails (320)? I get the following output:
python setup.py build_ext --inplace numpy 1.5.1 1.3 scipy 0.9.0 0.7 matplotlib 1.0.1 0.99.0 pyparsing 1.5.2 1.5.0 tables 2.1.2 2.1.2 IPython 0.10.2 0.10.0 mayavi 4.0.0 3.3.0 sympy 0.6.7 0.6.7 cython 0.14.1 0.14.1 ...
It seems that somewhere you get None instead of the version string.
And the only way I see a None is getting there is, that _mayavi_version() function in setup.py returns it. Could you check that as well? Or better, how to get the version string after "from enthought.mayavi import version"...
Thanks, r.
On 04/16/2012 11:48 AM, Robert Cimrman wrote:
On 04/16/2012 11:43 AM, Robert Cimrman wrote:
On 04/16/2012 10:51 AM, kassbohm wrote:
Yes, this one works: from enthought.mayavi import version
But this is not the problem, I think... version can be imported. But LooseVersion instance has no attribute 'version'.
Regards, Sven
Sorry, I see now. Could you try adding
print pkg_name, have_version, version
into build_helpers.py, just before the line that fails (320)? I get the following output:
python setup.py build_ext --inplace numpy 1.5.1 1.3 scipy 0.9.0 0.7 matplotlib 1.0.1 0.99.0 pyparsing 1.5.2 1.5.0 tables 2.1.2 2.1.2 IPython 0.10.2 0.10.0 mayavi 4.0.0 3.3.0 sympy 0.6.7 0.6.7 cython 0.14.1 0.14.1 ...
It seems that somewhere you get None instead of the version string.
And the only way I see a None is getting there is, that _mayavi_version() function in setup.py returns it. Could you check that as well? Or better, how to get the version string after "from enthought.mayavi import version"...
Further debugging with Sven revealed, that Mayavi provided an empty version string, which was messing up with LooseVersion of distutils. The workaround is now in the git master.
r.