apsw.Connection has no attribute enableloadextension

Question:

I have installed Python 2.7.9 on Mac OS X Yosemite with Homebrew and I have also installed apsw 3.8.8.2-r1 via the bundled pip.

However, even though the apsw module is found, I cannot seem to be able to run my application, as if fails with the an AttributeError.

AttributeError: type object 'apsw.Connection' has no attribute 'enableloadextension'

I am new to OS X, but not new to Python development. I have no idea what could be wrong.

Asked By: lamonadevide

||

Answers:

It turns out you have to compile apsw from source to enable several extensions as the apsw site states.

Answered By: lamonadevide
Categories: questions Tags: , , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.