#2969: SQLite library routine called out of sequence, with mod_python, apache,
trac, and sqlite all installed by darwinports
---------------------------------+------------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: cmlenz
Type: defect | Status: new
Priority: normal | Milestone:
Component: mod_python frontend | Version: 0.9.4
Severity: normal | Resolution:
Keywords: |
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):
I installed using DarwinPorts on OSX 10.4.7, and have pretty much the same
installed ports as mentioned in [comment:14] - and received the same error
-- {{{ProgrammingError: library routine called out of sequence}}}.
The simple workaround is to install the source distribution instead:
1. Uninstall the py-sqlite package only without dependencies
{{{
sudo port -f uninstall py-sqlite
}}}
1. Find the source for your version from local DP distfiles
{{{/opt/local/var/db/dports/distfiles/...}}}, and uncompress it -
alternatively just grab the latest source distribution from pyslite.org.
1. Follow the simple build and install instructions at
http://initd.org/pub/software/pysqlite/doc/install-source.html
{{{
> cd ~/Desktop/pysqlite-2.3.1 (# or other relevant location)
> /opt/local/bin/python setup.py build
> sudo /opt/local/bin/python setup.py install
}}}
It is now installed as a regular Python package outside DarwinPorts, and
the error message does not appear - and mod_python works flawlessly.
Also, I use a simple wxPython-based Python shell application for much of
my interactive testing, and using that shell the same db error appeared
when I instantiated any db connection interactively (through trac or
directly). Same problem using the shell inside the SPE IDE. With source
install of py-sqlite, the GUI apps works fine as well.
The problem didn't appear earlier using plain 'Terminal Python', or when
testing with fast_cgi (as indicated from others).
Seems to indicate a DarwinPorts packaging/build/install issue as I managed
to get the same DP distribution source to work just by using simple
{{{python setup.py}}}... Likely threading is the common denominator
between apache/mod_python and a wxPython GUI app?
--
Ticket URL: <http://trac.edgewall.org/ticket/2969#comment:17>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets