Trouble building TVTK Classes when building Mayavi2

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

Trouble building TVTK Classes when building Mayavi2

Glenn Tarbox, PhD

I put the full log of the build at:


Its a fresh pull of PyQt, VTK, and Qt as of a few hours ago being built in Sage 4.3.  From what I can tell, none of the other packages had trouble.

I did a search for renderer.py and got:

tarbox@glenn-desktop:$ find . -name renderer.py
./Enable/build/lib.linux-x86_64-2.6/enthought/savage/svg/backends/kiva/renderer.py
./Enable/build/lib.linux-x86_64-2.6/enthought/savage/svg/backends/wx/renderer.py
./Enable/enthought/savage/svg/backends/kiva/renderer.py
./Enable/enthought/savage/svg/backends/wx/renderer.py

I don't see anything which looks Qt-ish and wonder if that is the issue.

The failure is below:

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Building TVTK classes... SyntaxError: ('invalid syntax', ('tvtk_classes/renderer.py', 212, 10, '    pass = traits.Property(_get_pass, _set_pass, help=\\\n'))

error: tvtk_classes/renderer.pyc: No such file or directory
Traceback (most recent call last):
  File "/mnt/hdb/sage/4.3/t3/sage-4.3/local/bin/ets", line 8, in <module>
    load_entry_point('ETSProjectTools==0.6.0.dev-r25099', 'console_scripts', 'ets')()
  File "/mnt/hdb/sage/4.3/t3/sage-4.3/local/lib/python2.6/site-packages/ETSProjectTools-0.6.0.dev_r25099-py2.6.egg/enthought/ets/ets.py", line 155, in main
    args.func(args, cfg)
  File "/mnt/hdb/sage/4.3/t3/sage-4.3/local/lib/python2.6/site-packages/ETSProjectTools-0.6.0.dev_r25099-py2.6.egg/enthought/ets/install.py", line 81, in main
    checkouts.perform(command, dry_run=args.dry_run)
  File "/mnt/hdb/sage/4.3/t3/sage-4.3/local/lib/python2.6/site-packages/ETSProjectTools-0.6.0.dev_r25099-py2.6.egg/enthought/ets/tools/checkouts.py", line 126, in perform
    '%s' % project)
RuntimeError: Unable to complete command for project: /mnt/hdb/sage/4.3/t3/sage-4.3/tarbox/ets/ETS_3.3.1/Mayavi

-glenn

--
Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp || ghtdak - aim,jabber,IRC,yahoo


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

Re: Trouble building TVTK Classes when building Mayavi2

