I would like to install Odoo 8 (OpenERP) on my Ubuntu 14.04 system I had to follow a tutorial to install Odoo but when I run this command it shows me these errors:
root#Nema:/# su odoo
odoo#Nema:/$ openerp-server
Traceback (most recent call last):
File "/usr/local/bin/openerp-server", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2749, in <module>
working_set = WorkingSet._build_master()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 444, in _build_master
ws.require(__requires__)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 725, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 628, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: qrcode
odoo#Nema:/$
how to solve this problem
Help me please ??
You're missing a library. Install it with pip, apt-get or any other way to install a package.
You'll probably need sudo to install the package.
apt-get
apt-get install python-qrcode
pip
pip install qrcode
Related
Traceback (most recent call last):
File "/opt/odoo151/odoo/odoo/service/server.py", line 1196, in load_server_wide_modules
odoo.modules.module.load_openerp_module(m)
File "/opt/odoo151/odoo/odoo/modules/module.py", line 396, in load_openerp_module
__import__('odoo.addons.' + module_name)
File "/opt/odoo151/odoo/odoo/addons/base/__init__.py", line 5, in <module>
from . import models
File "/opt/odoo151/odoo/odoo/addons/base/models/__init__.py", line 23, in <module>
from . import ir_mail_server
File "/opt/odoo151/odoo/odoo/addons/base/models/ir_mail_server.py", line 23, in <module>
from urllib3.contrib.pyopenssl import PyOpenSSLContext
File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 62, in <module>
from ..packages import six
ImportError: cannot import name 'six'
I was getting above error while trying to install odoo 15
I have already tried this command for installing six package->
sudo apt-
get install python-six
..but getting same error again and again even after installing 'six' package.
Try to install six packages
pip3 install six
OR
pip install six
It would be helpful if you updated urllib3. After upgrading urllib, I was able to resolve this. Please try it once:
sudo pip3 install urllib3 --upgrade
Try following command:
sudo -H pip3 install firebase_admin pyOpenSSL
You can try the following commands from inside your odoo directoty.
sudo pip3 install -r requirements.txt
Tried several methods to install matplotlib on Ubuntu 16.04, but failed miserably. First I ran
sudo apt-get install python3-matplotlib, it always installed matplotlib 1.5.1 and I wanted the latest version 3.2.1. So I purged it and ran pip3 install matplotlib and what I got was always the following error
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-hse72gvy/matplotlib/setup.py", line 139
raise IOError(f"Failed to download jquery-ui. Please download "
^
SyntaxError: invalid syntax
which seems to suggest that I must install jQuery-UI. I haven't found any working solutions on the internet. Any more has a tip or solution?
I installed elastalert from git clone https://github.com/Yelp/elastalert.git and integrated with slack tool but when I try to run elastalert using command python -m elastalert.elastalert --verbose --rule example_frequency.yaml I am getting this error:
Traceback (most recent call last):
File "runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/elastalert-0.2.1-py2.7.egg/elastalert/elastalert.py", line 29, in <module>
from . import kibana
File "/usr/local/lib/python2.7/dist-packages/elastalert-0.2.1-py2.7.egg/elastalert/kibana.py", line 4, in <module>
import urllib.error
ImportError: No module named error
I expect output of getting alerts in slack tool
I just have the same problem. I used python 2.7 to install elastalert.
So I remove elastalert and reinstall it with python36
pip uninstall elastalert
sudo yum install python36 gcc python36-devel -y
sudo yum install python36-setuptools -y
sudo easy_install-3.6 pip
cd elastalert/
pip3.6 install "setuptools>=11.3"
python3.6 setup.py install
pip3.6 install -r requirements.txt
pip3.6 install elastalert
python36 -m elastalert.elastalert
Hope useful for you or someone that need
I have installed the module onnx_tf from this link.
After that when I am verifying the installation as python -c "import onnx_tf" I am encountering the following error. How do I resolve it? Thank you
testuser#testuser:~$ python -c "import onnx_tf"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/testuser/.local/lib/python2.7/site-packages/onnx_tf/__init__.py", line 1, in <module>
from . import frontend
File "/home/testuser/.local/lib/python2.7/site-packages/onnx_tf/frontend.py", line 18, in <module>
from onnx_tf.common.handler_helper import get_all_frontend_handlers
File "/home/testuser/.local/lib/python2.7/site-packages/onnx_tf/common/handler_helper.py", line 5, in <module>
from onnx_tf.handlers.backend import * # noqa
File "/home/testuser/.local/lib/python2.7/site-packages/onnx_tf/handlers/backend/ceil.py", line 10, in <module>
#tf_func(tf.ceil)
AttributeError: 'module' object has no attribute 'ceil'
Check your tensorflow version
pip show tensorflow
If it's 2.x, you may need to change to older version.
pip install tensorflow-gpu==1.14
or if you are using a cpu...
pip install tensorflow==1.14
The following resolved this issue for me:
pip uninstall onnx-tf
pip install git+https://github.com/onnx/onnx-tensorflow.git
pip install tensorflow-addons
(Using TensorFlow 2.3 and Python 3.8)
I have downloaded Odoo 8.0 from git ,all my steps:
python --version
Python 2.7.10
Installed PostgresApp into Applications and executed
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
Installed pip
sudo easy_install pip
Finished processing dependencies for pip
and installed homebrew and Xcode-select
Installed other libs
brew install autoconf automake libtool
brew install libxml2 libxslt libevent
Installed Python dependencies
`sudo easy_install -U setuptools
Finished processing dependencies for setuptools
cd odoo/
sudo pip install --user -r requirements.txt
Successfully installed Mako-1.0.1 Pillow-2.7.0 Werkzeug-0.9.6 `
Running odoo
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
./odoo.py --addons-path=addons --db-filter=mydb
And i got this error:
Traceback (most recent call last):
File "./odoo.py", line 160, in <module>
main()
File "./odoo.py", line 156, in main
import openerp
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/__init__.py", line 76, in <module>
import modules
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/modules/__init__.py", line 27, in <module>
from . import db, graph, loading, migration, module, registry
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/modules/graph.py", line 32, in <module>
import openerp.osv as osv
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/osv/__init__.py", line 22, in <module>
import osv
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/osv/osv.py", line 23, in <module>
from .orm import Model, TransientModel, AbstractModel
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/osv/orm.py", line 5, in <module>
from ..models import (
File "/Users/Charlie/Desktop/Python_Workspace/odoo-8.0/openerp/models.py", line 56, in <module>
import psycopg2
File "/Library/Python/2.7/site-packages/psycopg2-2.6.2-py2.7-macosx-10.11-intel.egg/psycopg2/__init__.py", line 50, in <module>
from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: dlopen(/Library/Python/2.7/site-packages/psycopg2-2.6.2-py2.7-macosx-10.11-intel.egg/psycopg2/_psycopg.so, 2): Library not loaded: libpq.5.dylib
Referenced from: /Library/Python/2.7/site-packages/psycopg2-2.6.2-py2.7-macosx-10.11-intel.egg/psycopg2/_psycopg.so
Reason: unsafe use of relative rpath libpq.5.dylib in /Library/Python/2.7/site-packages/psycopg2-2.6.2-py2.7-macosx-10.11-intel.egg/psycopg2/_psycopg.so with restricted binary
I have worked on this about two days.Thanks a lot.