This question has been flagged

I downloaded this app: https://www.odoo.com/apps/modules/master/payment_stripe/

As soon as I try to install it I get this traceback:

```2016-05-20 13:07:41,702 5853 CRITICAL admin openerp.modules.module: Couldn't load module payment_stripe

2016-05-20 13:07:41,702 5853 CRITICAL admin openerp.modules.module: cannot import name api

2016-05-20 13:07:41,703 5853 ERROR admin openerp.modules.registry: Failed to load registry

Traceback (most recent call last):

File "/opt/odoo/src/openerp/modules/registry.py", line 386, in new

openerp.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/odoo/src/openerp/modules/loading.py", line 338, in load_modules

loaded_modules, update_module)

File "/opt/odoo/src/openerp/modules/loading.py", line 237, in load_marked_modules

loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)

File "/opt/odoo/src/openerp/modules/loading.py", line 123, in load_module_graph

load_openerp_module(package.name)

File "/opt/odoo/src/openerp/modules/module.py", line 324, in load_openerp_module

__import__('openerp.addons.' + module_name)

File "/opt/odoo/src/openerp/modules/module.py", line 61, in load_module

mod = imp.load_module('openerp.addons.' + module_part, f, path, descr)

File "/opt/odoo/src/addons/payment_stripe/__init__.py", line 4, in <module>

import models

File "/opt/odoo/src/addons/payment_stripe/models/__init__.py", line 3, in <module>

import payment_transaction

File "/opt/odoo/src/addons/payment_stripe/models/payment_transaction.py", line 8, in <module>

from odoo import api, fields, models, _

ImportError: cannot import name api

> /opt/odoo/src/addons/payment_stripe/models/payment_transaction.py(8)<module>()

-> from odoo import api, fields, models, _```

I'm on the most up-to-date version of Odoo. Is there some reason this isn't working??

Avatar
Discard

@Ermin,

Thank you. I actually figured out that 9.0 was no longer the master version shortly after I posted the question... However, I can't delete the question :/

No need to delete it, it may be helpful for others.

Best Answer

Yes. You can not expect that a module you have downloaded from the master version to work in 9.0. The master version usually contains modules for the upcoming version.

Avatar
Discard