UnboundLocalError: local variable 'crid' referenced before assignment

Asked by Kamik

poweremail v. 0.6.3
In an email request, I get errors

[2010-05-17 12:53:07,719] INFO:Power Email:Starting Header reception for account:5.
[2010-05-17 12:53:08,129] INFO:Power Email:IMAP Server Connected & logged in successfully Account:5.
[2010-05-17 12:53:08,260] INFO:Power Email:IMAP Folder selected successfully Account:5.
[2010-05-17 12:53:08,397] INFO:Power Email:IMAP Folder Statistics for Account:5:INBOX (MESSAGES 760 RECENT 0 UIDNEXT 788 UIDVALIDITY 1269845782 UNSEEN 0)
[2010-05-17 12:53:08,491] INFO:Power Email:Header for Mail 1 Saved successfully as ID:339 for Account:5.
[2010-05-17 12:53:08,602] INFO:Power Email:Header for Mail 2 Saved successfully as ID:340 for Account:5.
.....
.....
[2010-05-17 12:53:18,773] INFO:Power Email:Header for Mail 74 Saved successfully as ID:412 for Account:5.
[2010-05-17 12:53:19,161] ERROR:Power Email:[01]:
[2010-05-17 12:53:19,162] ERROR:Power Email:[02]: Environment Information :
[2010-05-17 12:53:19,162] ERROR:Power Email:[03]: System : Linux-2.6.31-21-generic-pae-i686-with-Ubuntu-9.10-karmic
[2010-05-17 12:53:19,162] ERROR:Power Email:[04]: OS Name : posix
[2010-05-17 12:53:19,162] ERROR:Power Email:[05]: Distributor ID: Ubuntu
[2010-05-17 12:53:19,163] ERROR:Power Email:[06]: Description: Ubuntu 9.10
[2010-05-17 12:53:19,163] ERROR:Power Email:[07]: Release: 9.10
[2010-05-17 12:53:19,163] ERROR:Power Email:[08]: Codename: karmic
[2010-05-17 12:53:19,163] ERROR:Power Email:[09]: Operating System Release : 2.6.31-21-generic-pae
[2010-05-17 12:53:19,164] ERROR:Power Email:[10]: Operating System Version : #59-Ubuntu SMP Wed Mar 24 08:47:55 UTC 2010
[2010-05-17 12:53:19,164] ERROR:Power Email:[11]: Operating System Architecture : 32bit
[2010-05-17 12:53:19,164] ERROR:Power Email:[12]: Operating System Locale : en_US.UTF8
[2010-05-17 12:53:19,164] ERROR:Power Email:[13]: Python Version : 2.6.4
[2010-05-17 12:53:19,165] ERROR:Power Email:[14]: OpenERP-Server Version : 5.0.10
[2010-05-17 12:53:19,165] ERROR:Power Email:[15]: Last revision No. & ID :
[2010-05-17 12:53:19,165] ERROR:Power Email:[16]: Save Header->Mailbox create error Account:5,Mail:75
[2010-05-17 12:53:19,438] ERROR:web-services:[01]:
[2010-05-17 12:53:19,439] ERROR:web-services:[02]: Environment Information :
[2010-05-17 12:53:19,439] ERROR:web-services:[03]: System : Linux-2.6.31-21-generic-pae-i686-with-Ubuntu-9.10-karmic
[2010-05-17 12:53:19,439] ERROR:web-services:[04]: OS Name : posix
[2010-05-17 12:53:19,439] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2010-05-17 12:53:19,440] ERROR:web-services:[06]: Description: Ubuntu 9.10
[2010-05-17 12:53:19,440] ERROR:web-services:[07]: Release: 9.10
[2010-05-17 12:53:19,440] ERROR:web-services:[08]: Codename: karmic
[2010-05-17 12:53:19,440] ERROR:web-services:[09]: Operating System Release : 2.6.31-21-generic-pae
[2010-05-17 12:53:19,441] ERROR:web-services:[10]: Operating System Version : #59-Ubuntu SMP Wed Mar 24 08:47:55 UTC 2010
[2010-05-17 12:53:19,441] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-05-17 12:53:19,441] ERROR:web-services:[12]: Operating System Locale : en_US.UTF8
[2010-05-17 12:53:19,441] ERROR:web-services:[13]: Python Version : 2.6.4
[2010-05-17 12:53:19,442] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.10
[2010-05-17 12:53:19,442] ERROR:web-services:[15]: Last revision No. & ID :
[2010-05-17 12:53:19,442] ERROR:web-services:[16]: Traceback (most recent call last):
[2010-05-17 12:53:19,442] ERROR:web-services:[17]: File "/usr/lib/openerp-server/osv/osv.py", line 58, in wrapper
[2010-05-17 12:53:19,443] ERROR:web-services:[18]: return f(self, dbname, *args, **kwargs)
[2010-05-17 12:53:19,443] ERROR:web-services:[19]: File "/usr/lib/openerp-server/osv/osv.py", line 119, in execute
[2010-05-17 12:53:19,443] ERROR:web-services:[20]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2010-05-17 12:53:19,443] ERROR:web-services:[21]: File "/usr/lib/openerp-server/osv/osv.py", line 111, in execute_cr
[2010-05-17 12:53:19,444] ERROR:web-services:[22]: return getattr(object, method)(cr, uid, *args, **kw)
[2010-05-17 12:53:19,444] ERROR:web-services:[23]: File "/usr/lib/openerp-server/addons/poweremail/poweremail_core.py", line 650, in send_receive
[2010-05-17 12:53:19,444] ERROR:web-services:[24]: self.get_mails(cr, uid, ids, context)
[2010-05-17 12:53:19,444] ERROR:web-services:[25]: File "/usr/lib/openerp-server/addons/poweremail/poweremail_core.py", line 526, in get_mails
[2010-05-17 12:53:19,445] ERROR:web-services:[26]: if self.save_header(cr, uid, mail, id, mails[0].split()[0],ctx):#If saved succedfully then increment last mail recd
[2010-05-17 12:53:19,445] ERROR:web-services:[27]: File "/usr/lib/openerp-server/addons/poweremail/poweremail_core.py", line 366, in save_header
[2010-05-17 12:53:19,445] ERROR:web-services:[28]: if crid:
[2010-05-17 12:53:19,445] ERROR:web-services:[29]: UnboundLocalError: local variable 'crid' referenced before assignment

Question information

Language:
English Edit question
Status:
Solved
For:
Power Email Edit question
Assignee:
No assignee Edit question
Solved by:
Sharoon Thomas http://openlabs.co.in
Solved:
Last query:
Last reply:
Revision history for this message
Best Sharoon Thomas http://openlabs.co.in (sharoonthomas) said :
#1

Hello,

Looks like you are on an extremely old version.

Could you please download the bazaar version or if you want to download zip its available here: http://openlabs.co.in/openerp/repositories/miscellaneous/

Revision history for this message
Kamik (kamik-sl) said :
#2

Thanks Sharoon Thomas http://openlabs.co.in, that solved my question.