Skip to Content
Menu
This question has been flagged
1 Reply
20591 Views


i try to install odoo 12 using cookbook. When i perform this command

$ sudo apt-get install -y gcc python3.5-dev libxml2-dev \libxslt1-dev libevent-dev libsasl2-dev libssl1.0-dev libldap2-dev \libpq-dev libpng-dev libjpeg-dev

i get

notice, instead «libpng-dev» chase «libpng12-dev»E: impossible to find package libssl1.0-devE:  impossible to find any package with template «libssl1.0-dev»E: impossible to find package with regular sentence «libssl1.0-dev»​

i skiped these massages

then i created base in postgresql

and connected to git

then i got clone

and then i perform  pip3 install -r requirements.txt

and get errors:

Ignoring gevent: markers 'sys_platform != "win32" and python_version >= "3.7"' don't match your environment
Ignoring greenlet: markers 'python_version >= "3.7"' don't match your environment
Ignoring lxml: markers 'sys_platform != "win32" and python_version >= "3.7"' don't match your environment
Ignoring lxml: markers 'sys_platform == "win32"' don't match your environment
Ignoring pypiwin32: markers 'sys_platform == "win32"' don't match your environment
Collecting Babel==2.3.4 (from -r requirements.txt (line 1))
........

..........

Collecting soupsieve>=1.2 (from beautifulsoup4->ofxparse==0.16->-r requirements.txt (line 21))
Downloading https://files.pythonhosted.org/packages/b9/a5/7ea40d0f8676bde6e464a6435a48bc5db09b1a8f4f06d41dd997b8f3c616/soupsieve-1.9.1-py2.py3-none-any.whl
Building wheels for collected packages: ebaysdk, feedparser, html2text, Mako, MarkupSafe, ofxparse, psutil, pydot, pyldap, PyPDF2, pyusb, reportlab, suds-jurko, vatnumber, vobject, olefile
Building wheel for ebaysdk (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/a5/76/f4/03967ae85aea44c3d93d8cbcc29f5c37da8e6c3d30694adb7c
Building wheel for feedparser (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/8c/69/b7/f52763c41c5471df57703a0ef718a32a5e81ee35dcf6d4f97f
Building wheel for html2text (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/eb/79/cc/a25e320cadfd6a680a05666e56e5591f0fac8d5b1c6d7a0db7
Building wheel for Mako (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/2d/e1/9d/3269a224fb166136755a0279c1e0c434738be1e02bedd37415
Building wheel for MarkupSafe (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/28/de/65/f28b426d990edb591113e1549c8a0f09034e5958e440629306
Building wheel for ofxparse (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/25/82/73/11275e0a45f587792e2a334a0e9c81a5bd35fd4a825d1f192a
Building wheel for psutil (setup.py) ... error
ERROR: Complete output from command /home/pena/odoo-12.0/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-5hqq89qw/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-8ogfhljt --python-tag cp35:
ERROR: running bdist_wheel
running build
running build_py
creating build

....

.....

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psutil
Running setup.py clean for psutil
Building wheel for pydot (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/59/7f/14/5a40a9ec16d3c2e4106498e7fc9f1fd94f4eba38b484cad72a
Building wheel for pyldap (setup.py) ... error
ERROR: Complete output from command /home/pena/odoo-12.0/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-5hqq89qw/pyldap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-nkax86b0 --python-tag cp35:
ERROR: defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
extra_compile_args:
extra_objects:
include_dirs: /usr/include /usr/include/sasl /usr/loca

...

...

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pyldap
Running setup.py clean for pyldap
Building wheel for PyPDF2 (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/53/84/19/35bc977c8bf5f0c23a8a011aa958acd4da4bbd7a229315c1b7
Building wheel for pyusb (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/a6/69/c7/258e736ee9bdb4553bd9701424b259436b979cf96201af612f
Building wheel for reportlab (setup.py) ... error
ERROR: Complete output from command /home/pena/odoo-12.0/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-5hqq89qw/reportlab/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-xjd253od --python-tag cp35:
ERROR: ################################################
#Attempting install of _rl_accel & pyHnj
#extensions from '/tmp/pip-install-5hqq89qw/reportlab/src/rl_addons/rl_accel'
################################################
################################################
#Attempting install of _renderPM
#extensions from '/tmp/pip-install-5hqq89qw/reportlab/src/rl_addons/renderPM'
will use package libart 2.3.12
# installing without freetype no ttf, sorry!
# You need to install a static library version of the freetype2 software
# If you need truetype support in renderPM
# You may need to edit setup.cfg (win32)
# or edit this file to access the library if it is installed
################################################
Standard T1 font curves already downloaded
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/reportlab
copying src/reportlab/__init__.py -> build/lib.linux-x86_64-3.5/reportlab
copying src/reportlab/rl_config.py -> build/lib.linux-x86_64-3.5/reportlab
copying src/reportlab/rl_settings.py -> build/lib.linux-x86_64-3.5/reportlab
creating build/lib.linux-x86_64-3.5/reportlab/graphics

......  

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for reportlab
Running setup.py clean for reportlab
Building wheel for suds-jurko (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/12/68/53/d3902c054e32115da1d45bac442a547a071a86a65db4d77027
Building wheel for vatnumber (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/cb/c0/7d/fe241b8e1fbe3e8a9037f535aba9487ee23070534b34234ef9
Building wheel for vobject (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/55/ad/70/63facf0491e0af25842c9afe72489fcb8dd902520f4308aa02
Building wheel for olefile (setup.py) ... done
Stored in directory: /home/pena/.cache/pip/wheels/4b/f4/11/bc4166107c27f07fd7bba707ffcb439619197638a1ac986df3
Successfully built ebaysdk feedparser html2text Mako MarkupSafe ofxparse pydot PyPDF2 pyusb suds-jurko vatnumber vobject olefile
Failed to build psutil pyldap reportlab
Installing collected packages: pytz, Babel, chardet, decorator, docutils, lxml, urllib3, certifi, idna, requests, ebaysdk, feedparser, greenlet, gevent, html2text, MarkupSafe, Jinja2, six, libsass, Mako, pbr, mock, num2words, soupsieve, beautifulsoup4, ofxparse, passlib, olefile, Pillow, psutil, psycopg2, pyparsing, pydot, pyldap, PyPDF2, pyserial, python-dateutil, pyusb, qrcode, reportlab, suds-jurko, python-stdnum, vatnumber, vobject, Werkzeug, XlsxWriter, xlwt, xlrd
Running setup.py install for psutil ... error
ERROR: Complete output from command /home/pena/odoo-12.0/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-5hqq89qw/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ufih_dri/install-record.txt --single-version-externally-managed --compile --install-headers /home/pena/odoo-12.0/include/site/python3.5/psutil:
ERROR: running install
running build
running build_py
creating build

....

compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/home/pena/odoo-12.0/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-5hqq89qw/psutil/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-ufih_dri/install-record.txt --single-version-externally-managed --compile --install-headers /home/pena/odoo-12.0/include/site/python3.5/psutil" failed with error code 1 in /tmp/pip-install-5hqq89qw/psutil/

Could you help me please


Avatar
Discard

Please refer to the exact source of your installation method. And you should use Ubuntu 18.04 and not the outdated 16.04.

Author

i use cookbook and recommendation from this book.

To install Odoo from a source, you need to follow these steps: 1. Run the following commands to install the main dependencies:

$ sudo apt-get update

$ sudo apt-get install -y git python3.5 postgresql nano

virtualenv xz-utils wget fontconfig libfreetype6 libx11-6

libxext6 libxrender1 xfonts-75dpi

Odoo v12 has moved from less to scss for stylesheet

preprocessing. Consequently, if you are using <v12, then you need

to install node-less node-clean-css in order to get the correct

stylesheets.

Installing the Odoo Development Environment Chapter 1

[ 15 ]

2. Download and install wkhtmltopdf:

$ wget -O wkhtmltox.tar.xz \

https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0

.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

$ tar xvf wkhtmltox.tar.xz

$ sudo mv wkhtmltox/lib/* /usr/local/lib/

$ sudo mv wkhtmltox/bin/* /usr/local/bin/

$ sudo mv wkhtmltox/share/man/man1 /usr/local/share/man/

3. Now, use the following code to install the build dependencies:

$ sudo apt-get install -y gcc python3.5-dev libxml2-dev \

libxslt1-dev libevent-dev libsasl2-dev libssl1.0-dev libldap2-

dev \

libpq-dev libpng-dev libjpeg-dev

4. Configure PostgreSQL:

$ sudo -u postgres createuser --createdb $(whoami)

$ createdb $(whoami)

5. Configure git:

$ git config --global user.name "Your Name"

$ git config --global user.email youremail@example.com

6. Clone the Odoo code base:

$ mkdir ~/odoo-dev

$ cd ~/odoo-dev

$ git clone -b 12.0 --single-branch\

https://github.com/odoo/odoo.git

$ cd odoo

7. Create an odoo-12.0 virtual environment and activate it:

$ virtualenv -p python3 ~/odoo-12.0

$ source ~/odoo-12.0/bin/activate

8. Install the Python dependencies of Odoo in virtualenv:

$ pip3 install -r requirements.txt - here i get errors

Best Answer

Hello,

I'd the same problem with new install on a debian Buster (python3.7).

To solve :

Replace libssl1.0-dev with libssl-dev and python3.5-dev with python3.7-dev.

To have no errors with 'pip3 install -r requirements.txt' with REP517, install 'build-essential' package before create 'virualenv'

Regards

Avatar
Discard
Related Posts Replies Views Activity
2
Jun 22
5648
3
Jan 24
29181
7
Dec 23
43635
12
Jul 24
71598
4
Jan 24
5933