Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
11402 Näkymät

Hi all,


I was trying to install eCommerce module on my local environment and I got this error:


Unable to install module "account_edi_proxy_client" because an external dependency is not met: Python library not installed: cryptography

I already installed cryptography but I didn't understand why it still gives this error. I work with Odoo 14 with docker and my operating system us macOS Big Sur (11.0.1). Below also you can see that cryptography is already installed.


pip3 install cryptography                 
Requirement already satisfied: cryptography in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (2.8)
Requirement already satisfied: six>=1.4.1 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from cryptography) (1.16.0)
Requirement already satisfied: cffi!=1.11.3,>=1.8 in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from cryptography) (1.15.1)
Requirement already satisfied: pycparser in /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages (from cffi!=1.11.3,>=1.8->cryptography) (2.21)


any idea?

Avatar
Hylkää
Tekijä

I tried to install pycryptodome too, but still have the same error. Let me give you more information about my environment.

macOS Monterey (12.5.1)

I have Docker Desktop app installed.

My docker-compose.yaml file is like that:

version: '2'
services:
    web:
        image: odoo:14.0
        depends_on:
            - db
        ports:
            - "8069:8069"
        volumes:
            - odoo-web-data:/var/lib/odoo©
            - ./config:/etc/odoo
            - ./addons:/mnt/extra-addons
    db:
        image: postgres:10
        environment:
            - POSTGRES_DB=postgres
            - POSTGRES_PASSWORD=odoo
            - POSTGRES_USER=odoo
            - PGDATA=/var/lib/postgresql/data/pgdata
        volumes:
            - odoo-db-data:/var/lib/postgresql/data/pgdata
            - ./db:/db
volumes:
    odoo-web-data:
    odoo-db-data:

I don't have a Dockerfile. I run it with docker-compose up.


I tried to to install the dependency in to the docker container:

docker exec -it [container] pip3 install cryptography

and I got this error:

Command "/usr/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-ynyd_o0_ --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.6.0,!=60.9.0 wheel "cffi>=1.12; platform_python_implementation != 'PyPy'" setuptools-rust>=0.11.4" failed with error code 1 in None

I really don't know what and how to solve this problem.

I have the same problem and there is no solution.

Use odoo online

some OCA modules do not work because of this problem

Paras vastaus

I resolved. Enter in your container as root. Than make an

apt-get update
apt-get install python3-cryptography

Here is my docker-compose.yml :

version: '3.1'
services:
web:
image: odoo:14
depends_on:
- mydb
ports:
- "8069:8069"
environment:
- HOST=mydb
- USER=odoo
- PASSWORD=change_my_password
mydb:
image: postgres:15
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=change_my_password
- POSTGRES_USER=odoo

Avatar
Hylkää
Paras vastaus

Hello george,

Please find code in comment.

I hope it will help you.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Hylkää

Please find below command it may help you to resolve this issue,
pip install pycryptodome
pip install pycryptodome-test-vectors
python -m Crypto.SelfTest

Paras vastaus

Hi,

Instead of cryptography , try install the pycryptodome.

You can install via following command

pip3 install pycryptodome

Regards

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
lokak. 20
13192
1
tammik. 24
1549
0
lokak. 23
1494
0
elok. 21
2604
2
elok. 21
4264