-
Notifications
You must be signed in to change notification settings - Fork 428
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
LoadLibrary error when invoking conda-build on Windows 7 #3220
Comments
This is unlikely anything to do with |
Thanks. The issue only started after I foolishly did |
Please open an issue at https://github.com/anaconda-issues/issues |
I have the same issue on Windows 10. |
BTW the correct issue tracker is https://github.com/ContinuumIO/anaconda-issues |
It seems to be an issue with the |
Yes, our software does not work if you do not activate your environment(s), which the Anaconda Prompt does. Alternatively you can add to PATH but that doesn't run package activation scripts so some things will not work correctly. |
@mingwandroid I've been using Anaconda and Conda build for over a year and haven't needed to use the Anaconda Prompt. Did something change in the recent version of conda-build? Also is there some documentation on what exactly Anaconda Prompt does and how it's different from adding to PATH? And what happens to Miniconda users who dosn't have the prompt? For debugging purposes yes, it looks like |
I got this error when testing a build inside Pycharm. I never thought about if Pycharm does proper activation of conda environments (although conda environments can be added easily as interpreters in the settings). This does not seem the case. I will try to find a solution. |
Downgrading to 3.15 fixes the problem conda install -n base conda==3.15 --yes
conda build
#usage: conda-build [-h] [-V] [-n] [--output] [--python PYTHON] [--perl PERL]
# [--numpy NUMPY] [--R R_BASE] [--lua LUA]
# [--bootstrap BOOTSTRAP]
# [--append-file APPEND_SECTIONS_FILE]
# [--clobber-file CLOBBER_SECTIONS_FILE]
# [-m VARIANT_CONFIG_FILES] [-e EXCLUSIVE_CONFIG_FILES]
# [--old-build-string] [--check] [--no-anaconda-upload]
# [--no-include-recipe] [-s] [-t] [--no-test] [-b] [-p]
# [--skip-existing] [--keep-old-work] [--dirty] [-q]
# [--debug] [--token TOKEN] [--user USER] [--label LABELS]
# [--no-force-upload] [--password PASSWORD] [--sign SIGN]
# [--sign-with SIGN_WITH] [--identity IDENTITY]
# [--config-file CONFIG_FILE] [--repository REPOSITORY]
# [--no-activate] [--no-build-id] [--croot CROOT] [--verify]
# [--no-verify] [--strict-verify]
# [--output-folder OUTPUT_FOLDER]
# [--no-prefix-length-fallback] [--prefix-length-fallback]
# [--prefix-length _PREFIX_LENGTH] [--no-locking]
# [--no-remove-work-dir] [--error-overlinking]
# [--no-error-overlinking] [--long-test-prefix]
# [--no-long-test-prefix] [--keep-going]
# [--cache-dir CACHE_DIR] [--no-copy-test-source-files]
# [--merge-build-host] [--stats-file STATS_FILE]
# [--extra-deps EXTRA_DEPS [EXTRA_DEPS ...]] [-c CHANNEL]
# [--override-channels]
# RECIPE_PATH [RECIPE_PATH ...]
#conda-build: error: the following arguments are required: RECIPE_PATH
conda install -n base conda-build==3.16.1 --yes
conda build
#Traceback (most recent call last):
# File "C:\Anaconda3\Scripts\conda-build-script.py", line 6, in <module>
# from conda_build.cli.main_build import main
# File "C:\Anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 18, in <module>
# import conda_build.api as api
# File "C:\Anaconda3\lib\site-packages\conda_build\api.py", line 22, in <module>
# from conda_build.config import Config, get_or_merge_config, DEFAULT_PREFIX_LENGTH as _prefix_length
# File "C:\Anaconda3\lib\site-packages\conda_build\config.py", line 17, in <module>
# from .variants import get_default_variant
# File "C:\Anaconda3\lib\site-packages\conda_build\variants.py", line 15, in <module>
# from conda_build.utils import ensure_list, trim_empty_keys, get_logger
# File "C:\Anaconda3\lib\site-packages\conda_build\utils.py", line 10, in <module>
# import libarchive
# File "C:\Anaconda3\lib\site-packages\libarchive\__init__.py", line 1, in <module>
# from .entry import ArchiveEntry
# File "C:\Anaconda3\lib\site-packages\libarchive\entry.py", line 6, in <module>
# from . import ffi
# File "C:\Anaconda3\lib\site-packages\libarchive\ffi.py", line 27, in <module>
# libarchive = ctypes.cdll.LoadLibrary(libarchive_path)
# File "C:\Anaconda3\lib\ctypes\__init__.py", line 434, in LoadLibrary
# return self._dlltype(name)
# File "C:\Anaconda3\lib\ctypes\__init__.py", line 356, in __init__
# self._handle = _dlopen(self._name, mode)
#TypeError: LoadLibrary() argument 1 must be str, not None |
How would anyone not have the Anaconda Prompt? We install it in both Miniconda and Anaconda. Please use Google. Search for conda activate. |
It used to work Ok without activating miniconda prompt, but fails since python 3.7. See here the error https://ci.appveyor.com/project/xiaoqiangwang/cachannel/build/job/ebv97g6c61u9c12m#L239 and discussion See conda/conda-build#3220
I'm seeing this exact error in AppVeyor with the latest conda-build (but I don't see it if I downgrade to conda-build 4.3.34): https://ci.appveyor.com/project/astrofrog/pywwt/builds/21017691 Any idea what this could be due to? |
I am seeing this on AppVeyor too, but only on python 3.7, works on python 3.6 https://ci.appveyor.com/project/tritemio/phconvert/builds/23832227/job/mtw68shi02g0rh2j |
Small change necessary to run conda-build. See conda/conda-build#3220 (comment)
Like @tritemio and @justinGilmer, we just hit this with Python 3.7 under AppVeyor. Unlike @tritemio, @justinGilmer, and presumably everyone else on this thread, we never run Instead, simply attempting to run
Clearly, our previously working AppVeyor configuration should not need to explicitly activate a base environment before running the idempotent Clearly, there be effluvious dragons here. 🐉
@mingwandroid: Sadly, the If Somebody disastrously broke backward compatibility, guys. |
See #556 (review) for a summary * Drop ipyext from conda recipe * Make Appveyor output more verbose * Also specify PYTHON_VERSION * Enforce newer version of miniconda * Activate base environment before conda-build Small change necessary to run conda-build. See conda/conda-build#3220 (comment) * Use environment variables for python vesion * Additonal test for conda environment * force base environment to be activated before installing * Pass environment variable through for python version * activate base env first * Enforce python version when calling conda-build * Use different ordering of conda-build args
See mosdef-hub/mbuild#556 (review) for a summary * Drop ipyext from conda recipe * Make Appveyor output more verbose * Also specify PYTHON_VERSION * Enforce newer version of miniconda * Activate base environment before conda-build Small change necessary to run conda-build. See conda/conda-build#3220 (comment) * Use environment variables for python vesion * Additonal test for conda environment * force base environment to be activated before installing * Pass environment variable through for python version * activate base env first * Enforce python version when calling conda-build * Use different ordering of conda-build args
Hi there, thank you for your contribution! This issue has been automatically locked because it has not had recent activity after being closed. Please open a new issue if needed. Thanks! |
Actual Behavior
Expected Behavior
Steps to Reproduce
Honestly no idea
Output of conda info
The text was updated successfully, but these errors were encountered: