alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

Errors During/After Installation from svn on Ubutntu Linux 9.04 #39

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From ch...@ononbb.com on June 15, 2009 16:33:38

What steps will reproduce the problem? 1. Downloaded from svn web2py Version 1.64.1 (2009-06-15 10:41:06)

  1. chdir to web2py directory
  2. python web2py.py
  3. What is the expected output? Tkinter based splash page.
  4. What do you see instead? 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.64.1 (2009-06-15 16:00:25) Database drivers available: SQLite3 Starting cron... choose a password:admin please visit: http://127.0.0.1:8000 use "kill -SIGTERM 26384" to shutdown the web2py server WARNING:root:WEB2PY CRON: cron.master not found at .../web2py/applications/ admin/cron/cron.master. Trying to re-create.
  5. What version of the product are you using? Version 1.64.1 (2009-06-15 16:00:25) from svn Python 2.6 ( r26 :66714, Nov 28 2008, 22:32:40)
  6. On what operating system? Ubuntu Linux 9.04 fully patched. The python-dev packages have been installed for 2.5 & 2.6 Please provide any additional information below. 8. If web2py server is shutdown and restarted then the warning about cron.master does not appear.
  7. Kpax cms was installed as 'cms'. At some point during creation of first access account to kpax the following message was printed on the server terminal screen:
:1: DeprecationWarning: the md5 module is deprecated; use hashlib instead 1. The first action after login with new user was to create a new folder and give it some dummy text. An attempt to change the access permissions for 'Everybody' to 'read' caused an error report: --- Error ticket for "cms" Ticket 127.0.0.1.2009-06-15.17-25-51.f1d9476b-507e-4c65-a839-a011df685d7f Error traceback Traceback (most recent call last): File ".../web2py/gluon/restricted.py", line 107, in restricted exec ccode in environment File ".../web2py/applications/cms/controllers/access.py", line 49, in File ".../web2py/gluon/globals.py", line 100, in self._caller = lambda f: f() File ".../web2py/applications/cms/controllers/access.py", line 47, in change if ch: redirect(request.vars.forward) File ".../web2py/gluon/http.py", line 99, in redirect location = location.replace('\r', '%0D').replace('\n', '%0A') AttributeError: 'list' object has no attribute 'replace' In file: .../web2py/applications/cms/controllers/access.py if not session.token: redirect(LOGIN) def change(): if len(request.args)<2: redirect(MAIN) table_name=request.args[0] record_id=request.args[1] if not is_owner(user_id,table_name,record_id): session.flash="not authorized" redirect(MAIN) access_types=db[table_name].access_types rows=db(db.access.table_name==table_name)\ (db.access.record_id==record_id)\ (db.access.users_group==db.users_group.id)\ .select(orderby=db.access.id) group_keys=dict([(r.users_group.id,r.access.access_type) for r in rows]) keys=dict([(r.access.id,r.access.access_type) for r in rows]) accesses=[] for g in session.groups: if table_name=='users_group' and g.id==int(record_id): continue item=Storage() item.group_id=g.id item.group_name=g.name item.membership_type=g.membership_type if group_keys.has_key(g.id): item.access_type=group_keys[g.id] else: item.access_type='none' accesses.append(item) ch=False for key,value in request.vars.items(): if key=='forward': continue ch=True g=int(key[1:]) if g==g_tuple[1]: continue if g==g_tuple[0] and user_id!=1: continue if group_keys.has_key(g): s=db(db.access.users_group==g)\ (db.access.record_id==record_id)\ (db.access.table_name==table_name) if value=='none': s.delete() elif value in access_types: s.update(access_type=value) elif value!='none' and value in access_types: db.access.insert(users_group=g, table_name=table_name, record_id=record_id, access_type=value) if ch: redirect(request.vars.forward) return dict(accesses=accesses,access_types=access_types) response._vars=response._caller(change) --- _Original issue: http://code.google.com/p/web2py/issues/detail?id=40_
alfonsodg commented 10 years ago

From hans.don...@pobox.com on July 18, 2009 00:02:16

this issue contains multiple issues

  1. What is the expected output? Tkinter based splash page.

as you download form source, you should have Tk available, in the output from (5) it is indicaed you do no have it: "WARNING:root:GUI not available because Tk library is not installed"

  1. If web2py server is shutdown and restarted then the warning about cron.master does not appear. default behaviour: when cron.master is not existing, it will be created on first run.
  2. Kpax cms was installed as 'cms'. At some point during creation of first access account to kpax the following message was printed on the server terminal screen: :1: DeprecationWarning: the md5 module is deprecated; use hashlib instead

Kpax is to be installed seperately (does not match your reproduce steps). Using MD5 instead of hashlib is to provide some compatibility with Python 2.4

Besides, KPAX is a seperate application(web2py based) and not part of web2py

  1. The first action after login with new user was to

See last remark at previous point.

alfonsodg commented 10 years ago

From massimod...@gmail.com on August 11, 2009 05:10:58

The only issue is the last one about list not having a replace method. This is an incompatibility between python and 2.6 and 2.5 cgi module. We only support 2.5 for this reason.

Status: Invalid

alfonsodg commented 10 years ago

From absh...@gmail.com on September 26, 2009 13:00:25

I also got the "WARNING:root:GUI not available because Tk library is not installed" message.

I am running Ubuntu 9.04 in a virtual box.

It may be obvious to all but me but I was able to resolve the problem by installing python-tk.