Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Stripe App for master cannot import api

By
Tech Support
on 5/20/16, 9:13 AM 359 views

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??

@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 :/

Tech Support
on 5/20/16, 11:26 AM

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

Ermin Trevisan
on 5/20/16, 11:33 AM
1

Ermin Trevisan

--Ermin Trevisan--
3524
| 6 3 7
Walchwil, Switzerland
--Ermin Trevisan--


Ermin Trevisan
On 5/20/16, 11:15 AM

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/20/16, 9:13 AM
Seen: 359 times
Last updated: 5/20/16, 11:32 AM