Please help us test the 2.9.12 binaries

381 views
Skip to first unread message

Massimo Di Pierro

unread,
Jan 6, 2015, 12:37:59 PM1/6/15
to web...@googlegroups.com
The 2.9.12 source is in


The 2.9.12 binaries are in 


Please help us test them so we can released 2.9.12.

2.9.12 includes mostly bug fixes but there is some major DAL refactoring so we are concerned about backward compatibility. We think it works but please let us know asap if this breaks your code.

Massimo

Richard Vézina

unread,
Jan 6, 2015, 1:00:10 PM1/6/15
to web2py-users
Does not boot up!!

Richard

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

JorgeH

unread,
Jan 6, 2015, 3:10:10 PM1/6/15
to web...@googlegroups.com
Is there a changelog?

Massimo Di Pierro

unread,
Jan 6, 2015, 5:52:15 PM1/6/15
to web...@googlegroups.com
I will post a changelog after we know it works.

I have re-posted it.

Massimo

Kiran Subbaraman

unread,
Jan 6, 2015, 8:12:30 PM1/6/15
to web...@googlegroups.com
Downloaded this:, and extracted to disk.

Run web2py.exe, and see this:
C:\Users\subbaraman\Downloads\web2py_win_001\web2py>web2py.exe
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "__main__.py", line 128, in <module>
  File "__main__web2py__.py", line 18, in <module>
  File "gluon/__init__.py", line 15, in <module>
  File "gluon/globals.py", line 28, in <module>
  File "gluon/dal/__init__.py", line 1, in <module>
  File "gluon/dal/base.py", line 153, in <module>
ImportError: No module named adapters

Doesn't start.
Windows 8.1, python 2.7.9
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/

Kiran Subbaraman

unread,
Jan 6, 2015, 8:18:22 PM1/6/15
to web...@googlegroups.com
Downloaded this: http://web2py.com/examples/static/nightly/web2py_win.zip, and extracted to disk.

Run web2py.exe, and see this:
C:\Users\subbaraman\Downloads\web2py_win_001\web2py>web2py.exe
Traceback (most recent call last):
  File "<string>", line 6, in <module>
  File "__main__.py", line 128, in <module>
  File "__main__web2py__.py", line 18, in <module>
  File "gluon/__init__.py", line 15, in <module>
  File "gluon/globals.py", line 28, in <module>
  File "gluon/dal/__init__.py", line 1, in <module>
  File "gluon/dal/base.py", line 153, in <module>
ImportError: No module named adapters

Downloaded this: http://web2py.com/examples/static/nightly/web2py_src.zip, and extracted to disk.
Run python web2py.py, and see this:
Traceback (most recent call last):
  File "web2py.py", line 18, in <module>
    import gluon.widget
  File "C:\Users\subbaraman\Downloads\web2py_src_002\web2py\gluon\__init__.py", line 15, in <module>
    from globals import current
  File "C:\Users\subbaraman\Downloads\web2py_src_002\web2py\gluon\globals.py", line 28, in <module>
    from gluon.dal import Field
ImportError: No module named dal

Doesn't start in either case.

Windows 8.1, python 2.7.9
________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
On Tue, 06-01-2015 11:07 PM, Massimo Di Pierro wrote:

Massimo Di Pierro

unread,
Jan 7, 2015, 12:10:47 AM1/7/15
to web...@googlegroups.com
OK. One more try. The problems with SRC and OSX versions are fixed. How about the WIN version?

The GTK widget of the OSX version seems very slow on my Mac. I cannot figure out if it is a local problem or a more general one.

Kiran Subbaraman

unread,
Jan 7, 2015, 1:03:09 AM1/7/15
to web...@googlegroups.com
SRC seems to work ok now. I haven't deployed a working application on it to test it.
WIN starts, but shows an error:

Traceback (most recent call last
):
  File "gluon/restricted.py", line 224, in restricted
  File "C:/Users/subbaraman/Downloads/web2py_win/web2py/applications/welcome/models/db.py", line 14, in <module>
    db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all'])
  File "gluon/dal/base.py", line 443, in __init__
  File "gluon/custom_import.py", line 92, in custom_importer
