English 中文(简体)
在我开始的时候,为什么会发生网络故障?
原标题:Why does web2py crash for me upon startup?

I'm试图在乌班图机器上运行网络2py。 所有的缩略语似乎都表明,为了把它放在一个*nix系统上,你下载了来文方,并做了:

python web2py.py

I grabbed the source (表源,而不是中继器,1.99.4版)并尝试了上述工作,但在进入服务器密码后,我(在终端):

$ python web2py.py 
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.4 (2011-12-14 14:46:14) stable
Database drivers available: google
Starting hardcron...
WARNING:web2py.cron:WEB2PY CRON: Disabled because no file locking
please visit:
    http://127.0.0.1:8000
starting browser...
failed to create drawable
DEBUG: connect attempt 0, connection error:
Traceback (most recent call last):
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 4736, in __init__
    self._adapter = ADAPTERS[self._dbname](*args)
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 1634, in __init__
    raise RuntimeError, "Unable to import driver"
RuntimeError: Unable to import driver
WARNING:web2py.cron:WEB2PY CRON: Disabled because no file locking
DEBUG: connect attempt 1, connection error:
Traceback (most recent call last):
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 4736, in __init__
    self._adapter = ADAPTERS[self._dbname](*args)
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 1634, in __init__
    raise RuntimeError, "Unable to import driver"
RuntimeError: Unable to import driver
DEBUG: connect attempt 2, connection error:
Traceback (most recent call last):
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 4736, in __init__
    self._adapter = ADAPTERS[self._dbname](*args)
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 1634, in __init__
    raise RuntimeError, "Unable to import driver"
RuntimeError: Unable to import driver
DEBUG: connect attempt 3, connection error:
Traceback (most recent call last):
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 4736, in __init__
    self._adapter = ADAPTERS[self._dbname](*args)
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 1634, in __init__
    raise RuntimeError, "Unable to import driver"
RuntimeError: Unable to import driver
DEBUG: connect attempt 4, connection error:
Traceback (most recent call last):
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 4736, in __init__
    self._adapter = ADAPTERS[self._dbname](*args)
  File "/home/aparkin/Downloads/web2py/gluon/dal.py", line 1634, in __init__
    raise RuntimeError, "Unable to import driver"
RuntimeError: Unable to import driver

然后,在浏览器中,我获得:

Internal error
Ticket issued: welcome/127.0.0.1.2012-.....[abbreviated]

Any suggestions? I m running Python 2.7.1+. I ve read elsewhere that you also need pyschopg2 installed for web2py to run, and I ve confirmed that this is in fact installed as well (I did a sudo apt-get install python-psycopg2 and got "python-psycopg2 is already the newest version").

最佳回答

我刚被下载,网络2py在乌邦图,python 2.7.2+

bruce@vaiubuntu:~/Downloads/web2py$ python web2py.py

web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.4 (2011-12-14 14:46:14) stable
Database drivers available: SQLite3, pymysql, PostgreSQL
Starting hardcron...

你们是否试图在 app的环境下管理网吧?

Do you have SQLITE module working ok in your Python?

是否许可问题,贵国用户是否允许书写网络2py/* 夹?

问题回答

It looks like a bug in web2py 1.99.4. I was having the same problem using Postgres and psycopg2, but in Windows.

我用1 992人进行了审判,并进行了罚款。

实际上,这些标书似乎与加密错误信息有关,1.992段给我错误的信息,即数据库确实存在,很容易固定。 1.99.4 没有提到缺失的数据库。 然而,当我创建数据库并尝试了1.994号数据库时,该数据库便被罚款。





相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签