error installing girotel import filter

Bug #698352 reported by Paul van Sighem
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Account Banking Framework
Invalid
Undecided
Unassigned

Bug Description

When installing the account_banking_nl_girotel module I get the error message as below and installation fails. Server is running on Ubuntu 9.10, python 2.6. Account_banking module has allready been installed. Multibank module also fails with almost the same error message. For some reason the object mem_bank_transaction cannot be found.

Environment Information :
System : Windows-Vista-6.1.7600
OS Name : nt
Operating System Release : Vista
Operating System Version : 6.1.7600
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.15
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 299, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py", line 77, in __call__
    return getattr(self, method)(*params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 633, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py", line 613, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 61, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 736, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 576, in load_module_graph
    register_class(package.name)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 398, in register_class
    imp.load_module(m, *fm)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/account_banking_nl_girotel/__init__.py", line 27, in <module>
    import girotel
  File "/usr/lib/python2.6/dist-packages/uno.py", line 262, in _uno_import
    return _g_delegatee( name, *optargs, **kwargs )
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/account_banking_nl_girotel/girotel.py", line 103, in <module>
    class transaction(models.mem_bank_transaction):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/account_banking_nl_girotel/girotel.py", line 113, in transaction
    'BA': bt.PAYMENT_TERMINAL,
AttributeError: type object 'mem_bank_transaction' has no attribute 'PAYMENT_TERMINAL'

Revision history for this message
Pieter J. Kersten (EduSense BV) (pieterj) wrote :

This trace suggests a mismatch between the versions of account_banking and account_banking_xxx.
Please update your code, either from lauchpad (account-banking) or from our website http://www.edusense.nl/. The version in addons-extra is outdated.

Changed in account-banking:
status: New → Invalid
Revision history for this message
Paul van Sighem (paul-vansighem) wrote :

I updated both modules to the most recent ones from edusense.nl (r39) and still experience the same problems. I also tried to install the modules on an all-in-one-installation on a Windows 7 machine and got the same error message.

Revision history for this message
Pieter J. Kersten (EduSense BV) (pieterj) wrote :

Then I suspect there to be an old version somewhere earlier on the Python path. The trace clearly indicates that the class was found, but that the expected constant is missing, which is present in r39.

Can you verify that there are no older versions are lingering around?

Revision history for this message
Pieter J. Kersten (EduSense BV) (pieterj) wrote :

Paul,

Did you restart your server after installing the latest versions? If you forget and old modules were overwritten, the old python code will stay in memory, leading to the impression that "it did not work".

Like to hear from you.

Revision history for this message
Paul van Sighem (paul-vansighem) wrote : Re: [Bug 698352] Re: error installing girotel import filter
Download full text (4.2 KiB)

Pieter.

Dat had ik dus niet gedaan. Gisteren met bazaar de allerlaatste versie
gedownload. Straks ga ik de server restanten en opnieuw proberen. Ik laat je
weten hoe het gaat.

groeten,
Paul.
Op 2011 1 10 23:11 schreef "Pieter J. Kersten (EduSense BV)" <
<email address hidden>> het volgende:
> Paul,
>
> Did you restart your server after installing the latest versions? If you
> forget and old modules were overwritten, the old python code will stay
> in memory, leading to the impression that "it did not work".
>
> Like to hear from you.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/698352
>
> Title:
> error installing girotel import filter
>
> Status in Account Banking Framework:
> Invalid
>
> Bug description:
> When installing the account_banking_nl_girotel module I get the error
message as below and installation fails. Server is running on Ubuntu 9.10,
python 2.6. Account_banking module has allready been installed. Multibank
module also fails with almost the same error message. For some reason the
object mem_bank_transaction cannot be found.
>
>
>
> Environment Information :
> System : Windows-Vista-6.1.7600
> OS Name : nt
> Operating System Release : Vista
> Operating System Version : 6.1.7600
> Operating System Architecture : 32bit
> Operating System Locale : en_US.cp1252
> Python Version : 2.5.2
> OpenERP-Client Version : 5.0.15
> Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
call last):
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py",
line 299, in dispatch
> result = LocalService(service_name)(method, *params)
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py",
line 77, in __call__
> return getattr(self, method)(*params)
> File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
line 633, in execute
> return self._execute(db, uid, wiz_id, datas, action, context)
> File
"/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
line 613, in _execute
> return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
> File
"/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py",
line 178, in execute
> res = self.execute_cr(cr, uid, data, state, context)
> File
"/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py",
line 73, in execute_cr
> action_res = action(self, cr, uid, data, context)
> File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py",
line 92, in _upgrade_module
> db, pool = pooler.restart_pool(cr.dbname, update_module=True)
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py",
line 61, in restart_pool
> return get_db_and_pool(db_name, force_demo, status,
update_module=update_module)
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py",
line 40, in get_db_and_pool
> addons.load_modules(db, force_demo, status, update_module)
> File
"/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py",
line 736, in load_modules
> r = load_module_graph(cr, graph, status, report=repor...

Read more...

Revision history for this message
Paul van Sighem (paul-vansighem) wrote :
Download full text (4.3 KiB)

Beste Pieter,

opnieuw opstarten bleek de oplossing te zijn. Ik heb zojuist succesvol
bankgegevens van ING via girotel formaat kunnen inlezen en verwerken. Dank
je voor je hulp en voor je stukje software.

Groeten,

Paul van Sighem

2011/1/10 Pieter J. Kersten (EduSense BV) <email address hidden>

> Paul,
>
> Did you restart your server after installing the latest versions? If you
> forget and old modules were overwritten, the old python code will stay
> in memory, leading to the impression that "it did not work".
>
> Like to hear from you.
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/698352
>
> Title:
> error installing girotel import filter
>
> Status in Account Banking Framework:
> Invalid
>
> Bug description:
> When installing the account_banking_nl_girotel module I get the error
> message as below and installation fails. Server is running on Ubuntu 9.10,
> python 2.6. Account_banking module has allready been installed. Multibank
> module also fails with almost the same error message. For some reason the
> object mem_bank_transaction cannot be found.
>
>
>
> Environment Information :
> System : Windows-Vista-6.1.7600
> OS Name : nt
> Operating System Release : Vista
> Operating System Version : 6.1.7600
> Operating System Architecture : 32bit
> Operating System Locale : en_US.cp1252
> Python Version : 2.5.2
> OpenERP-Client Version : 5.0.15
> Last revision No. & ID :Bazaar Package not Found !Traceback (most recent
> call last):
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py",
> line 299, in dispatch
> result = LocalService(service_name)(method, *params)
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/netsvc.py",
> line 77, in __call__
> return getattr(self, method)(*params)
> File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
> line 633, in execute
> return self._execute(db, uid, wiz_id, datas, action, context)
> File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/service/web_services.py",
> line 613, in _execute
> return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
> File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py",
> line 178, in execute
> res = self.execute_cr(cr, uid, data, state, context)
> File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/wizard/__init__.py",
> line 73, in execute_cr
> action_res = action(self, cr, uid, data, context)
> File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py",
> line 92, in _upgrade_module
> db, pool = pooler.restart_pool(cr.dbname, update_module=True)
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py",
> line 61, in restart_pool
> return get_db_and_pool(db_name, force_demo, status,
> update_module=update_module)
> File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py",
> line 40, in get_db_and_pool
> addons.load_modules(db, force_demo, status, update_module)
> File
> "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__ini...

Read more...

Revision history for this message
Paul van Sighem (paul-vansighem) wrote :

Restarting the server did the trick. Problem is solved and I managed to import ING bank statements via the Girotel import filter. Thanks for your help and your great piece of software.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.