[MacPorts] #15131: py25-sqlite3 2.5.2 totally broken
#15131: py25-sqlite3 2.5.2 totally broken -----------------------------+---------------------------------------------- Reporter: pfein@pobox.com | Owner: macports-tickets@lists.macosforge.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Keywords: | -----------------------------+---------------------------------------------- With a fresh install of Python 2.5.2 and py25-sqlite3, the module doesn't work at all: {{{ In [1]: import sqlite3 In [2]: conn=sqlite3.connect(":memory:") --------------------------------------------------------------------------- SystemError Traceback (most recent call last) /Users/pfein/<ipython console> in <module>() SystemError: NULL result without error in PyObject_Call }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mmw@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Changes (by macsforever2000@macports.org): * owner: macports-tickets@lists.macosforge.org => mmw@macports.org -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:1> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mmw@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by mmw@macports.org): Replying to [comment:1 macsforever2000@macports.org]: to mww@macports.org not mmw -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:2> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: new Priority: High | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Changes (by mmw@macports.org): * owner: mmw@macports.org => mww@macports.org -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:3> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Changes (by mww@macports.org): * priority: High => Normal * status: new => assigned Comment: works flawless here -- which arch and version of OS X do you use? Which version of sqlite3 is this? Please also provide a full trace {{{ echo "import sqlite3 conn=sqlite3.connect(\":memory:\") " | python2.5 -v }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:4> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by pfein@pobox.com): This only seems to be provoked when some other modules are loaded (maybe threads?) I'm attaching the output of the command you requested, plus runs from Python's source regression suite. The sqlite tests fail when run as part of the entire suite, but pass on their own. Intel Leopard 10.5.2 {{ hotbox:~$ uname -a Darwin hotbox.local 9.2.0 Darwin Kernel Version 9.2.0: Tue Feb 5 16:13:22 PST 2008; root:xnu-1228.3.13~1/RELEASE_I386 i386 }}} -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:5> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by pfein@pobox.com): I'm seeing the same error with externally built pysqlite2: http://www.initd.org/pub/software/pysqlite/releases/2.4/2.4.1/ This makes me suspect my python installation itself is fubar. ;-( The only remotely relevant google hits involve mod_python/mod_cache, which isn't at issue here. Help please, I don't want to go use fink, but I have to get some work done. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:6> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by pfein@pobox.com): Both I and another user on IRC with the same configuration were able to reproduce this problem. This problem may be with sqlite3 itself, but I'm currently unable to run the tests for that, as there's no tclsqlite3 port. See also #6810 -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:7> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by pfein@pobox.com): Replying to [comment:7 pfein@pobox.com]:
This problem may be with sqlite3 itself, but I'm currently unable to run the tests for that, as there's no tclsqlite3 port. See also #6810 See #15163 for a tcl variant and #15169 for test failures
-- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:8> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by pfein@pobox.com): I built a _sqlite3.so linked against Apple's sqlite: {{{ otool -L _sqlite3.so _sqlite3.so: /usr/lib/libsqlite3.0.dylib (compatibility version 9.0.0, current version 9.6.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0) }}} All reported problems disappear with this build. To build: * download and extract Python-2.5.2 source * copy Modules/_sqlite/ to /some/where/_sqlite/ * download attached setup.py to /some/where/ * run `/opt/local/bin/python /some/where/setup.py install` This will install _sqlite3.so to /opt/local/lib/python2.5/site-packages/ -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:9> MacPorts </projects/macports> Ports system for Mac OS
#15131: py25-sqlite3 2.5.2 totally broken ------------------------------+--------------------------------------------- Reporter: pfein@pobox.com | Owner: mww@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------+--------------------------------------------- Comment (by dan.callahan@gmail.com): I can confirm that pfein's solution works for me. -- Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15131#comment:10> MacPorts </projects/macports> Ports system for Mac OS
participants (1)
-
MacPorts