How to install PIP in Odoo’s.txt file

Asked

Viewed 399 times

2

I want to install the Odoo on a server Ubuntu 14.04. However, to work with Brazilian legislation, it is necessary to install some dependencies Pip for the modules:

Pip dependencies for modules:

Babel==1.3
Jinja2==2.7.3
Mako==1.0.1
MarkupSafe==0.23
Pillow==2.7.0
Python-Chart==1.39
PyYAML==3.11
Werkzeug==0.9.6
argparse==1.2.1
decorator==3.4.0
docutils==0.12
feedparser==5.1.3
gdata==2.0.18
gevent==1.0.2
greenlet==0.4.7
jcconv==0.2.3
lxml==3.4.1
mock==1.0.1
ofxparse==0.16
passlib==1.6.2
psutil==2.2.0
psycogreen==1.0
psycopg2==2.5.4
pyPdf==1.13
pydot==1.0.2
pyparsing==2.0.3
pyserial==2.7
python-dateutil==2.4.0
python-ldap==2.4.19
python-openid==2.2.5
pytz==2014.10
pyusb==1.0.0b2
qrcode==5.1
reportlab==3.1.44
requests==2.6.0
six==1.9.0
suds-jurko==0.6
vobject==0.6.6
wsgiref==0.1.2
XlsxWriter==0.7.7
xlwt==0.7.5
openpyxl==2.4.0-b1
boto==2.38.0
odoorpc
suds_requests
http://labs.libre-entreprise.org/frs/download.php/897/pyxmlsec-0.3.1.tar.gz
plotly==1.13.0
pandas==0.19.2
relatorio==0.6.4
xlrd==1.0.0
urllib3==1.22
pyopenssl==17.2.0

The Odoo has in its folder the `Requirements.txt, the correct is to insert all these requirements above and then inform the commands:

sudo apt-get install -y --no-install-recommends $(grep -v '^#' apt-requirements)

sudo pip install --upgrade pip

sudo pip install -r pip-requirements
  • Would be exactly that?

I have no knowledge with Phyton.

  • exists this file : Pip-Requirements.txt ?

  • Exactly friend, Odoo has the Reskirts.txt where all the above dependencies are, however I need to install other Brazilian dependencies to work with the legislation here. Then I need to install the following dependencies: python-cnab python-boleto pytrustnfe So in that case just add what’s above in the Resets.txt and the commands you spoke of?

  • Yes.. just add your new libs to the file and run it normally.

1 answer

0

On the Trustcode page on Github there is a repository with an installation tutorial of Odoo with the Trustcode applications for the implementation of the Brazilian accounting and fiscal rules. In the same directory there is also a script for automatic installation.

Anyway, if you’re not going to use the Trustcode script, just take the Resets.txt file you mentioned and add the dependencies to the Brazilian location maintained by the trustcode.

pytrustnfe
python-boleto
python-cnab

Save the file and run the command you mentioned:

pip install -r pip-requirements

Browser other questions tagged

You are not signed in. Login or sign up in order to post.