Skip to Content
Menu
This question has been flagged
1 Reply
4251 Views

I have Ubuntu 22.04 and want to use the offical docker template (h***s://github.com/odoo/docker/blob/master/17.0/Dockerfile) for my installation. I added follwing commands after the postgres-client:


RUN curl https://raw.githubusercontent.com/odoo/odoo/17.0/requirements.txt --output ./requirements.txt
RUN pip3 install -r requirements.txt && rm requirements.txt



But when it compile and prepare i have following error and the run is stoped:


5.877 Collecting gevent==21.8.0
5.900   Downloading gevent-21.8.0.tar.gz (6.2 MB)
6.198      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 21.4 MB/s eta 0:00:00
9.313   Installing build dependencies: started
23.73   Installing build dependencies: finished with status 'done'
23.74   Getting requirements to build wheel: started
37.50   Getting requirements to build wheel: finished with status 'done'
37.51   Preparing metadata (pyproject.toml): started
39.43   Preparing metadata (pyproject.toml): finished with status 'error'
39.46   error: subprocess-exited-with-error
39.46
39.46   × Preparing metadata (pyproject.toml) did not run successfully.
39.46   │ exit code: 1
39.46   ╰─> [40 lines of output]
39.46       Traceback (most recent call last):
39.46         File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in 
39.46           main()
...
39.46           ffi = FFI()
39.46         File "/tmp/pip-build-env-ogrzgl9d/overlay/local/lib/python3.10/dist-packages/cffi/api.py", line 54, in __init__
39.46           raise Exception("Version mismatch: this is the 'cffi' package version %s, located in %r.  When we import the top-level '_cffi_backend' extension module, we get version %s, located in %r.  The two versions should be equal; check your installation." % (
39.46       Exception: Version mismatch: this is the 'cffi' package version 1.16.0, located in '/tmp/pip-build-env-ogrzgl9d/overlay/local/lib/python3.10/dist-packages/cffi/api.py'.  When we import the top-level '_cffi_backend' extension module, we get version 1.15.0, located in '/usr/lib/python3/dist-packages/_cffi_backend.cpython-310-x86_64-linux-gnu.so'.  The two versions should be equal; check your installation.
39.46       [end of output]
39.46
39.46   note: This error originates from a subprocess, and is likely not a problem with pip.
39.47 error: metadata-generation-failed
39.47
39.47 × Encountered error while generating package metadata.
39.47 ╰─> See above for output.
39.47
39.47 note: This is an issue with the package mentioned above, not pip.
39.47 hint: See above for details.
------
failed to solve: process "/bin/sh -c pip3 install -r requirements.txt && rm requirements.txt" did not complete successfully: exit code: 1

Without the running of the requirements the odoo instace is starting but with follwing error in log:



Traceback (most recent call last):

File "/home/odoo/addons/odoo/odoo-bin", line 5, in

import odoo

File "/home/odoo/addons/odoo/odoo/__init__.py", line 75, in

import PyPDF2

ModuleNotFoundError: No module named 'PyPDF2'

So i think, that i NEED the requirements - but it didn´t work for me


How can help me



Avatar
Discard
Best Answer

Hi,

Try upgrading the cffi package to the version : pip3 install --upgrade cffi == version


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
4
May 25
908
2
May 25
3884
1
Mar 25
451
4
Mar 25
3096
3
Feb 25
3684