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.