Wrong libpython configuration after changing python dir on Linux
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Domaine
- backend, build-system
Piste de recherche
Commencez par reproduire la configuration avec Pkg.build("PyCall") et inspectez le deps.jl généré ainsi que PyCall.Conda.libpython et PyCall.PYTHONHOME. Suivez l’endroit où PyCall.libpython est sélectionné après la modification du répertoire conda ; c’est terminé lorsqu’il se résout sous /opt/conda/3 et que l’application compilée portable peut s’exécuter sur une autre machine.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I want to make a portable app with PyCall included, so I move conda into a common folder (this folder I would later copy to another machine when deploying compiled app binaries):
sudo cp -rf ~/.julia/conda /opt/conda
Then I rebuild PyCall and make sure all conda and python-related paths (there are much of them!) point to the right place:
julia -e 'import Pkg;
ENV["CONDA_JL_HOME"] = "/opt/conda/3";
ENV["PYTHON"] = "/opt/conda/3/bin/python3.9";
Pkg.add("PyCall");
Pkg.build("PyCall");
using PyCall
@info(
"Conda.jl and PyCall.jl configuration after build, BUT wrong libpython!",
PyCall.Conda.ROOTENV,
PyCall.Conda.MINICONDA_VERSION,
PyCall.Conda.deps_file,
PyCall.Conda.PREFIX,
PyCall.Conda.BINDIR,
PyCall.Conda.LIBDIR,
PyCall.Conda.SCRIPTDIR,
PyCall.Conda.PYTHONDIR,
PyCall.Conda.conda,
PyCall.Conda.CONDARC,
PyCall.PYTHONHOME,
PyCall.libpython
)
'
Which gives me all paths set right but PyCall.libpython, which prevents me from running my compiled app on another machine: (also, I'm not sure about colons in PyCall.PYTHONHOME)
┌ Info: Conda.jl and PyCall.jl configuration after build, BUT wrong libpython!
│ PyCall.Conda.ROOTENV = "/opt/conda/3"
│ PyCall.Conda.MINICONDA_VERSION = "3"
│ PyCall.Conda.deps_file = "/home/root2/.julia/packages/Conda/x2UxR/src/../deps/deps.jl"
│ PyCall.Conda.PREFIX = "/opt/conda/3"
│ PyCall.Conda.BINDIR = "/opt/conda/3/bin"
│ PyCall.Conda.LIBDIR = "/opt/conda/3/lib"
│ PyCall.Conda.SCRIPTDIR = "/opt/conda/3/bin"
│ PyCall.Conda.PYTHONDIR = "/opt/conda/3/bin"
│ PyCall.Conda.conda = "/opt/conda/3/bin/conda"
│ PyCall.Conda.CONDARC = "/opt/conda/3/condarc-julia.yml"
│ PyCall.PYTHONHOME = "/opt/conda/3:/opt/conda/3"
└ PyCall.libpython = "/home/root2/.julia/conda/3/lib/libpython3.9.so.1.0"
Contents of deps.jl:
$ cat /home/root2/.julia/packages/Conda/x2UxR/src/../deps/deps.jl
const ROOTENV = "/opt/conda/3"
const MINICONDA_VERSION = "3"
const USE_MINIFORGE = true
const CONDA_EXE = "/opt/conda/3/bin/conda"
- Langage dominant
- Julia
- Étoiles
- 1.5k
- Forks
- 186
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de JuliaPy/PyCall.jl
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Meta-Issue: Mutli-threading leads to segfaultsPeut-être pris @topolarity l’a pris il y a 211 jours. Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
-
Crashes with Julia 1.12 and Revise.jlPeut-être pris @topolarity l’a pris il y a 211 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 45/100
Toutes les issues de JuliaPy/PyCall.jl
Issues similaires
-
Chains resumed from `initial_state` take `num_warmup + 1` warm-up stepsPeut-être pris @thevolatilebit l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
TuringLang/AbstractMCMC.jl#220 ·
-
found-by-agent
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
exanauts/SparseDirectSolver.jl#92 ·
Les mainteneurs répondent en général sous 1 jour
-
`inv` of a dense matrix fails for arrays whose `parent` is not an array of the same kindPeut-être pris @devmotion l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
JuliaLang/LinearAlgebra.jl#1740 ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 90/100
NumericalEarth/Breeze.jl#1051 ·
Les mainteneurs répondent en général sous 1 jour