This should be possible. This is the purpose of pydal. Perhaps the file 
truly corrupted or the folder is missing/incorrect?

On Friday, 17 April 2015 17:47:42 UTC-5, Ron Chatterjee wrote:
>
>
> from pydal import DAL, Field
>
>
> db = 
> DAL('sqlite://storage.sqlite',folder='C:....\web2py\applications\my_app_name\databases',auto_import=True);
>
> in my application models/db.py I have my database definition.
>
> I can't connect through pydal. I get an error:
>
>   return self.driver.Connection(dbpath, **driver_args)
> OperationalError: unable to open database file
>
>
> Am I missing something? Basically trying to use pydal as a standalone to 
> load existing database. If it is even possible.  
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to