Hello there,
I'm sorry to warm up this old thread. 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 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.
Are there any news in teh meantime for installing auto_backup with running paramiko?
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)
Hi Cole, I'm the creator of this module. I haven't personally tested this module on Windows 7.. Only on Linux systems. In theory everything should be working since you say you can import the library in other Python files. Have you tried a reboot in the meanwhile? Just to be sure.
Hi! Yes, I tried a reboot but it didn't help me.
Even though it does not help you right now (because you are already on a W7 machine) ... you will receive more support on feedback on any issues you might be dealing if you use what most of the people are using (and what Odoo is mainly built for ... and that is Ubuntu or debian).
And I have to agree with Gunnar. You should really change to Ubuntu/debian. Much more knowledge from the community, more flexibility and this module will work fine out of the box as a bonus.
Thank you for the advices :)