Mayavi issue...

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Mayavi issue...

fred-2
Hi all,

I can't run mayavi anymore with last update from source.

Any help welcome.

TIA

Cheers,

--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi issue...

fred-2
Le 19/05/2011 10:36, Fred a écrit :
> Hi all,
>
> I can't run mayavi anymore with last update from source.
>
> Any help welcome.
Hi all,

I would really appreciate some help on this issue, since I'm stuck at it...

I can't use anymore new sources from trunk and so, I can't going back to
old issues I posted here... :-//

Or maybe the answer is obvious?


Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi issue...

Gael Varoquaux
On Sat, May 21, 2011 at 03:14:09PM +0200, Fred wrote:
> Le 19/05/2011 10:36, Fred a écrit :
> > Hi all,

> > I can't run mayavi anymore with last update from source.

> > Any help welcome.
> Hi all,

> I would really appreciate some help on this issue, since I'm stuck at it...

> I can't use anymore new sources from trunk and so, I can't going back to
> old issues I posted here... :-//

Do a clean install (make really sure that your different easy_install.pth
are clean). I suspect that the problem is due to leftover old code.

Gael
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi issue...

fred-2
Le 21/05/2011 15:48, Gael Varoquaux a écrit :

> Do a clean install (make really sure that your different easy_install.pth
> are clean). I suspect that the problem is due to leftover old code.
I always install after cleanel all stuff in install dir.

I have attached my easy-install.pth

Thx.

--
Fred

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev

easy-install.pth (744 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi issue...

Gael Varoquaux
On Sat, May 21, 2011 at 03:58:47PM +0200, Fred wrote:
> >Do a clean install (make really sure that your different easy_install.pth
> >are clean). I suspect that the problem is due to leftover old code.
> I always install after cleanel all stuff in install dir.

It works for me with the latest checkout and a clean install.

One difference that I can see between your system and mine, is that you
have an 'install', and I have a 'develop'. I don't have much time to
spend on diagnosing this issue, however, it might be a 'package_data'
problem. Could you check if the following change to the traits setup.py
file fixes the problem (I haven't even checked if it builds):

diff --git a/setup.py b/setup.py
index 2a4d704..760daca 100644
--- a/setup.py
+++ b/setup.py
@@ -102,7 +102,8 @@ setup(
                     version),
     ext_modules = [ctraits, speedups],
     include_package_data = True,
-    package_data = {'traits': ['protocols/_speedups.pyx']},
+    package_data = {'traits': ['protocols/_speedups.pyx',
+                               'logger/plugin/preferences.ini']},
     license = 'BSD',
     long_description = '\n'.join(DOCLINES[3:]),
     maintainer = 'ETS Developers',

Cheers,

Gael
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi issue...

fred-2
Le 21/05/2011 16:13, Gael Varoquaux a écrit :
> On Sat, May 21, 2011 at 03:58:47PM +0200, Fred wrote:
>>> Do a clean install (make really sure that your different easy_install.pth
>>> are clean). I suspect that the problem is due to leftover old code.
>> I always install after cleanel all stuff in install dir.
>
> It works for me with the latest checkout and a clean install.
>
> One difference that I can see between your system and mine, is that you
> have an 'install', and I have a 'develop'. I don't have much time to
That's ok.

I tried with develop, instead of install.

All works fine (my issue in my other message about Traits too) now.

So the issue comes from the "install".

> spend on diagnosing this issue, however, it might be a 'package_data'
> problem. Could you check if the following change to the traits setup.py
> file fixes the problem (I haven't even checked if it builds):
It builds but it does not fix the issue.

Thanks anyway, Gaël! :-)


I hope people @ Enthought will fix this ;-)



Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Mayavi issue...

Gael Varoquaux
On Sat, May 21, 2011 at 05:08:23PM +0200, Fred wrote:
> I tried with develop, instead of install.

> All works fine (my issue in my other message about Traits too) now.

> So the issue comes from the "install".

That's useful information.

> > spend on diagnosing this issue, however, it might be a 'package_data'
> > problem. Could you check if the following change to the traits setup.py
> > file fixes the problem (I haven't even checked if it builds):
> It builds but it does not fix the issue.

> Thanks anyway, Gaël! :-)

> I hope people @ Enthought will fix this ;-)

