Error on start: 'Auth' object has no attribute 'wikimenu'

277 views
Skip to first unread message

jfinke

unread,
May 26, 2013, 6:26:23 PM5/26/13
to web...@googlegroups.com
I just downloaded the mac version of web2py.  When I start the server with a password, I immediately get an error ticket.

Error ticket for "welcome"

Ticket ID

127.0.0.1.2013-05-26.17-23-02.b3d13a3c-4b2c-445a-a4cf-2722911fae41

<type 'exceptions.AttributeError'> 'Auth' object has no attribute 'wikimenu'

Version

web2py™Version (2, 4, 7, 'stable', datetime.datetime(2013, 5, 24, 17, 48, 47))
PythonPython 2.5.1: /Users/jeremy/Downloads/web2py/web2py.app/Contents/MacOS/python

Traceback

1.
2.
3.
4.
5.
Traceback (most recent call last):
File "/home/mdipierro/web2py/gluon/restricted.py", line 212, in restricted
File "/Users/jeremy/Downloads/web2py/web2py.app/Contents/Resources/applications/welcome/models/menu.py", line 140, in <module>
AttributeError: 'Auth' object has no attribute 'wikimenu'

Error snapshot help

<type 'exceptions.AttributeError'>('Auth' object has no attribute 'wikimenu')


When I go to line 140 in models/menu.py, I see:

if "auth" in locals(): auth.wikimenu()

Any ideas?  Thanks!


jfinke

unread,
May 27, 2013, 8:14:37 AM5/27/13
to web...@googlegroups.com
Well, I installed the linux version on a VM I have and it worked perfectly.  So, I guess I will stick with that.  But something appears to be off with the compiled .app for the Mac.

LightDot

unread,
May 27, 2013, 8:49:04 AM5/27/13
to web...@googlegroups.com
By linux version you mean the source code version of the web2py download? You can run the source version on your Mac directly, you only need to install python.

Can't help with the original error since I don't use mac os x, but I'm sure some other mac user will come along shortly.

Regards,
Ales

Aurelijus Useckas

unread,
May 29, 2013, 3:20:41 AM5/29/13
to web...@googlegroups.com
I'm also having the save error during the start on mac os

jfinke

unread,
May 29, 2013, 9:53:03 AM5/29/13
to web...@googlegroups.com
Yes, I just ran the code version on a debian box and was not replicating the error.  My guess is that there is something hard coded in the compiled mac .app file.

Alan Etkin

unread,
May 29, 2013, 1:49:37 PM5/29/13
to web...@googlegroups.com
I just downloaded the mac version of web2py.  When I start the server with a password, I immediately get an error ticket.

Odd. It looks like the web2py core you are using has no implementation of the new .automenu() feature (added renently), but you are running an app with an updated scaffolding menu.py archive. The same error occurs if you install a new welcome app in an old version of web2py.

Massimo Di Pierro

unread,
May 30, 2013, 1:25:47 PM5/30/13
to web...@googlegroups.com
This is now fixed in the nightly build. The stable Mac version is broken. Will be reposted asap.


On Sunday, 26 May 2013 17:26:23 UTC-5, jfinke wrote:

Alan Etkin

unread,
Jun 9, 2013, 12:14:30 PM6/9/13
to web...@googlegroups.com
I built an application and uploaded the same to pythonanywhere.com using its admin interface for web2py. I am also having the same problem.

It should be enough to upgrade your web2py version to solve this. However, if you don't want to upgrade, open <app>/models/menu.py with a text editor (or edit the file from the admin app) and comment the last line:

# if "auth" in locals(): auth.wikimenu()

Alok Joshi

unread,
Jun 9, 2013, 5:49:01 PM6/9/13
to web...@googlegroups.com
Thanks Alan,
That worked. One question. When I upload my application(*.wp) file to pythonanywhere is it my web2py version which gets used? I was under the impression that the site runs its own web2py.
Any way, thanks for your answer again.




--
 
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/WMtCsS5zfww/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alan Etkin

unread,
Jun 9, 2013, 5:59:52 PM6/9/13
to web...@googlegroups.com

is it my web2py version which gets used?

My bad, I meant the web2py instance in pythonanywhere

Alok Joshi

unread,
Jun 10, 2013, 8:01:27 AM6/10/13
to web...@googlegroups.com
Thanks. (Sorry for the ugly font size in my earlier related message.)


On Sun, Jun 9, 2013 at 2:59 PM, Alan Etkin <spam...@gmail.com> wrote:

is it my web2py version which gets used?

My bad, I meant the web2py instance in pythonanywhere

--
Reply all
Reply to author
Forward
0 new messages