ImportError: No module named reserved_sql_keywords

________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/

Massimo Di Pierro

unread,
Jan 7, 2015, 11:49:59 AM1/7/15
to web...@googlegroups.com
Can you try once more please? I do not have a windows machine handy.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.

Kiran Subbaraman

unread,
Jan 7, 2015, 12:01:31 PM1/7/15
to web...@googlegroups.com
WIN works - it comes up, and can navigate through the bundled welcome / examples / admin apps. Haven't tested a working DB based application on it, though.

________________________________________
Kiran Subbaraman
http://subbaraman.wordpress.com/about/
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.

Richard Vézina

unread,
Jan 7, 2015, 3:08:58 PM1/7/15
to web2py-users
Source work now with Ubunt 12.04, very slow though...

Richard

Richard Vézina

unread,
Jan 7, 2015, 3:10:26 PM1/7/15
to web2py-users
Most part of app seems to work... Is there some stuff I should check more then other, thing that you made change that you want to make sure it is not breaking backward compatibility?

Richard

Niphlod

unread,
Jan 8, 2015, 3:18:35 PM1/8/15
to web...@googlegroups.com
all working fine in Windows .
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Jan 9, 2015, 12:08:28 AM1/9/15
to web...@googlegroups.com
I am finding the GTK widget very slow. Is the server also slow?

Richard Vézina

unread,
Jan 9, 2015, 12:18:16 PM1/9/15
to web2py-users
GTK and app too, but I didn't profile or do any investigation...

Richard

To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.

Richard Vézina

unread,
Jan 9, 2015, 12:19:34 PM1/9/15
to web2py-users
Should profiler can give us a cue if the server is more or less slow between web2py version?

I can profile web2py 2.9.5 and the last beta if you want.

Richard

Leonel Câmara

unread,
Jan 9, 2015, 3:15:21 PM1/9/15
to web...@googlegroups.com
I'm testing this on a pretty beefy laptop but I didn't notice any slowdown.

Dmitry Ermolaev

unread,
Jan 9, 2015, 3:54:58 PM1/9/15
to web...@googlegroups.com
I use _src.zip 

<type 'exceptions.AttributeError'> 'DAL' object has no attribute 'Field'

Version

web2py™Version 2.9.12-beta+timestamp.2015.01.07.16.40.02
PythonPython 2.7.8: C:\Python27\python.exe (prefix: C:\Python27)

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
Traceback (most recent call last
):
File "C:\web2py-9-12\gluon\restricted.py", line 224, in restricted
exec ccode in environment
File "C:/web2py-9-12/applications/bs3b/models/db.py", line 11, in <module>
db.Field('is_enabled', 'boolean', required=False, default=True),
File "C:\web2py-9-12\gluon\dal\base.py", line 893, in __getattr__
return ogetattr(self, key)
AttributeError: 'DAL' object has no attribute 'Field'

Dmitry Ermolaev

unread,
Jan 9, 2015, 4:00:05 PM1/9/15
to web...@googlegroups.com
Field(..) work
db.Field(..) not work

пятница, 9 января 2015 г., 23:54:58 UTC+3 пользователь Dmitry Ermolaev написал:

Dmitry Ermolaev

unread,
Jan 9, 2015, 4:19:00 PM1/9/15
to web...@googlegroups.com
try define Field as
   Field('balance', 'decimal(16,8)', default = Decimal('0.0')),

then try insert default value - 0+e00
it rise error!

Massimo Di Pierro

unread,
Jan 9, 2015, 4:21:10 PM1/9/15
to web...@googlegroups.com
sqlite? Do you know this worked before?

Dave S

unread,
Jan 9, 2015, 4:31:00 PM1/9/15
to web...@googlegroups.com
 
On Thursday, January 8, 2015 at 12:18:35 PM UTC-8, Niphlod wrote:
all working fine in Windows .


For me, also, but my test case is still a toy app:  local access only, sqlite database, a few hundred entries.  But Mozart still shows a birthday on January 27th.
Running on a W7 laptop.

/dps


 
Message has been deleted

Dave S

unread,
Jan 12, 2015, 1:50:29 PM1/12/15
to web...@googlegroups.com


On Friday, January 9, 2015 at 1:31:00 PM UTC-8, Dave S wrote:
 
On Thursday, January 8, 2015 at 12:18:35 PM UTC-8, Niphlod wrote:
all working fine in Windows .


For me, also, but my test case is still a toy app:  local access only, sqlite database, a few hundred entries.  But Mozart still shows a birthday on January 27th.
Running on a W7 laptop.


For the sake of dotting the 'i's and crossing the 't's that are relevant to the DAL, I'll note that my app uses queries that include features like select, limitby, orderby:
results = db((db.tbl.birthdate.month()==request.now.monthy)).select( db.tbl.fields, db.tbl.birthdate,            limitby=(0, 75), orderby=~=tbl.birthdate.month()|db.tbl.birthdate.day())


/dps

mcamel

unread,
Jan 16, 2015, 3:33:29 PM1/16/15
to web...@googlegroups.com
Hello,

I make extensive use of DAL functionalities (filter in/out, common filter, callbacks...) and everything works fine on my apps with 2.9.12beta at Ubuntu, except:

    from gluon.dal import Row
ImportError: cannot import name Row

I use it to guess if i'm working with a regular Dal Row or with a dict returned by db.executesql(..., as_dict=True) using is_instance(..., Row).

Regards!.

Martin Weissenboeck

unread,
Jan 16, 2015, 4:40:36 PM1/16/15
to web2py-users
Same problem. This works both with 2.9.11 and 2.9.12:

try:
   from gluon.dat.objects import Row
except:
   from gluon.dal import Row

Regards, Martin

--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Mit freundlichen Grüßen / With kind regards
Martin Weissenböck
Gregor-Mendel-Str. 37, 1190 Wien
Austria / European Union

mcamel

unread,
Feb 5, 2015, 6:51:57 AM2/5/15
to web...@googlegroups.com, mwei...@gmail.com
Works fine.

Just a typo with 'dat' instead of 'dal'. :-)


Thanks!

vince

unread,
Feb 10, 2015, 11:28:27 AM2/10/15
to web...@googlegroups.com
i have the same problem too, 2.9.11 works fine.

pa...@cancamusa.net

unread,
Mar 1, 2015, 5:43:14 AM3/1/15
to web...@googlegroups.com
In my app I also have several errors importing Table and Row from DAL in modules. They sure can be fixed, but there is no hint at the changelog, and web2py used to advertise as "has never broken backwards compatibility". I kindly suggest indicating the required changes in the changelog, instead of "Modular DAL, thanks Giovanni", which doesn't look like it requires action (and provides no hint about the solution).

IVINH

unread,
Mar 2, 2015, 2:08:45 AM3/2/15
to web...@googlegroups.com
web2py_no_console.exe does not work on windows 8?

Niphlod

unread,
Mar 2, 2015, 3:33:20 AM3/2/15
to web...@googlegroups.com
at the very least past the error you're seeing

Dave S

unread,
Mar 2, 2015, 3:26:49 PM3/2/15
to web...@googlegroups.com


On Sunday, March 1, 2015 at 2:43:14 AM UTC-8, pa...@cancamusa.net wrote:
In my app I also have several errors importing Table and Row from DAL in modules. They sure can be fixed, but there is no hint at the changelog, and web2py used to advertise as "has never broken backwards compatibility". I kindly suggest indicating the required changes in the changelog, instead of "Modular DAL, thanks Giovanni", which doesn't look like it requires action (and provides no hint about the solution).

Well, from the original message in this thread:

"2.9.12 includes mostly bug fixes but there is some major DAL refactoring so we are concerned about backward compatibility. We think it works but please let us know asap if this breaks your code."

Now, to address your problem, we need to know what broke.  Can you give us some code examples?

/dps

Pablo Angulo

unread,
Mar 2, 2015, 4:21:25 PM3/2/15
to web...@googlegroups.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, Dave!

El 02/03/15 a las 21:26, Dave S escribió:

> Well, from the original message in this thread:
>
> "2.9.12 includes mostly bug fixes but there is some major DAL refactoring so we are concerned about backward compatibility. We think it works but please let us know asap if this breaks your code."


Certainly, "major DAL refactoring" would be a better description than "Modular DAL, thanks Giovanni" in the changelog. That's the document we are supposed to read before upgrading, and not every thread in this group.
>
> Now, to address your problem, we need to know /what/ broke.  Can you give us some code examples?


The examples were already in this thread:

> -from gluon.dal import Table
> +try:#web2py >=2.9.12
> +   from gluon.dal.objects import Table
> +except:#web2py <=2.9.11
> +   from gluon.dal import Table

> -from gluon.dal import Expression
> +try:#web2py >=2.9.12
> +   from gluon.dal.objects import Expression
> +except:#web2py <=2.9.11
> +   from gluon.dal import Expression

> -from gluon.dal import Rows
> +try:#web2py >=2.9.12
> +   from gluon.dal.objects import Rows
> +except:#web2py <=2.9.11
> +   from gluon.dal import Rows


Anyway, I apologize that I could not make the tests earlier, and I want to thank every one involved in this release. The changes I had to do are no big deal, but there is so much emphasis in this project on not breaking backwards compatibility, that I wanted to suggest to tell about this issue in the changelog.

Regards
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU9NRNAAoJEATsOw+FDrzIKbsP/RZx3E41AWYDpAZcFmQedcwp
MH8w4O6u2UHKtFSk58zDcQRSuoHkOmyTL4CY+uR5LqHDrgQ+LQIV3mWpCSr7k7JR
PIb9ZIJKvhrs03I67Hl/lYHVELE7+Zmur6V+EN1Fqid9l6CQ7UjucDsJpLTndMaO
EO3DSqX10ZqoiOEyiCDl2F1G1dEt+B81QOT3W5KX4CabjyEyfEjcQHlpoXbYjdyx
JXE/GSBbaqFT8g9QIIU/p/PN58vzW6EfH/COHz8GcRqc893AIdVxyKTvrVXfPwgs
RkxtVchQdoC/OOHjiQHcnHTb18esPJxMCgxryVFVlLLNVUElf3qMOD7IBkDFStTE
+oJ6eN4i91x9336GCxmmZLxeKy0MY6ctu+065ssEiG6GdkhsGH+ckh+EuRXiHRqP
D9MTmmWdt2mqAkCJaALdObL4rUX2nn+z7aY9enHzGt4BEMd0nPY+9IWBU/9FEzk0
nw86DCsuLzEN9LqC5vAsQp8LzAoM74ZkpbVsTiz1ZdAkaEPQ34gslQN6vHYeuH2y
7US5RR9XgWUuf0DAy/+f6OI2AGsH2njF9cCfS+DaJ89Z6ZGcOEhxqk4DmR6/pBgU
5YwU1UMPYmZUBgOBvByI/spY8tMT2B3fU2BewgZLstHGuMjwO1plXWdgmHUtGfzS
PofspetlV4f7SU/Vm7zw
=xBEb
-----END PGP SIGNATURE-----

Niphlod

unread,
Mar 2, 2015, 4:45:33 PM3/2/15
to web...@googlegroups.com
note for anyone: "stable" doesn't mean that nothing changes. It means that documented API's as explained in the book are stable.

web2py doesn't send your application's code back to web2py.com for further analysis :-P
If you don't test yourself (or add tests to the default test suite)...well, we try hard, but something can slip by.

Dave S

unread,
Mar 2, 2015, 6:43:50 PM3/2/15
to web...@googlegroups.com


On Monday, March 2, 2015 at 1:21:25 PM UTC-8, Pablo Angulo wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, Dave!

El 02/03/15 a las 21:26, Dave S escribió:
> Well, from the original message in this thread:
>
> "2.9.12 includes mostly bug fixes but there is some major DAL refactoring so we are concerned about backward compatibility. We think it works but please let us know asap if this breaks your code."


Certainly, "major DAL refactoring" would be a better description than "Modular DAL, thanks Giovanni" in the changelog. That's the document we are supposed to read before upgrading, and not every thread in this group.

But .. a thread about testing 2.9.12 that you are replying in doesn't amount to having to read every thread in this group.
 
>
> Now, to address your problem, we need to know /what/ broke.  Can you give us some code examples?


The examples were already in this thread:


Sorry; I seem to have read them the first time up , but I thought this was a new post without previous examples.
 
 
Anyway, I apologize that I could not make the tests earlier, and I want to thank every one involved in this release. The changes I had to do are no big deal, but there is so much emphasis in this project on not breaking backwards compatibility, that I wanted to suggest to tell about this issue in the changelog.


Well, that's what this thread is about.  Finding out what broke, whether it is a new bug or a place where backwards compatibility needs to be broken (for example , having in the old versions incorrectly followed a specification), or something that requires discussion.

/dps

 

Pablo Angulo

unread,
Mar 3, 2015, 4:27:48 AM3/3/15
to web...@googlegroups.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El 03/03/15 a las 00:43, Dave S escribió:
> Well, that's what this thread is about.  Finding out what broke, whether it is a new bug or a place where backwards compatibility /needs/ to be broken (for example , having in the old versions incorrectly followed a specification), or something that requires discussion.

...and this thread has played its role. Now it's time, I propose, to update the changelog. Nothing is broken, the problem is tiny and won't affect most people. But the way it is now, a person who upgrades might find that her code breaks, then either spend some time fixing it (and may not fix it in the canonical way), or spend some time looking for this thread.

If you put a warning in the changelog, as has been done other times, the canonical fix will be available in the very directory of the web2py installation, in the first file you should read before upgrading.

That's all I have to say, I don't have any trouble with changing a few lines of my code, I understand it's for the better and I just want to avoid trouble to some people over there. But if you don't think it's the right thing to do, be my guest!

Have a nice day! I mean it :-) !

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJU9X5uAAoJEATsOw+FDrzIvKMP+gJczrvySxmrDE7HahomTGFi
Rba/ygsi04xRb2ktISO4oZKBMFj6ZzW7nCTQXdG/9YpdzZWjCNEZJQS4TDUapZQG
xtzTAVLOTgXfNj1tr4oCRQuuEXBem9kHycUDs2VePeRUpTkx92Txgylnb3ipqWEh
pt63tUIyQwlb5y1AOw6Rw2DNan10DRLCd6ypPcgCILOJRrPAv1kO+AX8xOTVTXse
OS66hVlKJQKFCnsNVaqhD1PpJcjdOAetE9hqhlycK63vVHvNdjzzWM0yU22mC+z4
LGQRh7KGsMuk+hWq5UcLdrGLhNcr1/DdMPrRTn/BZCprpyoVhdP0CE3QdD6xQl1b
ypqlHDH+fuNz5EyEUrJSuTu3lobcSfb4Svh+T22cRESss3+hpg+WnLhB7kGHPCB2
3506J3Xo3n6qkJ2ZvL3NzrYpGG/S4wLeRce2AdMx3es8cXU91KyulojzzkRq5Hbl
CEVANYYZZoIpql0i8zq94kG0b0lw8MeZdJYSAqGbq2LmjYg3sAhXwol9zHwNa9dj
9MJwRLC7XfQP8pt/pV+HmzY3LxcpHOHzmUBSQwppPXH+dbjgA4mOv3MDjG/fsKjq
PXtpFYAkRf/rjb6oaiX0KIN2XPyxOXvj7im4ZrZrdr23z7IYvAbFGUiIzWvGWq50
7cJhX97hskVWNTWnUDGc
=AveM
-----END PGP SIGNATURE-----

Manuel Cameselle

unread,
Mar 3, 2015, 4:41:15 AM3/3/15
to web...@googlegroups.com
Just another related problem (at plugin_solidtable).
from gluon.sqlhtml import table_field, represent, Row

Don't know the equivalent for 'table_field'. Has changed its name os has disappear?.


Regards.

Massimo Di Pierro

unread,
Mar 3, 2015, 12:00:14 PM3/3/15
to web...@googlegroups.com
we will fix in the next version. I think we should not break that code.
Reply all
Reply to author
Forward
0 new messages