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 building docker image for project using PyCall #983

Closed
alenskorobogatova opened this issue Apr 12, 2022 · 2 comments
Closed

Error building docker image for project using PyCall #983

alenskorobogatova opened this issue Apr 12, 2022 · 2 comments

Comments

@alenskorobogatova
Copy link

I want to build Docker image for my project, that is using PyCall.
I get following error:

ERROR: Error building `PyCall`: 
PREFIX=/root/.julia/conda/3
Unpacking payload ...
/root/.julia/conda/3/installer.sh: line 363: /root/.julia/conda/3/conda.exe: not found
/root/.julia/conda/3/installer.sh: line 366: can't open /root/.julia/conda/3/preconda.tar.bz2: no such file
┌ Info: Using the Python distribution in the Conda package by default.
└ To use a different Python version, set ENV["PYTHON"]="pythoncommand" and re-run Pkg.build("PyCall").
[ Info: Downloading miniconda installer ...
[ Info: Installing miniconda ...
ERROR: LoadError: failed process: Process(`/root/.julia/conda/3/installer.sh -b -f -p /root/.julia/conda/3`, ProcessExited(1)) [1]

Minimal working example: https://github.com/alenskorobogatova/ExamplePyCall.jl

@stevengj
Copy link
Member

stevengj commented Apr 12, 2022

I wouldn't use Conda at all, I would install Python stuff separately in your image and tell PyCall to use that, setting the PYTHON environment variable if necessary. (Using the system Python is the default on Unix systems other than MacOS.)

See, for example: https://github.com/mitmath/binder-env

@stevengj
Copy link
Member

(In any case, closing this issue as it has nothing to do with PyCall per se, but rather has to do with Conda.jl.)

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

2 participants