This happens when you pass a db object to modules and you have threading 
issues (like you try to use it in a different thread than the one which 
created it).

On Tuesday, 30 October 2012 01:29:57 UTC-5, Hassan Alnatour wrote:
>
> Dear ALL , 
>
> Am getting this error in a lot of places , i think its a user privilege 
> issue ,  at as i noticed a lot of people are having the same  problem , so 
> did anyone solve this on a windows machine ?? and if you did it on a linux 
> machine please provide the solution two so we can help other with it two  , 
>
> Hope you can help us Massimo with this issue  , i have been trying to 
> solve it for a couple of weeks now 
>
> Best Regards,
>
>
>
> Versionweb2py™(2, 0, 9, datetime.datetime(2012, 9, 13, 23, 51, 30), 
> 'stable')Traceback
>
> 1.
> 2.
> 3.
> 4.
> 5.
> 6.
> 7.
> 8.
> 9.
> 10.
> 11.
> 12.
> 13.
> 14.
> 15.
> 16.
> 17.
> 18.
> 19.
> 20.
> 21.
> 22.
> 23.
> 24.
> 25.
> 26.
> 27.
>
> Traceback (most recent call last):
>   File "/users/www-data/web2py/gluon/********main.py", line 547, in wsgibase
>  session._try_store_on_disk(req********uest, response)
> File "/users/www-data/web2py/gluon/********globals.py", line 686, in 
> _try_store_on_disk
> cPickle.dump(dict(self), response.session_file)
> File "/usr/lib/python2.7/copy_reg.**p******y", line 74, in _reduce_ex
> getstate = self.__getstate__
> File "/users/www-data/web2py/gluon/********dal.py", line 7344, in __getattr__
> self.__allocate()
>
> File "/users/www-data/web2py/gluon/********dal.py", line 7337, in __allocate
>
> self._record = self._table[int(self)]
>
> File "/users/www-data/web2py/gluon/********dal.py", line 7624, in __getitem__
> return self._db(self._id == key).select(limitby=(0,1)).fir********st()
> File "/users/www-data/web2py/gluon/********dal.py", line 8766, in select
> return adapter.select(self.query,fiel********ds,attributes)
> File "/users/www-data/web2py/gluon/********dal.py", line 2094, in select
> return super(SQLiteAdapter, self).select(query, fields, attributes)
> File "/users/www-data/web2py/gluon/********dal.py", line 1594, in select
> return self._select_aux(sql,fields,at********tributes)
> File "/users/www-data/web2py/gluon/********dal.py", line 1559, in _select_aux
>  self.execute(sql)
>   File "/users/www-data/web2py/gluon/********dal.py", line 1671, in execute
>     return self.log_execute(*a, **b)
> File "/users/www-data/web2py/gluon/********dal.py", line 1665, in log_execute
> ret = self.cursor.execute(*a, **b)
> ProgrammingError: Cannot operate on a closed database.
>
>

-- 



Reply via email to