Problem with PSPP on ubuntu 9.10 64bits

View: New views
10 Messages — Rating Filter:   Alert me  

Problem with PSPP on ubuntu 9.10 64bits

by Michel Boaventura-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I'm testing master branch on my ubuntu 9.10 64bits, but I'm having some
trouble.

I can compile it without any problem, but when I run it, I got this error:

** (psppire:2076): CRITICAL **: Couldnt open user interface  file
/usr/local/share/pspp/psppire.ui:
Object Id "scrolledwindow1" duplicated on line 210 (before on line 49)

** (psppire:2076): CRITICAL **: Object "compute-variable-dialog" could not
be found

Any ideas?

Michel


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Re: Problem with PSPP on ubuntu 9.10 64bits

by Ben Pfaff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

michel <michel@...> writes:

> ** (psppire:2076): CRITICAL **: Couldnt open user interface  file
> /usr/local/share/pspp/psppire.ui:

Usually when I see this it means that I forgot to run "make
install".
--
Peter Seebach on managing engineers:
"It's like herding cats, only most of the engineers are already
 sick of laser pointers."


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Re: Problem with PSPP on ubuntu 9.10 64bits

by Michel Boaventura-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I did run "make install". This file is there. I guess it couldn't be
opened because of the previous error.
If I open the file, and change the "scrolledwindow1" to "whatevar" it
complains about another duplicated id,
and if I change the other, I get an third duplication...

I forgot to tell, I'm using gtk 2.18.


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Re: Problem with PSPP on ubuntu 9.10 64bits

by John Darrington-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It's possible that this is a result of a problem converting from .glade to .ui
Currently we're using an imported script lib/gtk-contrib/gtk-builder-convert
from a previous Gtk+ release.  Perhaps the time is right to update it.

Eventually, I want to get rid of .glade files completely, but I'm not sure how
far Glade-3 has got with direct reading-writing of .ui files.

Michael: perhaps you could experiment with updating gtk-builder-convert ?

J'

On Tue, Sep 29, 2009 at 01:01:34AM -0300, michel wrote:
     
     I did run "make install". This file is there. I guess it couldn't be
     opened because of the previous error.
     If I open the file, and change the "scrolledwindow1" to "whatevar" it
     complains about another duplicated id,
     and if I change the other, I get an third duplication...
     
     I forgot to tell, I'm using gtk 2.18.
     
     
     _______________________________________________
     pspp-dev mailing list
     pspp-dev@...
     http://lists.gnu.org/mailman/listinfo/pspp-dev

--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.




_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

signature.asc (196 bytes) Download Attachment

Re: Problem with PSPP on ubuntu 9.10 64bits

by Michel Boaventura-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I start to use the newest gtk-builder-convert, but the only difference is
that now
it complains about duplicated ids, and the problem remains.

It's also strange because it complains even with no duplicated ids. It
says that
the above code has duplicated ids, but it doesn't.

<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
<!DOCTYPE glade-interface SYSTEM "http://glade.gnome.org/glade-2.0.dtd">

<glade-interface>
        <widget class="GtkMenuBar" id="menubar2">
          <property name="visible">True</property>
          <property
name="pack_direction">GTK_PACK_DIRECTION_LTR</property>
          <property
name="child_pack_direction">GTK_PACK_DIRECTION_LTR</property>

          <child>
            <widget class="GtkMenuItem" id="menu_syntax_file">
              <property name="visible">True</property>
              <property name="label" translatable="yes">_File</property>
              <property name="use_underline">True</property>
            </widget>
            </child>
        </widget>
</glade-interface>


John, what we need to get rid of it, and start to use only gtk-builder?

Michel


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Re: Problem with PSPP on ubuntu 9.10 64bits

by Ben Pfaff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

michel <michel@...> writes:

> It's also strange because it complains even with no duplicated ids. It
> says that
> the above code has duplicated ids, but it doesn't.

Yes, I found out a few days ago that this has been filed as a
GTK+ bug:
        http://bugzilla.gnome.org/show_bug.cgi?id=574520

I am told that the latest release of glade-3 can work with proper
.ui files directly, without the need for gtk-builder-convert.
The only barrier there is that we need to ensure that the PSPP
developers have ready access to that version of glade-3.  John,
do you?  I have it installed here now.
--
"GNU does not eliminate all the world's problems,
 only some of them."
--Richard Stallman


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Reading Gtk-Builder files: [was Re: Problem with PSPP on ubuntu 9.10 64bits]

by John Darrington-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Oct 06, 2009 at 09:30:34PM -0700, Ben Pfaff wrote:
     michel <michel@...> writes:
     
     > It's also strange because it complains even with no duplicated ids. It
     > says that
     > the above code has duplicated ids, but it doesn't.
     
     Yes, I found out a few days ago that this has been filed as a
     GTK+ bug:
             http://bugzilla.gnome.org/show_bug.cgi?id=574520
     
     I am told that the latest release of glade-3 can work with proper
     .ui files directly, without the need for gtk-builder-convert.
     The only barrier there is that we need to ensure that the PSPP
     developers have ready access to that version of glade-3.  John,
     do you?  I have it installed here now.

I installed it last night and had a quick play around with it.   There are
a number of things we will need to check before we can dispense completely
with .glade files:

