Hi,
Had the same issue with ubuntu bionic.
This has solved it:
sudo apt install python3-tk

Cheers.

On Monday, 28 September 2009 05:15:42 UTC+10, Chris Baron wrote:
>
> All, 
>
> I've been using web2py on OSX and have been trying to get it up and 
> running on 9.04 Ubuntu, but have not been able to.  From the bash 
> shell : 
>
> cbaron@cbaron-ubuntu:~$ python Desktop/web2py/web2py.py 
> WARNING:root:unable to import dbhash 
> WARNING:root:GUI not available because Tk library is not installed 
> default applications appear to be installed already 
> web2py Enterprise Web Framework 
> Created by Massimo Di Pierro, Copyright 2007-2009 
> Version 1.67.1 (2009-09-17 13:33:20) 
> Database drivers available: 
> Starting cron... 
> choose a password:**** 
> please visit: 
>         http://127.0.0.1:8000 
> use "kill -SIGTERM 30470" to shutdown the web2py server 
>
> When I enter http://127.0.0.1:8000 in my browser I get the following 
> error : 
>
> Traceback (most recent call last): 
>   File "/home/cbaron/Desktop/web2py/gluon/restricted.py", line 178, in 
> restricted 
>     exec ccode in environment 
>   File "/home/cbaron/Desktop/web2py/applications/welcome/models/ 
> db.py", line 15, in <module> 
>     db = DAL('sqlite://storage.sqlite')       # if not, use SQLite or 
> other DB 
>   File "/home/cbaron/Desktop/web2py/gluon/sql.py", line 2806, in DAL 
>     return SQLDB(uri, pool_size=pool_size) 
>   File "/home/cbaron/Desktop/web2py/gluon/sql.py", line 698, in 
> __init__ 
>     self._pool_connection(lambda : sqlite3.Connection(dbpath, 
>   File "/home/cbaron/Desktop/web2py/gluon/sql.py", line 642, in 
> _pool_connection 
>     self._connection = f() 
>   File "/home/cbaron/Desktop/web2py/gluon/sql.py", line 698, in 
> <lambda> 
>     self._pool_connection(lambda : sqlite3.Connection(dbpath, 
> NameError: global name 'sqlite3' is not defined 
>
> I am a linux newbie.  Any help would be appreciated.  Thanks. 
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to