question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error in trying to build opsdroid docker image

See original GitHub issue

Hi guys,

So I tried building the opsdroid image from scratch by pulling down changes from the new release on the master branch, then cd into the opsdroid directory and use the docker build command to build the image.

When I initiate the build I get this error message which stops it from happening.

ERROR: Could not find a version that satisfies the requirement pycryptodome<4.0.0,>=3.10.1 (from matrix-nio) (from versions: none)
ERROR: No matching distribution found for pycryptodome<4.0.0,>=3.10.1
The command '/bin/sh -c apk add --no-cache git olm libzmq && pip install --no-cache-dir --no-index -f ${DEPS_DIR} $(find ${DEPS_DIR} -type f -name opsdroid--any.whl)${EXTRAS} && rm -rf /tmp/ /var/tmp/* ${DEPS_DIR}/* && adduser -u 1001 -S -G root opsdroid' returned a non-zero code: 1

I also reached out to the opsdroid community on element and had this error reproduced by @Sleuth56

His process was as followed

git clone https://github.com/opsdroid/opsdroid/
cd opsdroid
docker build .

and the resulting error

INFO: pip is looking at multiple versions of opsdroid[all,connector-matrix-e2e] to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement pycryptodome<4.0.0,>=3.10.1 (from matrix-nio) (from versions: none)
ERROR: No matching distribution found for pycryptodome<4.0.0,>=3.10.1
The command '/bin/sh -c apk add --no-cache     git     olm     libzmq     && pip install --no-cache-dir --no-index -f ${DEPS_DIR}     $(find ${DEPS_DIR} -type f -name opsdroid-*-any.whl)${EXTRAS}     && rm -rf /tmp/* /var/tmp/* ${DEPS_DIR}/*     && adduser -u 1001 -S -G root opsdroid' returned a non-zero code: 1

Also @Sleuth56 wanted to link https://github.com/opsdroid/opsdroid/runs/4451560556 to this issue as well

Just want to see if this is some sort of pip related problem but just wanted to bring this to everyone’s attention.

Thanks again and always appreciative of the work you guys are doing,

-Brian

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
FabioRosadocommented, Jan 1, 2022

@bparbhu just merged @vinayman fix you should be good to go. Please let us know if you encounter any further issues 👍

1reaction
vinaymancommented, Dec 26, 2021

Hi - nice to meet you all.

I saw this project on up-for-grabs.net so thought I could just look at any issues and help out whatever is open - hope that’s okay!

I’ve raised a PR above which resolves the issue - to summarise:

The issue is that the docker build pulls down the pycryptodome dependency as a zip file rather than a whl or tar.gz (where tar.gz is correctly converted to a whl file). The simple fix is to convert the zip to a whl file so it is installed during the later stage of the build

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Matrix_cache folder get's permission denied. #1873 - GitHub
Description Now that the opsdroid container runs as an un-privilaged ... to create the Matrix_cache folder it gets a permission denied error.
Read more >
opsdroid/developers - Gitter
build opsdroid using docker docker build opsdroid ... docker run image-id ? ... I tried to log into my microsoft as a dev...
Read more >
python - Why I'm getting this error while building docker image?
I got the following error while building a docker image by "docker-compose build". ERROR: Couldn't connect to Docker daemon at ...
Read more >
Installation - opsdroid documentation
The default docker image on Docker Hub contains all the module dependencies. To specify modules, build the image using the Dockerfile and write...
Read more >
Unable to build my docker image
I have a created a project as well as dockerfiles inside it. I'm trying to run it from docker but I keep getting...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found