URN Logo
UNIX Resources » Linux » China Linux Forum » Python 编 程 » 4 » 关于安装trac0.93的问题
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
关于安装trac0.93的问题
关于安装trac0.93的问题 - ACp [2006-02-03 19:25 | 3,242 byte(s)]
 
Re: 关于安装trac0.93的问题 - xyb [2006-02-06 09:08 | 110 byte(s)]
 
Subject: 关于安装trac0.93的问题
Author: ACp    Posted: 2006-02-03 19:25    Length: 3,242 byte(s)
[Original] [Print] [Top]
*安装了trac0.93
*安装了sqlite2.8.17
*安装了pysqlite1.0.1
等等基础模块和依赖包
但是在trac-admin初始化时出错了,在google邮件列表发现有人也遇到这个错误,但没有解决的下文。
希望懂python和trac的朋友帮帮忙,谢谢!
出错信息如下:

[root@localhost trac-0.9.3]# trac-admin /usr/src/yougedi/trac_project3 initenv
Creating a new Trac environment at /usr/src/yougedi/trac_project3

Trac will first ask a few questions about your environment
in order to initalize and prepare the project database.

Please enter the name of your project.
This name will be used in page titles and descriptions.

Project Name [My Project]>

Please specify the connection string for the database to use.
By default, a local SQLite database is created in the environment
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for the exact
connection string syntax).

Database connection string [sqlite:db/trac.db]>

Please specify the absolute path to the project Subversion repository.
Repository must be local, and trac-admin requires read+write
permission to initialize the Trac database.

Path to repository [/var/svn/test]> /usr/src/yougedi/engine

Please enter location of Trac page templates.
Default is the location of the site-wide templates installed with Trac.

Templates directory [/usr/share/trac/templates]>

Creating and Initializing Project
Failed to create environment. global name 'sqlite' is not defined
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 141, in env_create
self.__env = Environment(self.envname, create=True, db_str=db_str)
File "/usr/lib/python2.3/site-packages/trac/env.py", line 79, in __init__
self.create(db_str)
File "/usr/lib/python2.3/site-packages/trac/env.py", line 197, in create
db.init_db(self.path, db_str)
File "/usr/lib/python2.3/site-packages/trac/db.py", line 442, in init_db
cls.init_db(**args)
File "/usr/lib/python2.3/site-packages/trac/db.py", line 321, in init_db
cnx = sqlite.connect(path, timeout=int(params.get('timeout', 10000)))
NameError: global name 'sqlite' is not defined
Failed to initialize environment. 1
Traceback (most recent call last):
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 596, in do_initenv
self.env_create(db_str)
File "/usr/lib/python2.3/site-packages/trac/scripts/admin.py", line 146, in env_create
sys.exit(1)


为什么说sqlite没定义?我已经安装了sqlite2.8.17,pysqlite1.0.1
----
OnlyPc
[Original] [Print] [Top]
Subject: Re: 关于安装trac0.93的问题
Author: xyb    Posted: 2006-02-06 09:08    Length: 110 byte(s)
[Original] [Print] [Top]
不要装pysqlite,那是给sqlite 3用的,它在python中的模块名是pysqlite;要安装老的sqlite模块,那是给sqlite 2用的。
[Original] [Print] [Top]
« Previous thread
在Linux上怎么安装python的模块呢?
Python 编 程
4
Next thread »
喜欢python 的加入QQ群15964496
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 04:10:57, cost 0.044080018997192 ms.