Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
4 Replies
37589 Tampilan

I have to install this module: https://www.odoo.com/apps/modules/10.0/l10n_it_fiscalcode/. It depends on https://pypi.python.org/pypi/codicefiscale. 

How can I install this Python library on Odoo 10 on Windows? I cannot find the Python runtime necessary to install it.

Thanks.

Avatar
Buang
Jawaban Terbai
To install python libraries in a windows installation we must do the following:

1.- run CMD in administrator mode
2.- we execute the following code

"C:\Program Files (x86)\Odoo 13.0\python\Scripts\pip3.exe" install _PIP3LIBNAME_

Where: ROUTE_SCRIPT_SEGUN_VERSION install _PYTHONLIBNAME_
Avatar
Buang
Jawaban Terbai

The solution is: 

1. Download the code codicefiscale, (extract folder if needed).
2. Copy the folder in your server folder, normally C:\Program Files (x86)\Odoo 10.0\server

3. Restart your Odoo Service.

4. Reinstall you app.

Avatar
Buang
Penulis Jawaban Terbai

@Sehrish if I open a command prompt and try to execute 'pip' command, this is the response:

'pip' is not recognized as an internal or external command

I cannot find where Python is installed with Odoo 10 on Windows. Odoo 11 has a folder with python, and in this case is simple to install it. With Odoo 10 there is no python executable.

Avatar
Buang

1) If you have installed Python 3.4 or later, pip is included with Python and should already be working on your system.

2) If you are running a version below Python 3.4 or if pip was not installed with Python 3.4 for some reason, then you'd probably use pip's official installation script get-pip.py. The pip installer now grabs setuptools for you, and works regardless of architecture (32-bit or 64-bit).

To install or upgrade pip, securely download get-pip.py.

Then run the following (which may require administrator access):

>>python get-pip.py

Penulis

Sorry, but the problem is that with Odoo 10 on windows there is no python installed, I can see python dlls but no executable of python. Only executable under Odoo installation are:

./server/odoo-bin.exe

./server/w9xpopen.exe

./service/w9xpopen.exe

./service/win32_service.exe

./thirdparty/bin/node.exe

./thirdparty/wkhtmltopdf.exe

./Uninstall.exe

Penulis

It seems that Odoo 10 has been packaged using Py2exe, a tool that gives the possibility to deploy application developed in Python. For this reason python.exe is not avaliable, it is embedded in some way in odoo-bin.exe. If my hypothesis is correct, how add a library with such installation?

Jawaban Terbai

1- Open command prompt using administrator

2- Run one of the following command

Command 1

pip install python-codicefiscale

Command 2

pip install https://pypi.python.org/packages/2.7/c/codicefiscale/codicefiscale-0.9-py2.7.egg

Hope I helped you.

Thanks

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Des 24
7049
2
Nov 24
27478
2
Mei 24
6792
3
Mar 24
6234
0
Mar 24
1231