Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
37946 Widoki

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.

Awatar
Odrzuć
Najlepsza odpowiedź
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_
Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

@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.

Awatar
Odrzuć

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

Autor

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

Autor

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?

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
4164
2
gru 24
7428
2
lis 24
28103
2
maj 24
7167
3
mar 24
6613