1.  I don't know if the new glade version works properly with all the custom
    widgets that we have.  Such as psppire-keypad psppire-dictview etc.

2.  Last time I checked, xgettext was incapable of extracting the translatable
    strings from .ui files.  If we don't get that working, then half of the
    GUI won't get translated.

J'

--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.




_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

signature.asc (196 bytes) Download Attachment

Re: Reading Gtk-Builder files:

by Ben Pfaff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John Darrington <john@...> writes:

> 1.  I don't know if the new glade version works properly with all the custom
>     widgets that we have.  Such as psppire-keypad psppire-dictview etc.

OK, I guess we'll have to test that.

> 2.  Last time I checked, xgettext was incapable of extracting the translatable
>     strings from .ui files.  If we don't get that working, then half of the
>     GUI won't get translated.

Just now I tried "xgettext --output=- --language=glade
src/ui/gui/crosstabs.ui" and the output looked very similar to
that of "xgettext --output=- src/ui/gui/crosstabs.glade".  So I
think that xgettext will work OK, since the UI format is similar
enough to the Glade format, but it needs to be told that they are
Glade files.
--
"I don't want to learn the constitution and the declaration of
 independence (marvelous poetry though it be) by heart, and worship the
 flag and believe that there is a god and the dollar is its prophet."
--Maarten Wiltink in the Monastery


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Re: Reading Gtk-Builder files:

by Ben Pfaff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ben Pfaff <blp@...> writes:

> John Darrington <john@...> writes:
>
>> 1.  I don't know if the new glade version works properly with all the custom
>>     widgets that we have.  Such as psppire-keypad psppire-dictview etc.
>
> OK, I guess we'll have to test that.

I did a few experiments tonight:

        * The Glade integration seems to work fine with Glade
          3.6.7, except that PSPP's "make install" installed the
          PSPPIRE widget icons under the wrong directory and with
          the wrong names.  Once I moved them and renamed them,
          Glade showed the icons (and the widgets) fine.

        * Glade seems OK at converting .glade files into .ui
          files, by using File|Open to open the .glade file and
          then File|Save As to save the corresponding .ui file.

        * Some of the output .ui files still caused libglade
          failures (and typically segfaults) at runtime because
          the Glade program doesn't care about duplicate ids but
          libglade refuses to load files with duplicate ids, so I
          spent quite a bit of time eliminating duplicates by
          hand.

        * The Compute dialog box makes the Glade program
          segfault.  I ended up having to just delete it.  I
          don't know why Glade doesn't like it.

        * The GtkBuilder output produced by Glade 3.6.7 seemed to
          work just fine at runtime, as long as there were no
          duplicate IDs.

All in all the idea of switching to .ui files in the source tree
seems fairly feasible.  Perhaps we can do it a few files at a
time if necessary.  This might also be a good time to break
psppire.glade into multiple files.
--
"To the engineer, the world is a toy box full of sub-optimized and
 feature-poor toys."
--Scott Adams


_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

Re: Reading Gtk-Builder files:

by John Darrington-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I also did some experiments and got similar results.  I think there
may be some C code changes necessary, to  undo some work-arounds that
were previously necessary.    

But I agree that a piecemeal transition to a .glade-less source tree
is probably the best approach.   And yes, psppire.glade could certainly
do with being subdivided.

J'

On Wed, Oct 07, 2009 at 09:33:34PM -0700, Ben Pfaff wrote:
     Ben Pfaff <blp@...> writes:
     
     > John Darrington <john@...> writes:
     >
     >> 1.  I don't know if the new glade version works properly with all the custom
     >>     widgets that we have.  Such as psppire-keypad psppire-dictview etc.
     >
     > OK, I guess we'll have to test that.
     
     I did a few experiments tonight:
     
             * The Glade integration seems to work fine with Glade
               3.6.7, except that PSPP's "make install" installed the
               PSPPIRE widget icons under the wrong directory and with
               the wrong names.  Once I moved them and renamed them,
               Glade showed the icons (and the widgets) fine.
     
             * Glade seems OK at converting .glade files into .ui
               files, by using File|Open to open the .glade file and
               then File|Save As to save the corresponding .ui file.
     
             * Some of the output .ui files still caused libglade
               failures (and typically segfaults) at runtime because
               the Glade program doesn't care about duplicate ids but
               libglade refuses to load files with duplicate ids, so I
               spent quite a bit of time eliminating duplicates by
               hand.
     
             * The Compute dialog box makes the Glade program
               segfault.  I ended up having to just delete it.  I
               don't know why Glade doesn't like it.
     
             * The GtkBuilder output produced by Glade 3.6.7 seemed to
               work just fine at runtime, as long as there were no
               duplicate IDs.
     
     All in all the idea of switching to .ui files in the source tree
     seems fairly feasible.  Perhaps we can do it a few files at a
     time if necessary.  This might also be a good time to break
     psppire.glade into multiple files.
     --
     "To the engineer, the world is a toy box full of sub-optimized and
      feature-poor toys."
     --Scott Adams
     
     
     _______________________________________________
     pspp-dev mailing list
     pspp-dev@...
     http://lists.gnu.org/mailman/listinfo/pspp-dev

--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.




_______________________________________________
pspp-dev mailing list
pspp-dev@...
http://lists.gnu.org/mailman/listinfo/pspp-dev

signature.asc (196 bytes) Download Attachment