Gael Varoquaux
On Tue, Jan 12, 2010 at 11:51:06PM -0800, Glenn Tarbox, PhD wrote:
>    Building TVTK classes... SyntaxError: ('invalid syntax',
>    ('tvtk_classes/renderer.py', 212, 10, ' � �pass =
>    traits.Property(_get_pass, _set_pass, help=\\\n'))
>    error: tvtk_classes/renderer.pyc: No such file or directory

The error is there. You can find renderer.py by unziping tvtk_classes.zip
in enthought/tvtk (if it did build at all). You can reproduce the problem
by simply running 'gen_tvtk_classes_zip()' from enthought.tvtk.setup .

I suspect that the problem is due to a bug in the code generation logic
for yor spectific VTK version. Could you give the exact VTK version,
please. Also, have the content of the renderer.py file would help
(although I think I can see the problem).

I have an important deadline. I am not going to be able to look at that
immediatly.

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: Trouble building TVTK Classes when building Mayavi2

Glenn Tarbox, PhD


On Wed, Jan 13, 2010 at 12:10 AM, Gael Varoquaux <[hidden email]> wrote:
On Tue, Jan 12, 2010 at 11:51:06PM -0800, Glenn Tarbox, PhD wrote:
>    Building TVTK classes... SyntaxError: ('invalid syntax',
>    ('tvtk_classes/renderer.py', 212, 10, '    pass =
>    traits.Property(_get_pass, _set_pass, help=\\\n'))
>    error: tvtk_classes/renderer.pyc: No such file or directory

The error is there. You can find renderer.py by unziping tvtk_classes.zip
in enthought/tvtk (if it did build at all).

It didn't build... 
 
You can reproduce the problem
by simply running 'gen_tvtk_classes_zip()' from enthought.tvtk.setup .

Yup, error reproduces.
 

I suspect that the problem is due to a bug in the code generation logic
for yor spectific VTK version. Could you give the exact VTK version,
please.

I pulled the latest from CVS a few hours ago which was close to 2010-01-12 20:41

Not knowing much about CVS (very intentional :-) the simplest thing I could think of was to do a cvs log... which spewed a massive amount of stuff.  bzipped it wasn't so bad so I posted it at:


It looks like the version info is in the beginning

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

RCS file: /cvsroot/VTK/VTK/CMakeLists.txt,v
Working file: CMakeLists.txt
head: 1.533
branch:
locks: strict
access list:
symbolic names:
ParaView-3-6-2: 1.505
ParaView-3-6-2-rc3: 1.505
ParaView-Branding-pre: 1.519
ParaView-3-6-2-rc2: 1.505
ParaView-3-6-2-rc1: 1.505
KWAC1A: 1.529
ParaView-3-6-1: 1.505
ParaView-3-6-0: 1.505
VTK-5-4-2: 1.490.2.3
VTK-5-4-2-rc3: 1.490.2.2
VTK-5-4-2-rc2: 1.490.2.2
VTK-5-4-2-rc1: 1.490.2.1
VTK-5-4-1: 1.490.2.1
ParaView-3-6: 1.505.0.2
ParaView-3-6-bp: 1.505
VTK-5-4-1-rc1: 1.490.2.1
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Looking at some of the cmake files, it "looks" like it wants to say 5.5.0 but I'm not really sure how VTK is organized.
 
Also, have the content of the renderer.py file would help
(although I think I can see the problem).

Since the zip didn't build, I guess I can't get you the renderer.py file


I have an important deadline. I am not going to be able to look at that
immediatly.

Understood.  Thanks for the help when you get to it.

-glenn
 

Gaël

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




--
Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp || ghtdak - aim,jabber,IRC,yahoo


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

Re: Trouble building TVTK Classes when building Mayavi2

Gael Varoquaux
On Wed, Jan 13, 2010 at 12:56:50AM -0800, Glenn Tarbox, PhD wrote:
>      Also, have the content of the renderer.py file would help
>      (although I think I can see the problem).

>    Since the zip didn't build, I guess I can't get you the renderer.py file

Insn't there a temporary directory, called 'tvtk_classes' where you can
find the file?

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: Trouble building TVTK Classes when building Mayavi2

Glenn Tarbox, PhD


On Wed, Jan 13, 2010 at 1:19 AM, Gael Varoquaux <[hidden email]> wrote:
On Wed, Jan 13, 2010 at 12:56:50AM -0800, Glenn Tarbox, PhD wrote:
>      Also, have the content of the renderer.py file would help
>      (although I think I can see the problem).

>    Since the zip didn't build, I guess I can't get you the renderer.py file

Insn't there a temporary directory, called 'tvtk_classes' where you can
find the file?

Not that I see.  The ETS_3.3.1 directory tree after the build is in:


On the off chance it would be useful, I put the full build (124MB) up at:


-glenn


Gaël

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




--
Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp || ghtdak - aim,jabber,IRC,yahoo


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

Re: Trouble building TVTK Classes when building Mayavi2

Glenn Tarbox, PhD
I did a little more hunting around tonight.

The current CVS VTK version built successfully with Mayavi2 on 12/31/09.  The last VTK CVS checkin was 12/21/09 as revision 1.533.  This means the problem isn't VTK per se.

The experiment is confounded as it includes an updated Qt and PyQt .  I guess I could roll back everything to 12/31/09 and just check ETS if thats useful... Or does this make it more likely to be something in ETS?

-glenn

On Wed, Jan 13, 2010 at 8:26 AM, Glenn Tarbox, PhD <[hidden email]> wrote:


On Wed, Jan 13, 2010 at 1:19 AM, Gael Varoquaux <[hidden email]> wrote:
On Wed, Jan 13, 2010 at 12:56:50AM -0800, Glenn Tarbox, PhD wrote:
>      Also, have the content of the renderer.py file would help
>      (although I think I can see the problem).

>    Since the zip didn't build, I guess I can't get you the renderer.py file

Insn't there a temporary directory, called 'tvtk_classes' where you can
find the file?

Not that I see.  The ETS_3.3.1 directory tree after the build is in:


On the off chance it would be useful, I put the full build (124MB) up at:


-glenn


Gaël

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




--
Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp || ghtdak - aim,jabber,IRC,yahoo




--
Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp || ghtdak - aim,jabber,IRC,yahoo


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

Re: Trouble building TVTK Classes when building Mayavi2

Thorben Kröger
On Monday 18 January 2010 06:21:41 Glenn Tarbox, PhD wrote:
> I did a little more hunting around tonight.
>
> The current CVS VTK version built successfully with Mayavi2 on 12/31/09.
>  The last VTK CVS checkin was 12/21/09 as revision 1.533.  This means the
> problem isn't VTK per se.
>
> The experiment is confounded as it includes an updated Qt and PyQt .  I
> guess I could roll back everything to 12/31/09 and just check ETS if thats
> useful... Or does this make it more likely to be something in ETS?

I also have the same problem:

python2.6 setup.py build                                                                                                                                                                                            
zip_safe flag not set; analyzing archive contents...                                                                                                                                                                
setupdocs.setupdocs: module references __file__                                                                                                                                                                      

Installed /var/tmp/portage/sci-
visualization/mayavi-9999/work/Mayavi-9999/SetupDocs-1.0.3-py2.6.egg
running build                                                                                      
----------------------------------------------------------------------                            
Building TVTK classes... SyntaxError: ('invalid syntax',
('tvtk_classes/renderer.py', 212, 10, '    pass = traits.Property(_get_pass,
_set_pass, help=\\\n'))

error: tvtk_classes/renderer.pyc: No such file or directory

------

This is with svn version of vtk from today, and EnthoughtBase, EnvisageCore,
EnvisagePlugins, TraitsGui, Traits also pulled from SVN today which built
fine...

I have not found a solution yet :-(

Thorben

>
> -glenn
>
> On Wed, Jan 13, 2010 at 8:26 AM, Glenn Tarbox, PhD <[hidden email]> wrote:
> > On Wed, Jan 13, 2010 at 1:19 AM, Gael Varoquaux <
> >
> > [hidden email]> wrote:
> >> On Wed, Jan 13, 2010 at 12:56:50AM -0800, Glenn Tarbox, PhD wrote:
> >> >      Also, have the content of the renderer.py file would help
> >> >      (although I think I can see the problem).
> >> >    
> >> >    Since the zip didn't build, I guess I can't get you the renderer.py
> >>
> >> file
> >>
> >> Insn't there a temporary directory, called 'tvtk_classes' where you can
> >> find the file?
> >
> > Not that I see.  The ETS_3.3.1 directory tree after the build is in:
> >
> > http://hq3.tarbox.org/enthought/etstree.txt.bz2
> >
> > On the off chance it would be useful, I put the full build (124MB) up at:
> >
> > http://hq3.tarbox.org/enthought/ets.tar.bz2
> >
> > -glenn
> >
> >> Gaël
> >>
> >> _______________________________________________
> >> Enthought-Dev mailing list
> >> [hidden email]
> >> https://mail.enthought.com/mailman/listinfo/enthought-dev
> >
> > --
> > Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp ||
> > ghtdak - aim,jabber,IRC,yahoo
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Enthought-Dev] Trouble building TVTK Classes when building Mayavi2

Thorben Kröger
In reply to this post by Glenn Tarbox, PhD
On Monday 18 January 2010 06:21:41 Glenn Tarbox, PhD wrote:
> I did a little more hunting around tonight.
>
> The current CVS VTK version built successfully with Mayavi2 on 12/31/09.
>  The last VTK CVS checkin was 12/21/09 as revision 1.533.  This means the
> problem isn't VTK per se.

Hmm, I tried using the lastest CVS VTK, and Mayavi from yesterday as well as
the revisions 25039 and 24970 and all of them fail to build with the message
error: tvtk_classes/renderer.pyc: No such file or directory

Thorben

>
> The experiment is confounded as it includes an updated Qt and PyQt .  I
> guess I could roll back everything to 12/31/09 and just check ETS if thats
> useful... Or does this make it more likely to be something in ETS?
>
> -glenn
>
> On Wed, Jan 13, 2010 at 8:26 AM, Glenn Tarbox, PhD <[hidden email]> wrote:
> > On Wed, Jan 13, 2010 at 1:19 AM, Gael Varoquaux <
> >
> > [hidden email]> wrote:
> >> On Wed, Jan 13, 2010 at 12:56:50AM -0800, Glenn Tarbox, PhD wrote:
> >> >      Also, have the content of the renderer.py file would help
> >> >      (although I think I can see the problem).
> >> >    
> >> >    Since the zip didn't build, I guess I can't get you the renderer.py
> >>
> >> file
> >>
> >> Insn't there a temporary directory, called 'tvtk_classes' where you can
> >> find the file?
> >
> > Not that I see.  The ETS_3.3.1 directory tree after the build is in:
> >
> > http://hq3.tarbox.org/enthought/etstree.txt.bz2
> >
> > On the off chance it would be useful, I put the full build (124MB) up at:
> >
> > http://hq3.tarbox.org/enthought/ets.tar.bz2
> >
> > -glenn
> >
> >> Gaël
> >>
> >> _______________________________________________
> >> Enthought-Dev mailing list
> >> [hidden email]
> >> https://mail.enthought.com/mailman/listinfo/enthought-dev
> >
> > --
> > Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp ||
> > ghtdak - aim,jabber,IRC,yahoo
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: [Enthought-Dev] Trouble building TVTK Classes when building Mayavi2

Thorben Kröger
I attatch the failing file...

thorben@thinkpad ~/tmp/mayavi-svn/enthought/tvtk $ python code_gen.py
out_dir= /tmp/tmp2bUeTg
SyntaxError: ('EOL while scanning string literal',
('tvtk_classes/delimited_text_reader.py', 105, 45, '    utf8_record_delimiters
= traits.String(r"\n'))

Traceback (most recent call last):
  File "code_gen.py", line 238, in <module>
    main()
  File "code_gen.py", line 231, in main
    gen.build_zip(options.src)
  File "code_gen.py", line 159, in build_zip
    z.writepy('tvtk_classes')
  File "/usr/lib64/python2.6/zipfile.py", line 1278, in writepy
    self.write(fname, arcname)
  File "/usr/lib64/python2.6/zipfile.py", line 1004, in write
    st = os.stat(filename)
OSError: [Errno 2] No such file or directory:
'tvtk_classes/delimited_text_reader.pyc'


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

delimited_text_reader.py (11K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Enthought-Dev] Trouble building TVTK Classes when building Mayavi2

Glenn Tarbox, PhD
Now I'm not so sure where the problem lies.  I built a new version of everything... including the new sage 4.3.1... new Qt, PyQt and the version of VTK I've been using which appears to have been static for a while...

I yanked an older directory with the Enthought suite from a version which correctly compiled into this new build (instead of using svn to get to the older version... since I have forgotten svn and don't want to re-remember it :-)

And I have the same error... So, to sum up, the VTK version I'm using was part of a successful ETS build previously as was the ETS code (by definition).  Whats different is Sage in this case, but I don't think thats the issue... and newer versions of Qt and PyQt

I'm wondering if the problem might lie in PyQt somewhere.  I don't actually know if VTK uses PyQt... I know it uses Python and Qt but I haven't dug...

I'm a bit surprised. I figured the old version of the Mayavi2 code would just compile...  

-glenn

On Wed, Jan 20, 2010 at 1:15 AM, Thorben Kröger <[hidden email]> wrote:
I attatch the failing file...

thorben@thinkpad ~/tmp/mayavi-svn/enthought/tvtk $ python code_gen.py
out_dir= /tmp/tmp2bUeTg
SyntaxError: ('EOL while scanning string literal',
('tvtk_classes/delimited_text_reader.py', 105, 45, '    utf8_record_delimiters
= traits.String(r"\n'))

Traceback (most recent call last):
 File "code_gen.py", line 238, in <module>
   main()
 File "code_gen.py", line 231, in main
   gen.build_zip(options.src)
 File "code_gen.py", line 159, in build_zip
   z.writepy('tvtk_classes')
 File "/usr/lib64/python2.6/zipfile.py", line 1278, in writepy
   self.write(fname, arcname)
 File "/usr/lib64/python2.6/zipfile.py", line 1004, in write
   st = os.stat(filename)
OSError: [Errno 2] No such file or directory:
'tvtk_classes/delimited_text_reader.pyc'


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




--
Glenn H. Tarbox, PhD ||  206-274-6919 || [hidden email] - xmpp || ghtdak - aim,jabber,IRC,yahoo


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

Re: [Enthought-Dev] Trouble building TVTK Classes when building Mayavi2

Prabhu Ramachandran-3
Glenn Tarbox, PhD wrote:

> Now I'm not so sure where the problem lies.  I built a new version of
> everything... including the new sage 4.3.1... new Qt, PyQt and the
> version of VTK I've been using which appears to have been static for a
> while...
>
> I yanked an older directory with the Enthought suite from a version
> which correctly compiled into this new build (instead of using svn to
> get to the older version... since I have forgotten svn and don't want to
> re-remember it :-)
>
> And I have the same error... So, to sum up, the VTK version I'm using
> was part of a successful ETS build previously as was the ETS code (by
> definition).  Whats different is Sage in this case, but I don't think
> thats the issue... and newer versions of Qt and PyQt
>
> I'm wondering if the problem might lie in PyQt somewhere.  I don't
> actually know if VTK uses PyQt... I know it uses Python and Qt but I
> haven't dug...
>
> I'm a bit surprised. I figured the old version of the Mayavi2 code would
> just compile...  

Please hang in there.  I am planning on looking at this tomorrow.  Sorry
for the delay thus far though.

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

Re: [Enthought-Dev] Trouble building TVTK Classes when building Mayavi2

Gael Varoquaux
In reply to this post by Glenn Tarbox, PhD
On Thu, Jan 21, 2010 at 10:44:57PM -0800, Glenn Tarbox, PhD wrote:
>    Now I'm not so sure where the problem lies. �I built a new version of
>    everything... including the new sage 4.3.1... new Qt, PyQt and the version
>    of VTK I've been using which appears to have been static for a while...
>    I yanked an older directory with the Enthought suite from a version which
>    correctly compiled into this new build (instead of using svn to get to the
>    older version... since I have forgotten svn and don't want to re-remember
>    it :-)

Hey Guys,

I hear you. I just have a pretty bad schedule currently, trying to catch
some deadlines.

>    And I have the same error... So, to sum up, the VTK version I'm using was
>    part of a successful ETS build previously as was the ETS code (by
>    definition). �Whats different is Sage in this case, but I don't think
>    thats the issue... and newer versions of Qt and PyQt
>    I'm wondering if the problem might lie in PyQt somewhere. �I don't
>    actually know if VTK uses PyQt... I know it uses Python and Qt but I
>    haven't dug...

I am very surprised that they are any interaction. TVTK certainly doesn't
import any toolkit code during the build.

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: Trouble building TVTK Classes when building Mayavi2

Prabhu Ramachandran-3
In reply to this post by Glenn Tarbox, PhD
Hi Glenn,

Glenn Tarbox, PhD wrote:
[...]

> tarbox@glenn-desktop:$ find . -name renderer.py
> ./Enable/build/lib.linux-x86_64-2.6/enthought/savage/svg/backends/kiva/renderer.py
> ./Enable/build/lib.linux-x86_64-2.6/enthought/savage/svg/backends/wx/renderer.py
> ./Enable/enthought/savage/svg/backends/kiva/renderer.py
> ./Enable/enthought/savage/svg/backends/wx/renderer.py
>
> I don't see anything which looks Qt-ish and wonder if that is the issue.
>
> The failure is below:
>
>  >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
>
> Building TVTK classes... SyntaxError: ('invalid syntax',
> ('tvtk_classes/renderer.py', 212, 10, '    pass =
> traits.Property(_get_pass, _set_pass, help=\\\n'))

Sorry I took so long but the problem in this case was that the trait
name generated was a Python keyword ("pass" in this case). I've
hopefully worked around the problem and checked in a fix into SVN.  I
don't have the time to track VTK from CVS at the moment so haven't
tested that my fix actually works around the problem for you.  Can you
please update from SVN and let us know if it does fix the problem or not?

Thanks.
cheers,
prabhu

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