Open phil-blain opened 4 years ago
More info:
I created a new environment with just conda-smithy:
conda create -n conda-smithy
conda activate conda-smithy
conda install conda-smithy
Result (notice libarchive is there):
After I activate this new environment the error still appears:
$ conda --version
conda 4.7.12
$ conda-build --version
conda-build 3.18.11
$ conda-smithy --version
3.6.2
$ conda smithy --version # brace yourself
Traceback (most recent call last):
File "/Users/Philippe/Logiciels/miniconda3/bin/conda-smithy", line 6, in <module>
from conda_smithy.cli import main
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_smithy/cli.py", line 12, in <module>
from conda_build.metadata import MetaData
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/metadata.py", line 23, in <module>
from conda_build import exceptions, utils, variants, environ
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/utils.py", line 9, in <module>
import libarchive
ModuleNotFoundError: No module named 'libarchive'
$ conda build --version
Traceback (most recent call last):
File "/Users/Philippe/Logiciels/miniconda3/bin/conda-build", line 7, in <module>
from conda_build.cli.main_build import main
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/cli/main_build.py", line 18, in <module>
import conda_build.api as api
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/api.py", line 22, in <module>
from conda_build.config import (Config, get_or_merge_config, get_channel_urls,
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/config.py", line 17, in <module>
from .variants import get_default_variant
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/variants.py", line 15, in <module>
from conda_build.utils import ensure_list, trim_empty_keys, get_logger
File "/Users/Philippe/Logiciels/miniconda3/lib/python3.7/site-packages/conda_build/utils.py", line 9, in <module>
import libarchive
ModuleNotFoundError: No module named 'libarchive'
$ python -c "import libarchive"
# this works without error !!
So it appears this is not specific to conda-smithy : https://github.com/conda/conda/issues/8920 https://github.com/ContinuumIO/anaconda-issues/issues/11104 https://github.com/conda/conda/issues/8972
I also tried to recreate my base environment in a new env, and installing libarchive there:
conda activate base
conda list --explicit > spec-file.txt
conda create --name base-broken-test --file spec-file.txt
conda activate base-broken-test
conda install libarchive
conda install python-libarchive-c
Result after these commands is same as above with my "conda-smithy" environment :
python -c 'import libarchive' # works
conda smithy --version # fails
conda-smithy --version # works
conda build --version # fails
conda-build --version # works
Issue: I can't re-render git-feedstock, conda-smithy fails with
ModuleNotFoundError: No module named 'libarchive'
:Environment (
conda list
):Details about
conda
and system (conda info
):Backstory: First the bot failed to re-render. Then I tried to re-render locally and got this error:
RuntimeError: conda-smithy version in root env (3.4.1) is out-of-date (3.6.2). Exiting.
So next I didconda update conda-smithy
, which resulted in a whole lot of packages being upgraded (but not libarchive), some removed (includinglibarchive-3.3.3-h5c473cc_1006
andpython-libarchive-c-2.8-py37_1004
) and 3 downgraded:After that I re-run
conda smithy rerender -c auto
and got the libarchive error above. The same error happens on a simpleconda-smithy --version
orconda smithy --version
.