Skip to Content
Menu
This question has been flagged
2 Replies
3778 Views

 


odoo 13.0e


i get error ImportError: This module needs paramiko to automatically write backups to the FTP through SFTP. Please install paramiko on your system. (sudo pip3 install paramiko)

Avatar
Discard
Best Answer

Hi,

You are getting this message because the external python dependencies are not met. For the working of the module, it needs a python package named paramiko, which is not available in your environment, thats why the installation is getting blocked.


So install the paramiko python package, restart the odoo service and try again.


Thanks

Avatar
Discard
Best Answer

Hello there,

I'm sorry to link me in this topic. But I tried all the suggested solutions here (and on some other pages I found via google).

I'm still having this paramiko not found issue. And of course I tried to (re)install paramiko and pysftp (which was successful with pip3 and force reinstall), but still not running. And YES, I did server restart (and even server reboot, since I dont trust myself. ;-)

I'm on odoo 13 on a ubuntu 20.04 server, installed 3 instances of odoo with different ports. Already checked and repaired dependencies for apt.

Are there any other hints for installing auto_backup with running paramiko? Seems to be an sometimes upcoming issue, because I found it sometimes on the web.

I'm really thankful for any answers.

Regards, Riccardo



P.S.: Sure, I attach my log, but it's the same as I found above :-(

Error:

Odoo Server Error
Traceback (most recent call last):
  File "/opt/odoo-demo/odoo/addons/auto_backup/models/db_backup.py", line 18, in <module>
    import paramiko
ModuleNotFoundError: No module named 'paramiko'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/opt/odoo-demo/odoo/http.py", line 624, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo-demo/odoo/http.py", line 310, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo-demo/odoo/tools/pycompat.py", line 14, in reraise
    raise value
  File "/opt/odoo-demo/odoo/http.py", line 669, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo-demo/odoo/http.py", line 350, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo-demo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo-demo/odoo/http.py", line 339, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo-demo/odoo/http.py", line 915, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo-demo/odoo/http.py", line 515, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo-demo/addons/web/controllers/main.py", line 1326, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/opt/odoo-demo/addons/web/controllers/main.py", line 1314, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo-demo/odoo/api.py", line 387, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo-demo/odoo/api.py", line 374, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "<decorator-gen-59>", line 2, in button_immediate_install
  File "/opt/odoo-demo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
    return method(self, *args, **kwargs)
  File "/opt/odoo-demo/odoo/addons/base/models/ir_module.py", line 463, in button_immediate_install
    return self._button_immediate_function(type(self).button_install)
  File "/opt/odoo-demo/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function
    modules.registry.Registry.new(self._cr.dbname, update_module=True)
  File "/opt/odoo-demo/odoo/modules/registry.py", line 86, in new
    odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/opt/odoo-demo/odoo/modules/loading.py", line 421, in load_modules
    processed_modules += load_marked_modules(cr, graph,
  File "/opt/odoo-demo/odoo/modules/loading.py", line 313, in load_marked_modules
    loaded, processed = load_module_graph(
  File "/opt/odoo-demo/odoo/modules/loading.py", line 182, in load_module_graph
    load_openerp_module(package.name)
  File "/opt/odoo-demo/odoo/modules/module.py", line 376, in load_openerp_module
    __import__('odoo.addons.' + module_name)
  File "/opt/odoo-demo/odoo/addons/auto_backup/__init__.py", line 3, in <module>
    from . import models
  File "/opt/odoo-demo/odoo/addons/auto_backup/models/__init__.py", line 3, in <module>
    from . import db_backup
  File "/opt/odoo-demo/odoo/addons/auto_backup/models/db_backup.py", line 20, in <module>
    raise ImportError(
ImportError: This module needs paramiko to automatically write backups to the FTP through SFTP. Please install paramiko on your system. (sudo pip3 install paramiko)paramiko)
Avatar
Discard

Did anyone to downgrade paramiko or any other of the dependencies? Latest paramiko 2.7.2 is installed for sure on my server.