-
Notifications
You must be signed in to change notification settings - Fork 118
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
errors in mamba (is it relocatable?) #413
Comments
Will look deeper into it tomorrow |
add |
Huh, I have a feeling this will be a tricky one. This error does not reproduce if I build mamba locally:
The original error, when installing from tea natively, contains the following error (notice the path to
AFAIK, When looking into the logs, I noticed that mamba does some linking at build-time
To sum it up, mamba probably hard-codes the ssl cert location at build time, will look into where it's stored and how to make the link universal, like what we do with |
The good news is that the new test will catch this behavior, because github actions helpfully use different paths at build and at test stages https://github.com/teaxyz/pantry.extra/actions/runs/4222137543/jobs/7330371918 |
Found the main offender
|
But the issue is more widespread: this command get over 800 hits
There is probably an easy fix with some env variable here? Will try to look into it |
Basically we want every hard-coded piece of But if we look into opt_offenders.txt, there is a lot of stuff to rename, and some of it is hardcoded - meaning we can't just replace it with a link to env var I feel like we're getting into build/rpath territory here, where I haven't gone before. @mxcl any easy fixes that you may be aware of? |
I suggest we remove mamba from pantry until this is resolved, see #415 |
This seems to be subset of a larger problem, i.e. mamba/conda is not relocatable after building it: https://docs.anaconda.com/anaconda/user-guide/tasks/move-directory/
A possible solution is to distribute the installer via tea, and force it to build locally when a user tries to install? Not sure how feasible this is, but it would surely solve a lot of problems. Because currently at build mamba creates 800+ files with the prefix location hard-coded |
Extra error, for posterity: installing extra packages into an environment other than default fails: ❯ mamba activate myenv
❯ mamba install some_package --yes
Traceback (most recent call last):
File "/home/david/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-org/mamba/v22.11.1.4/bin/mamba", line 7, in <module>
from mamba.mamba import main
ModuleNotFoundError: No module named 'mamba' temporary fix: install from default env |
We can make it relocatable. It just requires work. |
Getting an ssl error when using mamba installed from tea
pkg identifier:
github.com/mamba-org/mamba
Steps to reproduce:
See detailed error log
$ mamba install requests --yes
Download error (77) Problem with the SSL CA cert (path? access rights?) [https://conda.anaconda.org/conda-forge/noarch/repodata.json]
error setting certificate file: /opt/github.com/mamba-org/mamba/v22.11.1.4/ssl/cacert.pem
>>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
$ /home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/bin/mamba install jupyterlab --yes
environment variables:
CIO_TEST=
CONDA_DEFAULT_ENV=base
CONDA_EXE=/home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/bin/conda
CONDA_PREFIX=/home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4
CONDA_PREFIX_1=/home/david/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-
org/mamba/v22.11.1.4
CONDA_PROMPT_MODIFIER=(base)
CONDA_PYTHON_EXE=/home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/bin/python
CONDA_ROOT=/home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4
CONDA_SHLVL=2
CURL_CA_BUNDLE=
LD_PRELOAD=
PATH=/home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/bin:/home/david
/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-org/mamba/v22.11.1.
4/condabin:/home/david/.tea/tea.xyz/v0.24.3/bin:/home/david/.local/bin
:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gam
es:/usr/local/games:/snap/bin:/snap/bin:/home/david/.local/bin:/home/d
avid/.oh-my-zsh/custom/plugins/fzf-zsh-
plugin/bin:/home/david/.fzf/bin:/home/david/.tea/ruby-
lang.org/v3/bin:/home/david/.tea/crates.io/fd-find/v*/bin:/home/david/
.tea/crates.io/ripgrep/v*/bin:/home/david/.tea/github.com/junegunn/fzf
/v*/bin:/home/david/.tea/crates.io/bat/v*/bin:/home/david/.cargo/bin:/
home/david/.local/bin:/home/david/.local/bin:/home/david/.oh-my-
zsh/custom/plugins/fzf-zsh-plugin/bin:/home/david/.tea/crates.io/bat/v
/bin:/home/david/.tea/crates.io/fd-find/v/bin:/home/david/.tea/crate
s.io/ripgrep/v*/bin:/home/david/.tea/github.com/charliermarsh/ruff/v*/
bin:/home/david/.tea/github.com/junegunn/fzf/v*/bin:/home/david/.tea/r
uby-lang.org/v*/bin:/home/david/.cargo/bin:/home/david/.local/bin:/hom
e/david/.oh-my-zsh/custom/plugins/fzf-zsh-plugin/bin:/home/david/.tea/
crates.io/bat/v*/bin:/home/david/.tea/crates.io/fd-find/v*/bin:/home/d
avid/.tea/crates.io/ripgrep/v*/bin:/home/david/.tea/github.com/charlie
rmarsh/ruff/v*/bin:/home/david/.tea/github.com/junegunn/fzf/v*/bin:/ho
me/david/.tea/ruby-
lang.org/v*/bin:/home/david/.cargo/bin:/home/david/.local/bin
REQUESTS_CA_BUNDLE=
SSL_CERT_FILE=
TMUX_PLUGIN_MANAGER_PATH=/home/david/.tmux/plugins
WINDOWPATH=2
populated config files : /home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/.condarc
conda version : 22.11.1
conda-build version : not installed
python version : 3.10.9.final.0
virtual packages : __archspec=1=x86_64
__glibc=2.36=0
__linux=5.19.0=0
__unix=0=0
base environment : /home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4 (writable)
conda av data dir : /home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
package cache : /home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/pkgs
/home/david/.conda/pkgs
envs directories : /home/david/.tea/github.com/mamba-org/mamba/v22.11.1.4/envs
/home/david/.conda/envs
platform : linux-64
user-agent : conda/22.11.1 requests/2.28.2 CPython/3.10.9 Linux/5.19.0-31-generic ubuntu/22.10 glibc/2.36
UID:GID : 1000:1000
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
Looking for: ['jupyterlab']
The text was updated successfully, but these errors were encountered: