web2py trunk is broken??

236 views
Skip to first unread message

Jim S

unread,
Sep 30, 2014, 10:49:54 AM9/30/14
to web...@googlegroups.com
I just pulled/updated my code from code.google.com using hg. 

When I try to run web2py, I'm getting the following:

C:\dev\bootstrap3\web2py>python web2py.py
Traceback (most recent call last):
 
File "web2py.py", line 18, in <module>
   
import gluon.widget
 
File "C:\dev\bootstrap3\web2py\gluon\__init__.py", line 17, in <module>
   
from validators import *
 
File "C:\dev\bootstrap3\web2py\gluon\validators.py", line 25, in <module>
   
from gluon.dal.objects import FieldVirtual, FieldMethod
ImportError: No module named objects


Any ideas?

-Jim

Jim S

unread,
Sep 30, 2014, 10:51:24 AM9/30/14
to web...@googlegroups.com
Sorry, when I said I updated 'my code' I meant that I pulled the latest web2py code.

-Jim

Niphlod

unread,
Sep 30, 2014, 11:00:30 AM9/30/14
to web...@googlegroups.com
there's a biiig change going on on dal (modularization). it should not go into exception but we're in the process of fixing those hiccups. 

Anthony

unread,
Sep 30, 2014, 11:03:45 AM9/30/14
to web...@googlegroups.com
I think it's OK on Github, but for some reason, the modular DAL commit on Google Code includes everything except the actual DAL module.

Anthony

Jim Steil

unread,
Sep 30, 2014, 11:13:15 AM9/30/14
to web...@googlegroups.com
Thanks Niphlod, I'll be patient and let you guys do your work.  If you could drop a note when it is resolved I'd really appreciate it.

--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/pvVGtt7lpdc/unsubscribe.
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/d/optout.

Niphlod

unread,
Sep 30, 2014, 11:17:21 AM9/30/14
to web...@googlegroups.com
if you fetch the main repo instead of the old one it's all ok right now.

Jim Steil

unread,
Sep 30, 2014, 11:41:47 AM9/30/14
to web...@googlegroups.com
Sorry Niphlod, but I'm not exactly sure what you mean by that.

I did this:


to get a fresh copy, but still have the same error.

Also tried via https and am getting this error:

abort: error: _ssl.c:504: error:1408E0F4:SSL routines:SSL3_GET_MESSAGE:unexpecte
d message

...this is not an emergency or anything.  I have plenty of alternatives.  If you can just drop a note when it is all working again I'd appreciate it.

-Jim

Anthony

unread,
Sep 30, 2014, 11:45:46 AM9/30/14
to web...@googlegroups.com
You'll need to get it from Github -- Google Code is broken at the moment (the commit is missing the entire new dal folder).

Anthony
To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

pbreit

unread,
Oct 1, 2014, 12:11:13 AM10/1/14
to web...@googlegroups.com
Is Github the "preferred" source now?

Niphlod

unread,
Oct 1, 2014, 3:10:23 AM10/1/14
to web...@googlegroups.com
in theory they should be in sync. In practice, sometimes googlecode falls behind. For sure the "originator" of new code is now github, thanks to its "social" features.

Johann Spies

unread,
Oct 1, 2014, 8:08:36 AM10/1/14
to web...@googlegroups.com

On Tuesday, September 30, 2014 8:45:46 AM UTC-7, Anthony wrote:
You'll need to get it from Github -- Google Code is broken at the moment (the commit is missing the entire new dal folder).

 
I have tried the github version now and it is broken:

 File "/home/js/web2py/gluon/dal/base.py", line 891, in __getattr__
return ogetattr(self, key)
AttributeError: 'DAL' object has no attribute 'Table'


Regards
Johann

Niphlod

unread,
Oct 1, 2014, 9:13:28 AM10/1/14
to web...@googlegroups.com
uhm. strange. did you care to prune the old dir before overwriting ? (i.e. you don't have a gluon/dal.py file) ?

Johann Spies

unread,
Oct 2, 2014, 7:57:42 AM10/2/14
to web...@googlegroups.com
On 1 October 2014 15:13, Niphlod <nip...@gmail.com> wrote:
uhm. strange. did you care to prune the old dir before overwriting ? (i.e. you don't have a gluon/dal.py file) ?
t.

I cloned web2py and copied my old apps back to the application folder.  The only changes to the trunk version was to put back my old parameters*.py and the .hg directory.

web2py> tree gluon | grep dal
├── dal
│   ├── test_dal_nosql.py
│   ├── test_dal.py


Regards
Johann

--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

Johann Spies

unread,
Oct 2, 2014, 8:13:38 AM10/2/14
to web...@googlegroups.com
I just made a new copy (git clone) and web2py is running OK there. 

Johann Spies

unread,
Oct 2, 2014, 8:14:52 AM10/2/14
to web...@googlegroups.com
But as soon as I try to one of my apps, I get the error in my previous(yesterday' s) message.

Jim S

unread,
Oct 2, 2014, 11:36:21 AM10/2/14
to web...@googlegroups.com
Can anyone give us an ETA on when this might be resolved?

-Jim

Anthony

unread,
Oct 2, 2014, 11:55:28 AM10/2/14
to web...@googlegroups.com
On Thursday, October 2, 2014 8:14:52 AM UTC-4, Johann Spies wrote:
But as soon as I try to one of my apps, I get the error in my previous(yesterday' s) message.

What code in your app is triggering that error?

Johann Spies

unread,
Oct 6, 2014, 2:18:49 AM10/6/14
to web...@googlegroups.com
Apology for the late answer.  I was away for a few days.

This is the traceback:
Traceback (most recent call last
):
File "/home/js/web2py/gluon/restricted.py", line 224, in restricted
exec ccode in environment
File "/home/js/web2py/applications/init/models/db.py", line 131, in <module>
akb_signature_uuid = db.Table(db, 'akb_signature_uuid',
File "/home/js/web2py/gluon/dal/base.py", line 891, in __getattr__
return ogetattr(self, key)
AttributeError: 'DAL' object has no attribute 'Table'

akb_signature_uuid = db.Table(db, 'akb_signature_uuid',
                     Field('uuid', length = 36, default = lambda:str(uuid.uuid4()),
                           notnull = True, writable = False, readable = False,
                           unique = True, ondelete = 'CASCADE'),
                     Field('created_on', 'datetime', default = request.now,
                           readable = False, writable = False),
                     Field('created_by', db.auth_user, default = auth.user_id,
                           readable = False, writable = False),
                     Field('updated_on', 'datetime', default = request.now,
                           readable = False, writable = False),
                     Field('updated_by', db.auth_user, update = auth.user_id,
                           readable = False, writable = False)
                     )

I know this is not necessary nowadays, but it was when I built the app.

Regards
Johann.

Jim S

unread,
Oct 6, 2014, 10:36:13 AM10/6/14
to web...@googlegroups.com
Any chance of getting an estimate on when this is all going to be resolved?  Pulling with hg from google code is still broken.  

-Jim


On Tuesday, September 30, 2014 9:49:54 AM UTC-5, Jim S wrote:

Niphlod

unread,
Oct 6, 2014, 11:07:16 AM10/6/14
to web...@googlegroups.com
I'd seriously stop trying pulling from hg and start from github. That's the main repo now.

Anthony

unread,
Oct 6, 2014, 12:19:35 PM10/6/14
to web...@googlegroups.com, web2py-developers
Looks like for backward compatibility, the old dal.py had:

DAL.Table = Table

However, it appears this got dropped in the recent modularization. Perhaps it should be added back in (not sure if other backward compatibility assignments got dropped as well).

Anthony

Jim Steil

unread,
Oct 6, 2014, 12:48:48 PM10/6/14
to web...@googlegroups.com
Any options to clone/pull using Mercurial?

--

Dave S

unread,
Oct 8, 2014, 2:30:29 PM10/8/14
to web...@googlegroups.com


On Monday, October 6, 2014 9:48:48 AM UTC-7, Jim S wrote:
Any options to clone/pull using Mercurial?

Mercurial has the Convert extension that covers Git repos, and another one that I think only does Git, but I haven't tried accessing GitHub with them.  Web2py is the only reason I have a GitHub account, and I just do a download from the web interface instead of a pull.

/dps

Jim Steil

unread,
Oct 8, 2014, 2:34:11 PM10/8/14
to web...@googlegroups.com
Me too, not a git user, only have a github account to keep up with the latest web2py developments.  Personally, I'd really like to see the mercurial repos to still be available, but I understand it makes sense to only keep one.

LightDot

unread,
Oct 8, 2014, 4:32:35 PM10/8/14
to web...@googlegroups.com
Googlecode and Github repos are equal, there are no plans to abandon either one, AFAIK. I'll raise this up on the devel list.

I just pulled from both, made a diff and there really is a problem at the moment. I'll report the issue in a bit. This happened a couple of times in the past and was always fixed quickly.

Regards

Derek

unread,
Oct 9, 2014, 6:17:20 PM10/9/14
to web...@googlegroups.com
I should make a fossil repo and update it rarely.
Reply all
Reply to author
Forward
0 new messages