python-librdf raises errors when using unicode

Bug #633901 reported by Jasper Op de Coul
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
redland-bindings (Ubuntu)
New
Undecided
Unassigned

Bug Description

When using the python bindings in lucid (never had any problems before)
exceptions are sometimes raised (random) when creating an RDF.Node from a unicode string.

>>> import RDF
>>> for i in range(100): RDF.Node(u'föööööööööööööööööööööööööööööööööö')
...
SystemError: error return without exception set

python-librdf:
  Installed: 1.0.10.1-1.1ubuntu1
  Candidate: 1.0.10.1-1.1ubuntu1
  Version table:
 *** 1.0.10.1-1.1ubuntu1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ lucid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Jasper Op de Coul (jasper-infrae) wrote :

I compiled redland-bindings-1.0.10.1 and redland-1.0.10 from the librdf.org tarballs, but
this did not fix it. When I compiled a fresh Python-2.6.6, everything worked again.

Revision history for this message
Matthias Klose (doko) wrote :

the python build is configured with --enable-unicode=ucs4, I assume you didn't do that with your rebuild. So maybe redland-bindings has issues with that?

Revision history for this message
Jasper Op de Coul (jasper-infrae) wrote :

It looks like ucs4 is not the problem, older pythons were also ucs4 and librdf worked fine.

The problem went away when I installed newer redland-bindings (redland-1.0.11 and redland-bindings-1.0.11.1)
from the librdf.org site. These were released last week.

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.