You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: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.The text was updated successfully, but these errors were encountered: