Discussion:
[web2py] Re: Web2py admin page causing internal error (version 2.9.10)
Dave S
2015-07-29 17:52:06 UTC
Permalink
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to 2.9.10,
so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors, so I am
unable to look at error tickets (they will just produce more errors).
I'm quite lost as to what I can do to fix this problem, as I can't even
read the error tickets (it's just a continuing cycle of internal errors).
You probably need to clear old sessions and old tickets out (back up the
tickets, then clear the directory). As I remember it, old sessions and old
tickets were the two biggest sources of error loops.

/dps
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Li
2015-07-29 18:24:07 UTC
Permalink
I've run sessions2trash.py to remove all sessions, as well as remove all
the files from the errors folder. Unfortunately I'm still getting the error
loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to 2.9.10,
so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors, so I am
unable to look at error tickets (they will just produce more errors).
I'm quite lost as to what I can do to fix this problem, as I can't even
read the error tickets (it's just a continuing cycle of internal errors).
You probably need to clear old sessions and old tickets out (back up the
tickets, then clear the directory). As I remember it, old sessions and old
tickets were the two biggest sources of error loops.
/dps
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Richard Vézina
2015-07-29 19:49:33 UTC
Permalink
Did you update the admin app?

Also, if I remember there have been many correction over 2.10.x web2py
build... I would avoid the 2.10.x series for this reason... I remember
having testing and having found it not that stable and I stay with 2.9.5...

2.11.2 seems to work great...

Richard
I am looking at the errors for the admin (at the files), and I am getting
a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined"" error
That doesn't ring any bells for me, although I'm currently on 2.11.2. I
think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as remove all
the files from the errors folder. Unfortunately I'm still getting the error
loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to
2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors, so I
am unable to look at error tickets (they will just produce more errors).
I'm quite lost as to what I can do to fix this problem, as I can't
even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back up
the tickets, then clear the directory). As I remember it, old sessions and
old tickets were the two biggest sources of error loops.
/dps
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Richard Vézina
2015-07-29 19:52:49 UTC
Permalink
sorry I miss read... 2.9.10...

Why not 2.9.12...

Why not install 2.11.2??

Richard
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x web2py
build... I would avoid the 2.10.x series for this reason... I remember
having testing and having found it not that stable and I stay with 2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on 2.11.2. I
think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as remove
all the files from the errors folder. Unfortunately I'm still getting the
error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to
2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors, so
I am unable to look at error tickets (they will just produce more errors).
I'm quite lost as to what I can do to fix this problem, as I can't
even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back up
the tickets, then clear the directory). As I remember it, old sessions and
old tickets were the two biggest sources of error loops.
/dps
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Li
2015-07-30 03:31:44 UTC
Permalink
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"

I am getting the following traceback when I look in the admin/errors files:

Traceback (most recent call last):
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
if DEMO_MODE or MULTI_USER_MODE:
NameError: name 'DEMO_MODE' is not defined

I have checked 0.py model, and DEMO_MODE = False, so I have no idea why I
am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x web2py
build... I would avoid the 2.10.x series for this reason... I remember
having testing and having found it not that stable and I stay with 2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on 2.11.2. I
think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as remove
all the files from the errors folder. Unfortunately I'm still getting the
error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to
2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors, so
I am unable to look at error tickets (they will just produce more errors).
I'm quite lost as to what I can do to fix this problem, as I can't
even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back up
the tickets, then clear the directory). As I remember it, old sessions and
old tickets were the two biggest sources of error loops.
/dps
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Li
2015-07-30 04:48:21 UTC
Permalink
Deleting all the .pyc files from the web2py directory seems to have done
the trick.
Post by Mark Li
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
NameError: name 'DEMO_MODE' is not defined
I have checked 0.py model, and DEMO_MODE = False, so I have no idea why I
am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x web2py
build... I would avoid the 2.10.x series for this reason... I remember
having testing and having found it not that stable and I stay with 2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on 2.11.2.
I think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as remove
all the files from the errors folder. Unfortunately I'm still getting the
error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to
2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors,
so I am unable to look at error tickets (they will just produce more
errors).
I'm quite lost as to what I can do to fix this problem, as I can't
even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back up
the tickets, then clear the directory). As I remember it, old sessions and
old tickets were the two biggest sources of error loops.
/dps
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Richard Vézina
2015-07-30 13:28:13 UTC
Permalink
Don't forget to update the web2py file in your app...

