Hi Anand, thanks for your help. By the way, my first 2 days of using
web.py have been amazingly simple and productive.
I've cloned the master from github (git clone
git://github.com/webpy/webpy.git) and ran the test suite with the
following results. They just seem to result from ignoring the absence
of the postgres driver and something about sqlite. Unicode errors are
gone :)
------- Begin shell session --------
samwan:~/webpy $ python test/alltests.py
Unable to import pysqlite2.dbapi2 (ignoring SqliteTest_pysqlite2)
Unable to import psycopg2 (ignoring PostgresTest)
Unable to import psycopg (ignoring PostgresTest_psycopg)
No module named MySQLdb (ignoring MySQLTest)
Unable to import pgdb (ignoring PostgresTest_pgdb)
............................................................................................F................EEE...
======================================================================
ERROR: testBadSessionId (session.DBSessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/samwan/webpy/test/session.py", line 8, in setUp
session = self.make_session(app)
File "/Users/samwan/webpy/test/session.py", line 57, in make_session
db = webtest.setup_database("postgres")
File "/Users/samwan/webpy/test/webtest.py", line 15, in setup_database
db = web.database(dbn=dbname, db='webpy', user=user, pw='',
pooling=pooling, driver=driver)
File "./web/db.py", line 1043, in database
return _databases[dbn](**params)
File "./web/db.py", line 864, in __init__
db_module = import_driver(["psycopg2", "psycopg", "pgdb"],
preferred=keywords.pop('driver', None))
File "./web/db.py", line 921, in import_driver
raise ImportError("Unable to import " + " or ".join(drivers))
ImportError: Unable to import psycopg2 or psycopg or pgdb
======================================================================
ERROR: testParallelSessions (session.DBSessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/samwan/webpy/test/session.py", line 8, in setUp
session = self.make_session(app)
File "/Users/samwan/webpy/test/session.py", line 57, in make_session
db = webtest.setup_database("postgres")
File "/Users/samwan/webpy/test/webtest.py", line 15, in setup_database
db = web.database(dbn=dbname, db='webpy', user=user, pw='',
pooling=pooling, driver=driver)
File "./web/db.py", line 1043, in database
return _databases[dbn](**params)
File "./web/db.py", line 864, in __init__
db_module = import_driver(["psycopg2", "psycopg", "pgdb"],
preferred=keywords.pop('driver', None))
File "./web/db.py", line 921, in import_driver
raise ImportError("Unable to import " + " or ".join(drivers))
ImportError: Unable to import psycopg2 or psycopg or pgdb
======================================================================
ERROR: testSession (session.DBSessionTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/samwan/webpy/test/session.py", line 8, in setUp
session = self.make_session(app)
File "/Users/samwan/webpy/test/session.py", line 57, in make_session
db = webtest.setup_database("postgres")
File "/Users/samwan/webpy/test/webtest.py", line 15, in setup_database
db = web.database(dbn=dbname, db='webpy', user=user, pw='',
pooling=pooling, driver=driver)
File "./web/db.py", line 1043, in database
return _databases[dbn](**params)
File "./web/db.py", line 864, in __init__
db_module = import_driver(["psycopg2", "psycopg", "pgdb"],
preferred=keywords.pop('driver', None))
File "./web/db.py", line 921, in import_driver
raise ImportError("Unable to import " + " or ".join(drivers))
ImportError: Unable to import psycopg2 or psycopg or pgdb
======================================================================
FAIL: testPooling (db.SqliteTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/samwan/webpy/test/db.py", line 81, in testPooling
self.assertEquals(db.ctx.db.__class__.__module__, 'DBUtils.PooledDB')
AssertionError: 'sqlite3' != 'DBUtils.PooledDB'
----------------------------------------------------------------------
Ran 115 tests in 4.075s
FAILED (failures=1, errors=3)
samwan:~/webpy $
---------- End shell session ------------
On Sat, May 30, 2009 at 3:43 AM, Anand Chitipothu <[email protected]> wrote:
>
>> I'm new to python and web.py, so I ran the test suite to see if
>> everything's installed correctly, with 3 failures and 4 errors. Can
>> anyone tell me if the following test failures require additional
>> installations or configurations on my part? I only intend to use
>> sqlite, so it's mainly the unicode decode and sqlite3 assertions that
>> concern me. Thanks for any advice.
>
> Can you try the tests against trunk and see if they still fail?
>
> Anand
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---