Ruby objects to cyclic dependency - Redland Error - cannot create UI

Bug #102845 reported by Norm Walsh on 2007-04-04
6
Affects Status Importance Assigned to Milestone
redland-bindings (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: librdf-ruby

Attempting to run the example.rb script installed in /usr/share/doc/librdf-ruby/examples reports:

$ ruby /usr/share/doc/librdf-ruby/examples/example.rb
/usr/lib/ruby/1.8/rdf/redland/resource.rb:5:in `append_features': cyclic include detected (ArgumentError)
 from /usr/lib/ruby/1.8/rdf/redland/resource.rb:5:in `include'
 from /usr/lib/ruby/1.8/rdf/redland/resource.rb:5
 from /usr/lib/ruby/1.8/rdf/redland.rb:10:in `require'
 from /usr/lib/ruby/1.8/rdf/redland.rb:10
 from /usr/share/doc/librdf-ruby/examples/example.rb:24:in `require'
 from /usr/share/doc/librdf-ruby/examples/example.rb:24

I get similar errors in my application that used to work under Edgy.

Attempting to compile and install the 1.0.5 release of librdf and the ruby bindings changed the error, but perhaps that's just because I botched some aspect of the install. I suggest packaging up the most recent versions to see if that helps.

--------------
Possible fix:

HACK: this error went away when I commented out the following two lines of code:

  /usr/lib/ruby/1.8/rdf/redland/resource.rb:5
  /usr/lib/ruby/1.8/rdf/redland.rb:25

peppelorum (peppe-peppesbodega) wrote :

I can confirm this bug, same error.

Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in redland-bindings:
status: New → Incomplete

Daniel T Chen <email address hidden> writes:

> Is this symptom still reproducible in 8.10 beta?

Sorry, I'm no longer in a convenient position to test.

                                        Be seeing you,
                                          norm

--
Norman Walsh <email address hidden> | Mankind are always happy for having
http://nwalsh.com/ | been happy; so that if you make them
                              | happy now, you make them happy twenty
                              | years hence by the memory of
                              | it.--Sydney Smith

Can't answer for 8.10 since I'm running 8.04.

If I install librdf-ruby and run i get

peppe@bespin ~> ruby /usr/share/doc/librdf-ruby/examples/example.rb
/usr/lib/ruby/1.8/rdf/redland/uri.rb:24:in `initialize': Unable to create Uri (Redland::RedlandError)
from /usr/share/doc/librdf-ruby/examples/example.rb:43:in `new'
from /usr/share/doc/librdf-ruby/examples/example.rb:43

alex (atulinsky) wrote :

HACK: this error went away when I commented out the following two lines of code:

  /usr/lib/ruby/1.8/rdf/redland/resource.rb:5
  /usr/lib/ruby/1.8/rdf/redland.rb:25

I'm afraid I can't provide any further details except that this worked for me. I don't really know anything about ruby, rdfs, or the redland library. I'm running 8.10 and saw the error when I installed and ran an application called semperwiki:

http://eyaloren.org/semperwiki.html

HTH somebody.

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

description: updated
peppelorum (peppe-peppesbodega) wrote :

I'm now running 9.04 on my machine and same as before.

peppe@eagle ~> cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04"
peppe@eagle ~> ruby /usr/share/doc/librdf-ruby/examples/example.rb
/usr/lib/ruby/1.8/rdf/redland/uri.rb:24:in `initialize': Unable to create Uri (Redland::RedlandError)
        from /usr/share/doc/librdf-ruby/examples/example.rb:43:in `new'
        from /usr/share/doc/librdf-ruby/examples/example.rb:43

And on a 9.10 machine.
peppe@dash:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
peppe@dash:~$ ruby /usr/share/doc/librdf-ruby/examples/example.rb
/usr/lib/ruby/1.8/rdf/redland/uri.rb:24:in `initialize': Unable to create Uri (Redland::RedlandError)
        from /usr/share/doc/librdf-ruby/examples/example.rb:41:in `new'
        from /usr/share/doc/librdf-ruby/examples/example.rb:41

Best regards
Peppe

I have just tried the commands you have, after installing librdf-ruby and ruby. I can confirm this behaviour in Lucid 10.04, ruby version 4.2

$ ruby /usr/share/doc/librdf-ruby/examples/example.rb
/usr/lib/ruby/1.8/rdf/redland/uri.rb:24:in `initialize': Unable to create Uri (Redland::RedlandError)
 from /usr/share/doc/librdf-ruby/examples/example.rb:41:in `new'
 from /usr/share/doc/librdf-ruby/examples/example.rb:41
$ apt-cache policy ruby
ruby:
  Installed: 4.2
  Candidate: 4.2
  Version table:
 *** 4.2 0
        500 http://archive.ubuntu.com lucid/main Packages
        100 /var/lib/dpkg/status

Marking Triaged, Low, as there should be enough information here for a developer to see where the problem lies. Thank you.

Changed in redland-bindings (Ubuntu):
importance: Undecided → Low
status: Incomplete → Triaged
summary: - Ruby objects to cyclic dependency
+ Ruby objects to cyclic dependency - Redland Error - cannot create UI
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers