Docker Build issue
jramhani opened this issue · comments
Command used
docker build -t dhondta/packing-box .
ERROR [base 12/13]
[...]
177.9 Stored in directory: /home/user/.cache/pip/wheels/b1/b1/e7/2aca5ab1b4fc67cee598ec95b9e8b60c586953a15bf4739551
177.9 Successfully built pydl8.5 weka json2html netifaces pyminizip evdev
179.2 Installing collected packages: webencodings, wcwidth, text-unidecode, pytz, pyminizip, plyer, netifaces, netaddr, json2html, ipaddress, evdev, distlib, colorful, brotli, zopfli, xmltodict, urllib3, tzlocal, tqdm, toml, tinycss2, threadpoolctl, terminaltables, termcolor, six, shtab, setuptools, regex, pyyaml, python-slugify, python-magic, pyte, Pyphen, pypandoc, pygments, PyFiglet, pydyf, pycparser, pybind11, psutil, platformdirs, pip, pillow, patchy, numpy, mdurl, markdown2, lazy-object-proxy, joblib, idna, humanfriendly, fonttools, filelock, dicttoxml, decorator, cython, cowpy, colorama, charset-normalizer, certifi, bitstring, argcomplete, virtualenv, tldr, thefuck, scipy, requests, python-xlib, python-dateutil, pathlib2, markdown-it-py, html5lib, cssselect2, coloredlogs, codext, cffi, asciistuff, weka, weasyprint, scs, scikit-learn, rich, qdldl, pynput, ecos, dateparser, clarabel, tinyscript, osqp, cvxpy, pydl8.5
199.7 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
199.7 poetry 1.7.1 requires platformdirs<4.0.0,>=3.0.0, but you have platformdirs 4.1.0 which is incompatible.
199.7 Successfully installed PyFiglet-1.0.2 Pyphen-0.14.0 argcomplete-3.2.1 asciistuff-1.2.6 bitstring-4.0.2 brotli-1.1.0 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 clarabel-0.6.0 codext-1.15.3 colorama-0.4.6 coloredlogs-15.0.1 colorful-0.5.5 cowpy-1.1.5 cssselect2-0.7.0 cvxpy-1.4.1 cython-3.0.6 dateparser-1.2.0 decorator-5.1.1 dicttoxml-1.7.16 distlib-0.3.8 ecos-2.0.12 evdev-1.6.1 filelock-3.13.1 fonttools-4.47.0 html5lib-1.1 humanfriendly-10.0 idna-3.6 ipaddress-1.0.23 joblib-1.3.2 json2html-1.3.0 lazy-object-proxy-1.10.0 markdown-it-py-3.0.0 markdown2-2.4.12 mdurl-0.1.2 netaddr-0.9.0 netifaces-0.11.0 numpy-1.26.2 osqp-0.6.3 patchy-2.8.0 pathlib2-2.3.7.post1 pillow-10.1.0 pip-23.3.2 platformdirs-3.11.0 plyer-2.1.0 psutil-5.9.7 pybind11-2.11.1 pycparser-2.21 pydl8.5-0.1.8 pydyf-0.8.0 pygments-2.17.2 pyminizip-0.2.6 pynput-1.7.6 pypandoc-1.12 pyte-0.8.2 python-dateutil-2.8.2 python-magic-0.4.27 python-slugify-8.0.1 python-xlib-0.33 pytz-2023.3.post1 pyyaml-6.0.1 qdldl-0.1.7.post0 regex-2023.10.3 requests-2.31.0 rich-13.7.0 scikit-learn-1.3.2 scipy-1.11.4 scs-3.2.4.post1 setuptools-69.0.2 shtab-1.6.5 six-1.16.0 termcolor-2.4.0 terminaltables-3.1.10 text-unidecode-1.3 thefuck-3.32 threadpoolctl-3.2.0 tinycss2-1.2.1 tinyscript-1.29.5 tldr-3.2.0 toml-0.10.2 tqdm-4.66.1 tzlocal-5.2 urllib3-2.1.0 virtualenv-20.25.0 wcwidth-0.2.12 weasyprint-60.2 webencodings-0.5.1 weka-2.0.2 xmltodict-0.13.0 zopfli-0.2.3
201.3 Obtaining unicorn from git+https://github.com/unicorn-engine/unicorn.git#egg=unicorn&subdirectory=bindings/python
201.3 ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/src'
201.3 Check the permissions.
201.3
------
Dockerfile:110
--------------------
109 | RUN python3 -m pip install --user --upgrade --break-system-packages pip
110 | >>> RUN pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages \
111 | >>> angr capa capstone meson pandas poetry scikit-learn \
112 | >>> && pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages \
113 | >>> pydl8.5 thefuck tinyscript tldr weka \
114 | >>> && pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages -e \
115 | >>> "git+https://github.com/unicorn-engine/unicorn.git#egg=unicorn&subdirectory=bindings/python"
116 | # initialize Go
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages angr capa capstone meson pandas poetry scikit-learn && pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages pydl8.5 thefuck tinyscript tldr weka && pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages -e \"git+https://github.com/unicorn-engine/unicorn.git#egg=unicorn&subdirectory=bindings/python\"" did not complete successfully: exit code: 1
Issue is comming from this line :
pip3 install --user --no-warn-script-location --ignore-installed --break-system-packages -e \
"git+https://github.com/unicorn-engine/unicorn.git#egg=unicorn&subdirectory=bindings/python"