Hello and thankyou for your response.

Quoting Jeroen Ruigrok/asmodai <[EMAIL PROTECTED]>:

-On [20060607 20:35], [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
I recently installed 0.95 from the ports tree on one of our FreeBSD
servers. This was in an effort to provide an alternative to the CVS/ RCS
we already provide for many of our developer clients. However, while
following the instructions for setting up an initial trac-environment,
it failed with the following error:
Creating and Initializing Project
Failed to create environment. global name 'sqlite' is not defined

Funny, the FreeBSD port has a BUILD_DEPENDS on databases/py-pysqlite20.

The version of FreeBSD on this server is 5.4 (ports were cvsupped yesterday)
The required_by version of python sqlite is: py24-pysqlite-2.2.2
which is installed. Reading the docs on sqlite seems to indicate that the
call to sqlite should be sqlite3 *not* sqlite, as Trac seems to think.
As there is _no_ sqlite command available anywhere on the system. I'm
thinking that: cd /usr/local/bin; ln -s sqlite3 sqlite; might solve
Trac's inability to know that the command sqlite doesn't exist. If this
solves the problem, I'll report back. So as to inform the maintainer here
to fix this asap; else be flooded with questions regarding this oversight.

Do you have this installed/registered in /var/db/pkg?
No, I have py24-pysqlite-2.2.2 registered, as this is what the Trac port
indicates it needs. Also, I also had Python 2.4.3 installed and in use
prior to ever even looking at the Trac port. Is my version of Python too
new/ advanced for Trac?

If you do not I find it funny how you were able to install Trac since it is a
build depend and automatically gets build.
If you do, check to see if you can:

$ python
Python 2.4.3 (#2, Apr  2 2006, 19:17:09)
[GCC 3.4.4 [FreeBSD] 20050518] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
import pysqlite2.dbapi2 as sqlite

I'll check your suggestion out prior to ln -s sqlite3 sqlite.
Thanks for the tip. If your suggestion checks out; why didn't this
occur during the installation?

You should not be getting an ImportError. If you do, something is wrong in
your Python installation.
Thanks again. I'll check it out.


--
Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/
Only in sleep can one find salvation that resembles Death...
_______________________________________________
Trac-dev mailing list
Trac-dev@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-dev






-----------------------------------------------------------------
FreeBSD 5.4-RELEASE-p12 (SMP - 900x2) Tue Mar 7 19:37:23 PST 2006
/////////////////////////////////////////////////////////////////

_______________________________________________
Trac-dev mailing list
Trac-dev@lists.edgewall.com
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to