I am working on data processing with really long computation (~30mn to
debug). So I might find time to have a closer look during one of those
spare cycles.

Gael
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

ETS install problem (Was: Mayavi issue...)

Gael Varoquaux
On Sat, May 21, 2011 at 05:10:25PM +0200, Gael Varoquaux wrote:
> On Sat, May 21, 2011 at 05:08:23PM +0200, Fred wrote:
> > I tried with develop, instead of install.

> > All works fine (my issue in my other message about Traits too) now.

> > So the issue comes from the "install".

> That's useful information.

So, I installed rather than developped, ETS, and it seems to me that
quite a few things are broken. I get many errors in all sorts of
configurations, for instance when trying to start the mayavi2
application, but not only. For instance on opening a traits dialog with
the Wx backend, I get a long traceback ending by:

  File
"/home/varoquau/usr/lib/python2.6/site-packages/traitsui-3.6.1-py2.6.egg/traitsui/dock_window_theme.py",
line 92, in dock_window_theme
    from .default_dock_window_theme import default_dock_window_theme
  File
"/home/varoquau/usr/lib/python2.6/site-packages/traitsui-3.6.1-py2.6.egg/traitsui/default_dock_window_theme.py",
line 39, in <module>
    label = ( 0, -3 ), content = ( 7, 6, 0, 0 ) ),
  File
"/home/varoquau/usr/lib/python2.6/site-packages/traitsui-3.6.1-py2.6.egg/traitsui/theme.py",
line 63, in __init__
    self.image = image
  File
"/home/varoquau/usr/lib/python2.6/site-packages/traitsui-3.6.1-py2.6.egg/traitsui/ui_traits.py",
line 230, in validate
    self.error( object, name, value )
  File
"/home/varoquau/usr/lib/python2.6/site-packages/traits-3.7.0-py2.6-linux-i686.egg/traits/trait_handlers.py",
line 168, in error
    value )
traits.trait_errors.TraitError: The 'image' trait of a Theme instance
must be an ImageResource or string that can be used to define one, but a
value of '@std:tab_active' <type 'str'> was specified.

The issue seems quite larger than Mayavi. It would be great if someone
could have a deeper look into it.

Cheers,

Gaël
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS install problem (Was: Mayavi issue...)

fred-2
Le 23/05/2011 07:45, Gael Varoquaux a écrit :

> traits.trait_errors.TraitError: The 'image' trait of a Theme instance
> must be an ImageResource or string that can be used to define one, but a
> value of '@std:tab_active'<type 'str'>  was specified.
I mentionned this in an early post, yes, I get the same issue.

Thanks to emphasize this, Gaël!


Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS install problem (Was: Mayavi issue...)

Gael Varoquaux
On Mon, May 23, 2011 at 10:30:09AM +0200, Fred wrote:
> > traits.trait_errors.TraitError: The 'image' trait of a Theme instance
> > must be an ImageResource or string that can be used to define one, but a
> > value of '@std:tab_active'<type 'str'>  was specified.
> I mentionned this in an early post, yes, I get the same issue.

> Thanks to emphasize this, Gaël!

This seems to be fixed for me, now.

G
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS install problem (Was: Mayavi issue...)

fred-2
Le 20/07/2011 14:02, Gael Varoquaux a écrit :

> On Mon, May 23, 2011 at 10:30:09AM +0200, Fred wrote:
>>> traits.trait_errors.TraitError: The 'image' trait of a Theme instance
>>> must be an ImageResource or string that can be used to define one, but a
>>> value of '@std:tab_active'<type 'str'>   was specified.
>> I mentionned this in an early post, yes, I get the same issue.
>
>> Thanks to emphasize this, Gaël!
>
> This seems to be fixed for me, now.
>
> G
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>
Ok, thanks the info, Gaël.

