example file provided in /usr/share/doc/python2.4-librdf doesn't work

Bug #47232 reported by Jeff Bowden
4
Affects Status Importance Assigned to Milestone
redland-bindings (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: python2.4-librdf

$ python /usr/share/doc/python2.3-librdf/examples/example.py
found statement: {[http://purl.org/net/dajobe/], [http://purl.org/dc/elements/1.1/creator], "Dave Beckett"}
Parsing URI (file) ../data/dc.rdf
Traceback (most recent call last):
  File "/usr/share/doc/python2.3-librdf/examples/example.py", line 58, in ?
    for s in parser.parse_as_stream(uri,uri):
TypeError: iteration over non-sequence

Revision history for this message
Jeff Bowden (jlb) wrote :

Looks like it's looking for a file that's not included in the package. It's trying to read ../data/dc.rdf

Revision history for this message
Morgan Collett (morgan) wrote :

This is however present in the (original) source on librdf.org, and presumeably in the Debian / Ubuntu source package. Looks like it just needs to be included in the binary package.

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Hi,

these are the changes for the new upload to gutsy to fix this problem:

redland-bindings (1.0.6.1-2ubuntu2) gutsy; urgency=low

  * debian/python-librdf.example (LP: #47232)
    - added data/dc.rdf to example file
  * python/example.py:
    - changed test_file to 'dc.rdf' and not to ../data/dc.rdf

 -- Stephan Hermann <email address hidden> Sat, 15 Sep 2007 13:20:32 +0200

I'll attach a debdiff just now, and subscribe ubuntu-main-sponsors

Regards,

\sh

Revision history for this message
Stephan Rügamer (sruegamer) wrote :
Revision history for this message
Stephan Rügamer (sruegamer) wrote :

redland-bindings (1.0.6.1-2ubuntu2) gutsy; urgency=low

  * debian/python-librdf.example (LP: #47232)
    - added data/dc.rdf to example file
  * python/example.py:
    - changed test_file to 'dc.rdf' and not to ../data/dc.rdf

 -- Stephan Hermann <email address hidden> Sat, 15 Sep 2007 13:20:32 +0200

Changed in redland-bindings:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.