<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Verdana">How do I check which version of these I have, and
how do I go about removing them?<br>
<br>
Also, what's the best installation to do? should I build them from
source?<br>
<br>
Sorry if they are stupid questions.. im kind of a moron<br>
<br>
- Eric<br>
</font><br>
Jeffrey E. Forcier wrote:
<blockquote cite="mid4C637B04-C131-4062-8EBA-2C30E1B87F34@strozllc.com"
type="cite">You probably don't have the right version of py-sqlite, I
had the same error a week ago, and after investigation it seems there
are two fairly different versions of that library.
<br>
<br>
Now, I'm using DarwinPorts on Mac OS X, so I don't know if this is
their fault or the upstream maintainers' fault, but in case it's the
latter, I'll explain the problem I had.
<br>
<br>
In my package list I have *two* oddly-named/versioned instances of py-
sqlite, as follows:
<br>
<br>
py-sqlite python/py-sqlite 2.0.3 python database extension
for sqlite
<br>
py-sqlite2 python/py-sqlite2 1.0.1 python database extension
for sqlite2
<br>
<br>
Further confusing the matter is that there's two versions of SQLite
itself:
<br>
<br>
sqlite databases/sqlite 2.8.15 an embedded SQL database engine
<br>
sqlite3 databases/sqlite3 3.2.1 an embedded SQL database
engine
<br>
<br>
Anyway, what Trac appears to expect is SQLite 2.x with py-sqlite2 1.x.
<br>
<br>
The difference is that py-sqlite2 implements the Python Database API
2.0 (PEP 249, <a class="moz-txt-link-freetext" href="http://www.python.org/peps/pep-0249.html">http://www.python.org/peps/pep-0249.html</a>) which is what
the Trac python code uses, and py-sqlite does not. So, you're probably
using py-sqlite, which doesn't have a 'pysqlite.connect()' function,
thus generating the error you see.
<br>
<br>
<br>
I hope this helps instead of just being a bunch of junk :)
<br>
<br>
Regards,
<br>
Jeff
<br>
<br>
On Jun 10, 2005, at 3:12 AM, Eric Coleman wrote:
<br>
<br>
<blockquote type="cite">Each time I try to create a trac environment,
I get the following:
<br>
<br>
Creating and Initializing Project
<br>
Failed to create environment. 'module' object has no attribute
'connect'
<br>
Failed to initialize database. 1
<br>
<br>
<br>
Im pretty new to all this linux stuff, is there something specific you
need to know? Im running RHEL 3, subversion 1.2, python 2.4.1
<br>
<br>
- Eric
<br>
No virus found in this outgoing message.
<br>
Checked by AVG Anti-Virus.
<br>
Version: 7.0.323 / Virus Database: 267.6.6 - Release Date: 6/8/2005
<br>
_______________________________________________
<br>
Trac mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Trac@lists.edgewall.com">Trac@lists.edgewall.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.edgewall.com/mailman/listinfo/trac">http://lists.edgewall.com/mailman/listinfo/trac</a>
<br>
<br>
</blockquote>
<br>
<br>
--
<br>
Jeffrey E. Forcier
<br>
Junior Developer, Research and Development
<br>
Stroz Friedberg, LLC
<br>
15 Maiden Lane, 12th Floor
<br>
New York, NY 10038
<br>
[main]212-981-6540 [direct]212-981-6546
<br>
<a class="moz-txt-link-freetext" href="http://www.strozllc.com">http://www.strozllc.com</a>
<br>
<br>
This message is for the named person's use only. It may contain
<br>
confidential, proprietary or legally privileged information. No right
to
<br>
confidential or privileged treatment of this message is waived or lost
<br>
by any error in transmission. If you have received this message in
<br>
error, please immediately notify the sender by e-mail or by telephone
at
<br>
212.981.6540, delete the message and all copies from your system and
<br>
destroy any hard copies. You must not, directly or indirectly, use,
<br>
disclose, distribute, print or copy any part of this message if you are
<br>
not the intended recipient.
<br>
<br>
_______________________________________________
<br>
Trac mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Trac@lists.edgewall.com">Trac@lists.edgewall.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.edgewall.com/mailman/listinfo/trac">http://lists.edgewall.com/mailman/listinfo/trac</a>
<br>
<br>
<br>
<br>
<br>
</blockquote>
</body>
</html>