I'm trying to get ETS source from scratch ("python ets.py clone"), and
get this:

.../...
Cloning package envisagecore
URL: https://github.com/enthought/envisagecore.git
Cloning into envisagecore...
fatal: https://github.com/enthought/envisagecore.git/info/refs not
found: did you run git update-server-info on the server?
Traceback (most recent call last):
   File "ets.py", line 148, in <module>
     main()
   File "ets.py", line 135, in main
     subprocess.check_call(['git', 'clone', pkg_url, ets_pkg_name])
   File "/usr/lib/python2.6/subprocess.py", line 488, in check_call
     raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['git', 'clone',
'https://github.com/enthought/envisagecore.git', 'envisagecore']'
returned non-zero exit status 128


Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS install problem (Was: Mayavi issue...)

Didrik Pinte-2
The envisagecore and envisageplugins are now in the envisage project.
You need to update your ets.py file and most probably delete the two
local directories.

Download the latest version of the file from here:

https://raw.github.com/enthought/ets/master/ets.py

-- Didrik

On Fri, Jul 22, 2011 at 10:04 AM, Fred <[hidden email]> wrote:

> Le 20/07/2011 14:02, Gael Varoquaux a écrit :
>> On Mon, May 23, 2011 at 10:30:09AM +0200, Fred wrote:
>>>> traits.trait_errors.TraitError: The 'image' trait of a Theme instance
>>>> must be an ImageResource or string that can be used to define one, but a
>>>> value of '@std:tab_active'<type 'str'>   was specified.
>>> I mentionned this in an early post, yes, I get the same issue.
>>
>>> Thanks to emphasize this, Gaël!
>>
>> This seems to be fixed for me, now.
>>
>> G
>> _______________________________________________
>> Enthought-Dev mailing list
>> [hidden email]
>> https://mail.enthought.com/mailman/listinfo/enthought-dev
>>
> Ok, thanks the info, Gaël.
>
> I'm trying to get ETS source from scratch ("python ets.py clone"), and
> get this:
>
> .../...
> Cloning package envisagecore
> URL: https://github.com/enthought/envisagecore.git
> Cloning into envisagecore...
> fatal: https://github.com/enthought/envisagecore.git/info/refs not
> found: did you run git update-server-info on the server?
> Traceback (most recent call last):
>   File "ets.py", line 148, in <module>
>     main()
>   File "ets.py", line 135, in main
>     subprocess.check_call(['git', 'clone', pkg_url, ets_pkg_name])
>   File "/usr/lib/python2.6/subprocess.py", line 488, in check_call
>     raise CalledProcessError(retcode, cmd)
> subprocess.CalledProcessError: Command '['git', 'clone',
> 'https://github.com/enthought/envisagecore.git', 'envisagecore']'
> returned non-zero exit status 128
>
>
> Cheers,
>
> --
> Fred
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>



--
Didrik Pinte                              +32 475 665 668
                                              +44 1223 969515
Enthought Europe                     [hidden email]
Scientific Computing Solutions   http://www.enthought.com
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: ETS install problem (Was: Mayavi issue...)

fred-2
Le 22/07/2011 10:53, Didrik Pinte a écrit :
> The envisagecore and envisageplugins are now in the envisage project.
> You need to update your ets.py file and most probably delete the two
> local directories.
Ok, thanks.

That does the trick.


Anyway, I get some issue building enable.

For instance, cff.c needs ft2build.h to be built, the one in
./kiva/agg/freetype2/include/ft2build.h, not the one in /usr/include.

But it gets first the one in /usr/include, which fails.

I have to remove /usr/include/ft2build.h to build enable successfully.


I hope I'm clear ;-)

Cheers,

--
Fred
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev