Visions of Aestia

29 Apr 2005

Success - Redland/Python on Windows!

Filed under: PlanetRDF, Python — JBowtie @ 1:57 pm

UPDATE: An updated version is available; see the official announcement.

This is a DEBUG port of the Redland 1.0.0.2 Python bindings (and the underlying Redland 1.0.0 code). I’ve created a Windows installer for the binaries using distutils. If you can, please mirror it (and give the location in the comments) - my allocated bandwidth is meager.

Thanks to this tip from Suzan Foster, I was able to get everything sorted. I’ll need to figure out exactly what I did, document it, and push it back to Dave for inclusion in the standard distribution. I’ll also split out the C dlls and put a zip for people who are not using Python (like the folks working on other bindings).

Probably I’ve dropped some stuff; I’ll look into that after the cleanup and debrief.

I can run example.py and test.py from the standard bindings package; both run all the way through. After the cleanup I’ll look at assembling a real unit test package for the Python bindings. In the meantime, please leave a comment if you have any issues; it’ll give me an idea of what things I may have dropped/disabled.

For those that care, I’m using libxml2 and compiled with multithreaded support. This was compiled against Python 2.4 using the Visual C+ compiler that ships as part of the .NET Framework 1.1 SP1 (cl.exe reports version 13.10.3077).

7 Responses to “Success - Redland/Python on Windows!”

  1. Underneath an ink black sky Says:

    Redland/Python on Windows

  2. Danny Ayers, Raw Blog Says:

    […] indows!
    Filed under: Semantic Web — Danny @ 09:29

    John Barstow reports success on getting this to work. I’ve been enjoying using Red […]

  3. Dave Beckett Says:

    Congratulations. The cross-library alloc/free crashes shouldn’t happen - they are bugs - so if there’s any diagnosis of what was crashing suck as a call stack, that might help me look into it.

  4. fc Says:

    How to create a mysql storage with this python binding distribution ?

  5. JBowtie Says:

    See the documentation at http://librdf.org/docs/pydoc/RDF.html#Storage or try the support options at http://librdf.org/lists/

    I don’t have MySQL installed, so I can’t give a working example. If you have code that works on Linux but not on Windows, that’s a bug and you should let me know.

    I should also point out that an updated version is available at https://nzlinux.org.nz/blogs/2005/05/12/redland-windows-release-100/

  6. fc Says:

    I followed the instructions, set storage-name to mysql and some optional strings, but still got a RDF.RDF.RedlandError: ‘Creating Storage failed’.

    I also checked into your code in RDF.py, there is just a None-checking line to handle creation failure, so I couldn’t provide more error information.

    I’m using the latest binary build.

    Thanks for your work on the binary build, it’s a mess work to build a redland on windows manually

  7. JBowtie Says:

    I probably need to tweak some defines to get MySQL support compiled correctly; I’ll work up some sample code on my Linux box and see about getting MySQL installed on my Linux box.

Leave a Reply

Powered by WordPress