You are not logged in.

#1 2007-03-27 06:25:29

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

obconf2

Hi,

Just tried to install obconf2 ... now getting this error

 obconf2
/usr/lib/ruby/site_ruby/1.8/obconf2/callbacks.rb:312:in `initial_settings': undefined method `each' for nil:NilClass (NoMethodError)
        from /usr/bin/obconf2:76:in `main'
        from /usr/bin/obconf2:85

Wondered if it works for anyone else ?

I am running openbox-svn 5673-1


Mr Green

Offline

#2 2007-03-27 07:35:31

arox1
Member
From: Poland
Registered: 2006-07-08
Posts: 174

Re: obconf2

I installed obconf2 today following instructions on Obconf trac page and I get this error when I try to run it:

/usr/lib/ruby/site_ruby/1.8/libglade2.rb:106: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/lib/ruby/site_ruby/1.8/libglade2.rb:106: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/lib/ruby/site_ruby/1.8/libglade2.rb:106: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/lib/ruby/site_ruby/1.8/libglade2.rb:106: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/bin/obconf2:66: warning: rb_f_lambda() is deprecated; use rb_block_proc() instead
/usr/bin/obconf2:78:in `set_cursor': wrong argument type nil (expected Data) (TypeError)
        from /usr/bin/obconf2:78:in `main'
        from /usr/bin/obconf2:85

Obconf window pops up for 0,5 second and dissapears

Offline

#3 2007-03-27 08:08:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

I changed the if ... line as per page emmm

loaded obconf again and that works

but nothing from obconf2 ;-(

Unless we have missed something else


Mr Green

Offline

#4 2007-03-27 14:37:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

Works when running as root ... though I would not change any settings ...

/usr/lib/ruby/site_ruby/1.8/obconf2/callbacks.rb:312:in `initial_settings': undefined method `each' for nil:NilClass (NoMethodError)
        from /usr/bin/obconf2:76:in `main'
        from /usr/bin/obconf2:85

Mr Green

Offline

#5 2007-03-27 15:03:25

SuiRIS
Member
From: Germany
Registered: 2006-04-15
Posts: 18

Re: obconf2

Mr Green wrote:

Just tried to install obconf2 ... now getting this error

 obconf2
/usr/lib/ruby/site_ruby/1.8/obconf2/callbacks.rb:312:in `initial_settings': undefined method `each' for nil:NilClass (NoMethodError)
        from /usr/bin/obconf2:76:in `main'
        from /usr/bin/obconf2:85

Wondered if it works for anyone else ?

I am running openbox-svn 5673-1

Same error here...

Offline

#6 2007-03-27 15:26:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

Smoon has it working ..... very stange


Mr Green

Offline

#7 2007-03-27 15:52:17

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: obconf2

Ok, there's a new package in my repo (http://arch.nooms.de/) and also a fixed version of ruby-libglade (had to call it ruby-libglade2). Both work without any issues for me. You'll need pacman3 to be able to use the packages, if you don't have that yet you can find the PKGBUILDS at http://hg.nooms.de/pkgbuilds/.

Offline

#8 2007-03-28 06:20:14

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

Updated both packages this morning ....

 obconf2
/usr/bin/obconf2:78:in `set_cursor': wrong argument type nil (expected Data) (TypeError)
        from /usr/bin/obconf2:78:in `main'
        from /usr/bin/obconf2:85

using pacman3

looking at pkgbuild for obconf2-svn it shows deps as lib-glade ? unless you have not updated them yet [not sure if I am right!]

If you need any other output then let me know kinda scratching me head here :-)

Last edited by Mr Green (2007-03-28 06:29:28)


Mr Green

Offline

#9 2007-03-28 17:36:11

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

Ok I '#'ed out line 78 and obconf2 starts ;-S ... help!

Now I have figured out why my themes do not load XML!!!! /me bangs head against wall

Menu Header seems to have come back

Last edited by Mr Green (2007-03-28 19:02:09)


Mr Green

Offline

#10 2007-03-28 20:38:24

espo
Member
From: Stuttgart - Germany
Registered: 2006-08-11
Posts: 74

Re: obconf2

yes the problem is fixed in the new svn version (Revision 62) old Revision 61 has some bugs syscrash told me yesterday.

Greetings
eSpo

Offline

#11 2007-03-29 05:53:34

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

Thanks man obconf2 is cool just need some new themes now ;-)

Version 62 is now working

Last edited by Mr Green (2007-03-29 05:56:52)


Mr Green

Offline

#12 2007-03-29 08:42:45

espo
Member
From: Stuttgart - Germany
Registered: 2006-08-11
Posts: 74

Re: obconf2

you have to convert the old ones wink with
cat themerc | obthemetoxml > themerc.xml

Greetings

Offline

#13 2007-03-29 13:23:21

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

sweet lol


Mr Green

Offline

#14 2007-03-29 15:56:31

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

http://pastebin.archlinux.org/2162

A dirty python script was thinking about but mixing bash and python is messy

but my bash skills are none.....

its the command line thats the problem

ok take a list of file paths [ > themerc ] then run a loop to scan then cat as above ...

in other words reconfigure themerc to themerc.xml

Help!!!!


Mr Green

Offline

#15 2007-03-29 16:54:55

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: obconf2

Mr Green wrote:

http://pastebin.archlinux.org/2162

A dirty python script was thinking about but mixing bash and python is messy

but my bash skills are none.....

its the command line thats the problem

ok take a list of file paths [ > themerc ] then run a loop to scan then cat as above ...

in other words reconfigure themerc to themerc.xml

Help!!!!

Quit, dirty and untested - but it should work:

for i in ~/.themes/* ; do if [ -f "$i/openbox-3/themerc" ] ; then cat "$i/openbox-3/themerc" | obthemetoxml > "$i/openbox-3/themerc.xml" ; fi ; done

Offline

#16 2007-03-29 17:12:45

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: obconf2

ouch!!!! rofl

#!/bin/bash

for i in ~/.themes/* 
  do if [ -f "$i/openbox-3/themerc" ] 
    then cat "$i/openbox-3/themerc" | obthemetoxml > "$i/openbox-3/themerc.xml" 
fi 
done

well I thought .......

Last edited by Mr Green (2007-03-29 17:16:48)


Mr Green

Offline

#17 2007-05-08 19:33:18

fk
Member
From: Germany
Registered: 2006-04-29
Posts: 524

Re: obconf2

With obconf2-svn-68-1 the  problem is comming back...



[flo@orion ~]$ obconf2
/usr/lib/ruby/site_ruby/1.8/obconf2/callbacks.rb:377:in `initial_settings': undefined method `active=' for nil:NilClass (NoMethodError)
    from /usr/bin/obconf2:76:in `main'
    from /usr/bin/obconf2:85
[flo@orion ~]$

Last edited by fk (2007-05-08 19:38:17)


Have you tried to turn it off and on again?

Offline

#18 2007-05-08 20:08:57

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: obconf2

fk wrote:

With obconf2-svn-68-1 the  problem is comming back...



[flo@orion ~]$ obconf2
/usr/lib/ruby/site_ruby/1.8/obconf2/callbacks.rb:377:in `initial_settings': undefined method `active=' for nil:NilClass (NoMethodError)
    from /usr/bin/obconf2:76:in `main'
    from /usr/bin/obconf2:85
[flo@orion ~]$

Openbox is currently under heave development and some parts in its libraries (which obconf2 uses) change sometimes. We just need to wait for obconf2 to catch up on this.

Offline

Board footer

Powered by FluxBB