Backup your app before :)

https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ

Richard
Post by Mark Li
Deleting all the .pyc files from the web2py directory seems to have done
the trick.
Post by Mark Li
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
NameError: name 'DEMO_MODE' is not defined
I have checked 0.py model, and DEMO_MODE = False, so I have no idea why I
am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x web2py
build... I would avoid the 2.10.x series for this reason... I remember
having testing and having found it not that stable and I stay with 2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on 2.11.2.
I think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as remove
all the files from the errors folder. Unfortunately I'm still getting the
error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to
2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors,
so I am unable to look at error tickets (they will just produce more
errors).
I'm quite lost as to what I can do to fix this problem, as I can't
even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back
up the tickets, then clear the directory). As I remember it, old sessions
and old tickets were the two biggest sources of error loops.
/dps
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Li
2015-07-30 18:39:38 UTC
Permalink
I did miss this, I keep skipping over this part!
Post by Richard Vézina
Don't forget to update the web2py file in your app...
Backup your app before :)
https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ
Richard
Post by Mark Li
Deleting all the .pyc files from the web2py directory seems to have done
the trick.
Post by Mark Li
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
NameError: name 'DEMO_MODE' is not defined
I have checked 0.py model, and DEMO_MODE = False, so I have no idea why
I am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x web2py
build... I would avoid the 2.10.x series for this reason... I remember
having testing and having found it not that stable and I stay with 2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on
2.11.2. I think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as
remove all the files from the errors folder. Unfortunately I'm still
getting the error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4 to
2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing errors,
so I am unable to look at error tickets (they will just produce more
errors).
I'm quite lost as to what I can do to fix this problem, as I
can't even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back
up the tickets, then clear the directory). As I remember it, old sessions
and old tickets were the two biggest sources of error loops.
/dps
--
- 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,
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Richard Vézina
2015-07-30 18:45:53 UTC
Permalink
You mean you don't do it and your app still works? Or you are not there
yet...

Hope it works for you...

Richard
Post by Mark Li
I did miss this, I keep skipping over this part!
On Thu, Jul 30, 2015 at 6:28 AM, Richard Vézina <
Post by Richard Vézina
Don't forget to update the web2py file in your app...
Backup your app before :)
https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ
Richard
Post by Mark Li
Deleting all the .pyc files from the web2py directory seems to have done
the trick.
Post by Mark Li
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
NameError: name 'DEMO_MODE' is not defined
I have checked 0.py model, and DEMO_MODE = False, so I have no idea why
I am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x
web2py build... I would avoid the 2.10.x series for this reason... I
remember having testing and having found it not that stable and I stay with
2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on
2.11.2. I think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as
remove all the files from the errors folder. Unfortunately I'm still
getting the error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4
to 2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing
errors, so I am unable to look at error tickets (they will just produce
more errors).
I'm quite lost as to what I can do to fix this problem, as I
can't even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out (back
up the tickets, then clear the directory). As I remember it, old sessions
and old tickets were the two biggest sources of error loops.
/dps
--
- 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,
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark Li
2015-07-30 20:39:01 UTC
Permalink
I didn't update the extra files from web2py (like appadmin.py) into my app
folder, but it still worked. I've updated the files now as well though.

