Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
37525 Weergaven

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
Annuleer
Beste antwoord
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
Annuleer
Beste antwoord

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
Annuleer
Auteur Beste antwoord

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

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

Auteur

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

Auteur

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?

Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
dec. 24
6945
2
nov. 24
27338
2
mei 24
6714
3
mrt. 24
6136
0
mrt. 24
1140