Questions tagged conda

Explore the latest questions and answers asked by our top developers.

Docker build stuck at Collecting package metadata [closed]

The docker build step in Azure Pipelines is stuck at Collecting package metadata (repodata.json): …working… done. After 150 mins the build gets killed due to timeout. 2022-01-19T08:46:42.8006935Z —> Running in 4c052451847f 2022-01-19T08:46:43.5169032Z [91mWARNING conda.models.version:get_matcher(528): Using .* with relational operator is superfluous and deprecated and will be removed in a future version of conda. Your spec […]

By user19930511
Published
Categorised as azure, azure-devops, conda, devops, docker Tagged , , , ,

Awswrangler ‘S3’ object has no attribute ‘read_csv’

Nonsense error here. Using a conda environment on a docker to read some csv files on s3 (all works ok locally on my normal environment). Error: File "/opt/conda/lib/python3.8/site-packages/awswrangler/init.py", line 55, in getattr return getattr(getattr(DynamicInstantiate.__default_session, self._module_name), name) AttributeError: ‘S3’ object has no attribute ‘read_csv’ df = wr.s3.read_csv(path = myfileonS3 ,path_suffix=".csv",index_col=None) I’ve installed the right packages on […]

By Cristian
Published
Categorised as amazon-s3, awswrangler, conda, docker Tagged , , ,

Podman/Buildah/Docker Install/Use cling-xeus

I am trying to get xeus-cling to work on a OCI image, currently I am using buildah + podman. I run into two problems I try to create an environment with mamba/conda, however it needs conda/mamba init bash too run then to restart the shell. But its hard to get it to restart while its […]

By The Floating Brain
Published
Categorised as bash, conda, docker, dockerfile, xeus-cling Tagged , , , ,

Podman/Buildah Install/Use cling-xeus

I am trying to get xeus-cling to work on a OCI image, currently I am using buildah + podman. I run into two problems I try to create an environment with mamba/conda, however it needs conda/mamba init bash too run then to restart the shell. But its hard to get it to restart while its […]

By The Floating Brain
Published
Categorised as conda, dockerfile, podman, xeus-cling Tagged , , ,

Run interactive docker with entrypoint

I am trying to build a docker image with a conda environment and start the environment when I start a container, but I cannot figure out how to. My Dockerfile is currently: FROM nvidia/cuda:10.2-cudnn7-runtime-ubuntu18.04 ENV PATH="/root/miniconda3/bin:${PATH}" ARG PATH="/root/miniconda3/bin:${PATH}" RUN apt update && apt install -y htop python3-dev wget git imagemagick RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && mkdir […]

By a-doering
Published
Categorised as anaconda, bash, conda, docker, dockerfile Tagged , , , ,

How to Start a Conda Environment with Docker Container

I am a docker novice, so apologies if this is a silly question. As background, I am using a docker image that I have no ability to edit or change. I run the container with docker run [various-args] [image-name] and the container is launched. If I subsequently run docker exec -it [ID] bash, I can […]

By Josh B
Published
Categorised as conda, docker, environment, python, shell Tagged , , , ,

VSCODE how to debug python in conda environment in docker container in remote server

I start by enabling the docker container in the remote server, then I connect VSCODE to that server via SSH, and finally I attach VSCODE to the docker (docker extension installed). I have selected the interpreter in the conda environment by editing a ./.vscode/launch.json file When I start the python program debug the packages available […]

Using conda inside Docker? Is Pip a solution?

I’m trying to use Docker for the first time and the site I’m trying to make an image of was made inside an Anaconda environment. When I make my Dockerfile I included "conda install ___" and it says [production 4/6] RUN conda install -r ./requirements>/prod.txt: #8 0.288 /bin/sh: 1: conda: not found How do I […]

By Seb
Published
Categorised as anaconda, conda, docker, pip, python Tagged , , , ,

Cleaner Dockerfile for continuumio/miniconda3 environment?

I have a Python3.9 / Quart / Hypercorn microservice which runs in a conda environment configured with an environment.yml file. The base image is continuumio/miniconda3. It took a lot of hacks to get this launching because of conda init issues etc. Is there a cleaner way to get a conda environment installed and activated within […]

By Brendan Hill
Published
Categorised as conda, docker, hypercorn, python, quart Tagged , , , ,

Docker compose – Jupyter notebook with Spark Cluster – Initial job has not accepted any resources

Ive been trying to dockerize a python application with a conda environment that also runs spark processes. Using bitnami spark, ive been able to create a spark session from my notebook but whenever I want to execute spark code I get: Initial job has not accepted any resources; check your cluster UI to ensure that […]

1 7

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq