Hi, just to tell you that even I have full usefullness of ETS-mayavi, I have just tried to make a test running Chaco's demo.py, and then, I can tell you that the problem I had when building Enable spkg had some unwanted consequences. Such Enable diagnose at the ending of Enable's building was: ______________________________________________________________________________________________ ... copying static files... done dumping search index... done dumping object inventory... done build succeeded. error: Setup script exited with error: SandboxViolation: os.open('/tmp/tmpEOJpoX/d3vJvv', 131266, 384) {}
The package setup script has attempted to modify files on your system that are not within the EasyInstall build area, and has been aborted. This package cannot be safely installed by EasyInstall, and may not support alternate installation locations even if you run its setup script by hand. Please inform the package's author and the EasyInstall maintainers to find out if a fix or workaround is available. --------------------------------------------------------------------------------------------------------------------------------- it seems to me that Traits is working well, but running the Chaco's demo complains with a message about some UnboundLocalError: local variable '_mod' referenced before assignment I have ran one of the examples (logo.py) in the demo separately, in order to see what the catch up is and I got the next message (I am sorry if this is an excessive detail): ____________________________________________________________________________________________________________ Traceback (most recent call last): File "/opt/sage/local/lib/python2.6/site-packages/ets-3.2.0-20090518/src/Chaco_3.1.0/examples/logo.py", line 6, in <module> from enthought.enable.api import ColorTrait File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/enable/api.py", line 8, in <module> from base import IDroppedOnHandler, TOP, VCENTER, BOTTOM, LEFT, HCENTER, RIGHT, \ File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/enable/base.py", line 36, in <module> from enthought.kiva import font_metrics_provider File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/__init__.py", line 115, in <module> elif not _try_backend(ETSConfig.toolkit): File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/__init__.py", line 66, in _try_backend mod = _dotted_import('backend_%s' % name) File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/__init__.py", line 54, in _dotted_import mod = __import__(name, globals(), locals(), []) File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/backend_wx.py", line 258, in <module> from backend_image import GraphicsContextSystem as GraphicsContext File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/backend_image.py", line 21, in <module> from agg import GraphicsContextArray as GraphicsContext File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/agg/__init__.py", line 22, in <module> from plat_support import PixelMap File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/agg/plat_support.py", line 25, in <module> _plat_support = swig_import_helper() File "/opt/sage/local/lib/python2.6/site-packages/Enable-3.1.0-py2.6-linux-x86_64.egg/enthought/kiva/agg/plat_support.py", line 24, in swig_import_helper return _mod UnboundLocalError: local variable '_mod' referenced before assignment -------------------------------------------------------------------------------------------------------------------------------------- So, now it's clear to me that something important was lost with that unaccepted setup command, could you suggest me any way to circumvent the EasyInstall problem to get a properly working Enable installation. Best regards, Jorge PS I have used swig-1.3.39 (installed at /user/local/bin) instead of swig-1.3.31.spkg because in that case Chaco's demo complains about two float variables (x, y in a plot) being double type which it cannot recognize (?). I don't know if the problem was originated also by the Enable's incomplete building, but changing the swig version that complaint does not appear again, although the problem is the one I am reporting at the upper lines. From: hnr...@hotmail.com To: sage-support@googlegroups.com Subject: [sage-support] ETS.spkg succesfully rebuilt Date: Sun, 9 Aug 2009 19:01:14 -0500 Hi William and Ondrej! It was not so easy as I would like but finally I succeeded rebuilding ETS, I have to overcome another three new issues: 1) swig.spkg had its path-library configured to: /opt/sage-3.4.1-linux-Ubuntu_8.10-sse2-x86_64-Linux/local/share/swig/1.3.31 I solve this changing the environment variable SWIG_LIB to /opt/sage/local/share/swig/1.3.31 2) With this all the programs in Enable were successfully built but an error message was sent about some unreachable path to Easyinstall: I have just continued ignoring it. 3) The ets spkg-install then didn't complaint any more finishing the rebuilt, but trying to run mayavi2, sage sent the message: file "/opt/sage/local/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 336 in <module> RESERVE_SPACE_EVEN_IF_HIDDEN = core_.RESERVE_SPACE_EVEN_IF_HIDDEN Attribute Error: 'module' object has no attribute 'RESERVE_SPACE_EVEN_IF_HIDDEN' So, I re-install wxPython and tested it running demo.py it ran fine. Then run again ets spkg-install and finally: testing mayavi2: everything worked wonderfully. So I am very gratefully with you for helping me with this problem. Sincerely Jorge > Alternatively, just do > > sage -python setup.py install > > in the Enable directory. It should work. > > Ondrej > ¿Quieres un regalo de cumpleaños? Messenger te lo da _________________________________________________________________ Messenger cumple 10 años y tiene regalos para ti www.aniversariomessenger.com.mx --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---