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

conda build recipe -c esri #5492

Open
UnderJollyRoger opened this issue Sep 18, 2024 · 0 comments
Open

conda build recipe -c esri #5492

UnderJollyRoger opened this issue Sep 18, 2024 · 0 comments

Comments

@UnderJollyRoger
Copy link

I want to run the command conda build recipe -c esri in a directory within an environment that has following packages, amongst others: python v. 3.9.18, conda v. 23.9.0, conda-build v. 3.22.0.

I'm following instructions from ESRI for building an environment that can be re-used to build conda packages and distribute with Anaconda. Within my einvironment I cd to a shared network folder. Then I run the above command. I get this error:

(scripttools) PS C:\WINDOWS\system32> cd \\sharednetworkpath\postoffice
(scripttools) PS Microsoft.PowerShell.Core\FileSystem::\\sharednetworkpath\postoffice> conda build recipe -c esri
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\conda_interface.py", line 14, in try_exports
    return getattr(import_module('conda.exports'), attr)
AttributeError: module 'conda.exports' has no attribute 'get_prefix'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\Scripts\conda-build-script.py", line 6, in <module>
    from conda_build.cli.main_build import main
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\cli\main_build.py", line 18, in <module>
    import conda_build.api as api
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\api.py", line 22, in <module>
    from conda_build.config import (Config, get_or_merge_config, get_channel_urls,
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\config.py", line 15, in <module>
    from .conda_interface import root_dir, root_writable
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\conda_interface.py", line 119, in <module>
    context_get_prefix = try_exports("conda.base.context", "get_prefix")
  File "C:\ProgramData\Anaconda3\lib\site-packages\conda_build\conda_interface.py", line 16, in try_exports
    return getattr(import_module(module), attr)
AttributeError: module 'conda.base.context' has no attribute 'get_prefix'
(scripttools) PS Microsoft.PowerShell.Core\FileSystem::\\gisfile\GISstaff\postoffice>

Before this, I ran an update. The version of conda in the warning seems to conflict with what conda list is telling me. I'm not sure what is going on.

(scripttools) PS C:\WINDOWS\system32> conda update conda-build
Collecting package metadata (current_repodata.json): done
Solving environment: done


==> WARNING: A newer version of conda exists. <==
  current version: 23.9.0
  latest version: 24.7.1

Please update conda by running

    $ conda update -n base -c defaults conda

Or to minimize the number of packages updated during conda update use

     conda install conda=24.7.1



# All requested packages already installed.

(scripttools) PS C:\WINDOWS\system32> conda list
# packages in environment at C:\ProgramData\Anaconda3\envs\scripttools:
#
# Name                    Version                   Build  Channel
anaconda-anon-usage       0.4.4           py39hfc23b7f_100
anaconda-client           1.12.3           py39haa95532_0
archspec                  0.2.3              pyhd3eb1b0_0
attrs                     23.1.0           py39haa95532_0
beautifulsoup4            4.12.3           py39haa95532_0
boltons                   23.0.0           py39haa95532_0
brotli-python             1.0.9            py39hd77b12b_8
bzip2                     1.0.8                h2bbff1b_6
ca-certificates           2024.7.2             haa95532_0
certifi                   2024.8.30        py39haa95532_0
cffi                      1.16.0           py39h2bbff1b_1
chardet                   4.0.0           py39haa95532_1003
charset-normalizer        3.3.2              pyhd3eb1b0_0
click                     8.1.7            py39haa95532_0
colorama                  0.4.6            py39haa95532_0
conda                     24.7.1           py39haa95532_0
conda-build               24.7.1           py39haa95532_0
conda-index               0.5.0            py39haa95532_0
conda-libmamba-solver     24.7.0             pyhd3eb1b0_0
conda-package-handling    2.3.0            py39haa95532_0
conda-package-streaming   0.10.0           py39haa95532_0
defusedxml                0.7.1              pyhd3eb1b0_0
distro                    1.9.0            py39haa95532_0
filelock                  3.13.1           py39haa95532_0
fmt                       9.1.0                h6d14046_1
frozendict                2.4.2            py39h2bbff1b_0
idna                      3.7              py39haa95532_0
jinja2                    3.1.4            py39haa95532_0
jsonpatch                 1.33             py39haa95532_1
jsonpointer               2.1                pyhd3eb1b0_0
jsonschema                4.19.2           py39haa95532_0
jsonschema-specifications 2023.7.1         py39haa95532_0
jupyter_core              5.7.2            py39haa95532_0
libarchive                3.7.4                h9243413_0
libcurl                   8.9.1                h0416ee5_0
libiconv                  1.16                 h2bbff1b_3
liblief                   0.12.3               hd77b12b_0
libmamba                  1.5.8                h99b1521_3
libmambapy                1.5.8            py39h77c03ed_3
libsolv                   0.7.24               h23ce68f_1
libssh2                   1.11.0               h291bd65_0
libxml2                   2.13.1               h24da03e_2
lz4-c                     1.9.4                h2bbff1b_1
m2-msys2-runtime          2.5.0.17080.65c939c               3
m2-patch                  2.7.5                         2
markupsafe                2.1.3            py39h2bbff1b_0
menuinst                  2.1.2            py39h5da7b33_0
more-itertools            10.1.0           py39haa95532_0
msys2-conda-epoch         20160418                      1
nbformat                  5.9.2            py39haa95532_0
openssl                   3.0.15               h827c3e9_0
packaging                 24.1             py39haa95532_0
pcre2                     10.42                h0ff8eda_1
pip                       24.2             py39haa95532_0
pkginfo                   1.10.0           py39haa95532_0
platformdirs              3.10.0           py39haa95532_0
pluggy                    1.0.0            py39haa95532_1
psutil                    5.9.0            py39h2bbff1b_0
py-lief                   0.12.3           py39hd77b12b_0
pybind11-abi              5                    hd3eb1b0_0
pycosat                   0.6.6            py39h2bbff1b_1
pycparser                 2.21               pyhd3eb1b0_0
pysocks                   1.7.1            py39haa95532_0
python                    3.9.18               h1aa4202_0
python-dateutil           2.9.0post0       py39haa95532_2
python-fastjsonschema     2.16.2           py39haa95532_0
python-libarchive-c       5.1                pyhd3eb1b0_0
pytz                      2024.1           py39haa95532_0
pywin32                   305              py39h2bbff1b_0
pyyaml                    6.0.1            py39h2bbff1b_0
referencing               0.30.2           py39haa95532_0
reproc                    14.2.4               hd77b12b_2
reproc-cpp                14.2.4               hd77b12b_2
requests                  2.32.3           py39haa95532_0
requests-toolbelt         1.0.0            py39haa95532_0
rpds-py                   0.10.6           py39h062c2fa_0
ruamel.yaml               0.17.21          py39h2bbff1b_0
ruamel.yaml.clib          0.2.6            py39h2bbff1b_1
setuptools                72.1.0           py39haa95532_0
six                       1.16.0             pyhd3eb1b0_1
soupsieve                 2.5              py39haa95532_0
sqlite                    3.45.3               h2bbff1b_0
tomli                     2.0.1            py39haa95532_0
tqdm                      4.66.5           py39h9909e9c_0
traitlets                 5.14.3           py39haa95532_0
tzdata                    2024a                h04d1e81_0
urllib3                   2.2.2            py39haa95532_0
vc                        14.40                h2eaa2aa_1
vs2015_runtime            14.40.33807          h98bb1dd_1
wheel                     0.44.0           py39haa95532_0
win_inet_pton             1.1.0            py39haa95532_0
xz                        5.4.6                h8cc25b3_1
yaml                      0.2.5                he774522_0
yaml-cpp                  0.8.0                hd77b12b_1
zlib                      1.2.13               h8cc25b3_1
zstandard                 0.22.0           py39h3469f8a_0
zstd                      1.5.5                hd43e919_2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant