--
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.
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
________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/
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
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
________________________________________ Kiran Subbaraman http://subbaraman.wordpress.com/about/On Tue, 06-01-2015 11:07 PM, Massimo Di Pierro wrote:
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/
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
________________________________________ 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.
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.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
<type 'exceptions.AttributeError'> 'DAL' object has no attribute 'Field'
Version
web2py™ Version 2.9.12-beta+timestamp.2015.01.07.16.40.02 Python Python 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'
all working fine in Windows .
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.
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())from gluon.dal import Row
ImportError: cannot import name Row
--
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.
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).
-----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:
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.
from gluon.sqlhtml import table_field, represent, Row