On Thu, Jul 30, 2015 at 11:45 AM, Richard Vézina <
Post by Richard Vézina
You mean you don't do it and your app still works? Or you are not there
yet...
Hope it works for you...
Richard
Post by Mark Li
I did miss this, I keep skipping over this part!
On Thu, Jul 30, 2015 at 6:28 AM, Richard Vézina <
Post by Richard Vézina
Don't forget to update the web2py file in your app...
Backup your app before :)
https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ
Richard
Post by Mark Li
Deleting all the .pyc files from the web2py directory seems to have
done the trick.
Post by Mark Li
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
NameError: name 'DEMO_MODE' is not defined
I have checked 0.py model, and DEMO_MODE = False, so I have no idea
why I am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
On Wed, Jul 29, 2015 at 3:49 PM, Richard Vézina <
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x
web2py build... I would avoid the 2.10.x series for this reason... I
remember having testing and having found it not that stable and I stay with
2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on
2.11.2. I think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as
remove all the files from the errors folder. Unfortunately I'm still
getting the error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4
to 2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing
errors, so I am unable to look at error tickets (they will just produce
more errors).
I'm quite lost as to what I can do to fix this problem, as I
can't even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out
(back up the tickets, then clear the directory). As I remember it, old
sessions and old tickets were the two biggest sources of error loops.
/dps
--
- 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,
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Richard Vézina
2015-07-30 20:45:25 UTC
Permalink
If you have not customized them it is a not brainer and you are much more
confident that your app is working properly with the new web2py version...

The only thing is that the new welcome is BS3 based, so you may take care
if you are not ready for it...

Richard
Post by Mark Li
I didn't update the extra files from web2py (like appadmin.py) into my app
folder, but it still worked. I've updated the files now as well though.
On Thu, Jul 30, 2015 at 11:45 AM, Richard Vézina <
Post by Richard Vézina
You mean you don't do it and your app still works? Or you are not there
yet...
Hope it works for you...
Richard
Post by Mark Li
I did miss this, I keep skipping over this part!
On Thu, Jul 30, 2015 at 6:28 AM, Richard Vézina <
Post by Richard Vézina
Don't forget to update the web2py file in your app...
Backup your app before :)
https://groups.google.com/d/msg/web2py/tVyL7z7WHkw/mce13Vh-k3UJ
Richard
Post by Mark Li
Deleting all the .pyc files from the web2py directory seems to have
done the trick.
Post by Mark Li
I've updated to version 2.11.2, and the problem still persists. I've
deleted all errors, cache, and sessions for both admin app and "myapp"
File "/home/marladarla7/web2py/
gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "applications/admin/models/0_imports.py", line 15, in <module>
from mercurial import ui, hg, cmdutil
File "/home/marladarla7/web2py/gluon/custom_import.py", line 71, in
custom_importer
return NATIVE_IMPORTER(oname, globals, locals, fromlist, level)
File "mercurial.py", line 3, in <module>
NameError: name 'DEMO_MODE' is not defined
I have checked 0.py model, and DEMO_MODE = False, so I have no idea
why I am getting this error
Post by Richard Vézina
sorry I miss read... 2.9.10...
Why not 2.9.12...
Why not install 2.11.2??
Richard
On Wed, Jul 29, 2015 at 3:49 PM, Richard Vézina <
Post by Richard Vézina
Did you update the admin app?
Also, if I remember there have been many correction over 2.10.x
web2py build... I would avoid the 2.10.x series for this reason... I
remember having testing and having found it not that stable and I stay with
2.9.5...
2.11.2 seems to work great...
Richard
I am looking at the errors for the admin (at the files), and I am
getting a "<type 'exceptions.NameError'> name 'DEMO_MODE' is not defined""
error
That doesn't ring any bells for me, although I'm currently on
2.11.2. I think the step that required some extra effort for pydal 2.10.x.
/dps
Post by Mark Li
I've run sessions2trash.py to remove all sessions, as well as
remove all the files from the errors folder. Unfortunately I'm still
getting the error loop. Should I do this for the admin app as well?
Post by Dave S
I just upgraded my web2py version on Pythonanywhere from 2.7.4
to 2.9.10, so my live site can match my test site web2py version
This in turn has caused the admin page to start producing
errors, so I am unable to look at error tickets (they will just produce
more errors).
I'm quite lost as to what I can do to fix this problem, as I
can't even read the error tickets (it's just a continuing cycle of internal
errors).
You probably need to clear old sessions and old tickets out
(back up the tickets, then clear the directory). As I remember it, old
sessions and old tickets were the two biggest sources of error loops.
/dps
--
- 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,
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in
the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
- 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 a topic in the
Google Groups "web2py-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/web2py/Z84QlkT6MqE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
For more options, visit https://groups.google.com/d/optout.
--
- 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
For more options, visit https://groups.google.com/d/optout.
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...