Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when creating a docker image using the default Dockerfile used in streamlit-demo for example #743

Open
masalinas opened this issue Jan 14, 2024 · 0 comments

Comments

@masalinas
Copy link

masalinas commented Jan 14, 2024

Description of your problem

I used pyscaffold to generate a basic scaffolding project and add a simple flask module inside, everything is configured and works ok from my shell, starting my flask server correctly. I used the repo streamlit-demo from pyscaffold organization, because the scaffolfing tool not generate any Dockerfile inside the project so I followed the same Dockerfile template from this repo.

But when execute this Dockefile the step: Step 20/26 : RUN mamba env create -f environment.yml rsponse always with errors.

...

Downloading and Extracting Packages

Preparing transaction: ...working... done
Verifying transaction: ...working... done
Executing transaction: ...working... done
Installing pip dependencies: ...working... Ran pip subprocess with arguments:
['/home/app/.conda/envs/uniovi-avib-morphingprojections-backend-analytics/bin/python', '-m', 'pip', 'install', '-U', '-r', '/home/app/condaenv.2gdxirei.requirements.txt', '--exists-action=b']
Pip subprocess output:
Looking in indexes: https://pypi.org/simple/

failed
Pip subprocess error:
ERROR: Could not find a version that satisfies the requirement uniovi-avib-morphingprojections-backend-analytics==0.0.post1.dev2+g9d7535a.d20240114 (from versions: none)
ERROR: No matching distribution found for uniovi-avib-morphingprojections-backend-analytics==0.0.post1.dev2+g9d7535a.d20240114


CondaEnvException: Pip failed

The command '/bin/sh -c mamba env create -f environment.yml' returned a non-zero code: 1

Do you have some idea about where is the problem? or detect what dependency return the error?

Versions and main components

  • PyScaffold Version: 4.5
  • Python Version: 3.8.10
  • Operating system: Ubuntu 22.02
  • How did you install PyScaffold: (conda/pip) pip
@masalinas masalinas changed the title Error when creating a docker image using the default Dockerfile used in streamlit-dem for example Error when creating a docker image using the default Dockerfile used in streamlit-demo for example Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant