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

following the readme fails #6

Open
nikohansen opened this issue Dec 4, 2024 · 2 comments
Open

following the readme fails #6

nikohansen opened this issue Dec 4, 2024 · 2 comments

Comments

@nikohansen
Copy link
Contributor

On macOS

mamba env create -f env.yaml

as given in the read me bails with

ModuleNotFoundError: No module named 'env'

I didn't find a way to make it work.

conda env create -n coco-web -f env.yaml  

worked, but then I ran into issue #5

@nikohansen
Copy link
Contributor Author

The mamba executable seems not to be the one we expect:

$ mamba -h             
                                                                                                      [cwd: git/numbbo/coco-web]
usage: mamba [-h] [--version] [--slow SLOW] [--enable-coverage] [--coverage-file COVERAGE_FILE] [--format FORMAT] [--no-color] [--tags TAGS] [specs ...]

positional arguments:
  specs                 paths to specs to run or directories with specs to run (default: ['./spec', './specs'])

optional arguments:
  -h, --help            show this help message and exit
  --version, -v         display the version
  --slow SLOW, -s SLOW  slow test threshold in seconds (default: 0.075)
  --enable-coverage     enable code coverage measurement (default: False)
  --coverage-file COVERAGE_FILE
                        name of coverage data file (default: .coverage)
  --format FORMAT, -f FORMAT
                        output format (default: progress)
  --no-color            turn off all output coloring (default: False)
  --tags TAGS, -t TAGS  run examples with specified tags (example: -t unit,integration)

After

conda install mamba  

the help looks entirely different.

$ mamba -h                                                                                                                   [cwd: git/numbbo/coco-web]
Version: 2.0.4

Usage: mamba [OPTIONS] [SUBCOMMAND]

Options:
  -h,--help                   Print this help message and exit
  --version                   


Configuration options:
  --rc-file TEXT ...          Paths to the configuration files to use
  --no-rc                     Disable the use of configuration files
  --no-env                    Disable the use of environment variables


Global options:
  -v,--verbose                Set verbosity (higher verbosity with multiple -v, e.g. -vvv)
  --log-level ENUM:value in {critical->5,debug->1,error->4,info->2,off->6,trace->0,warning->3} OR {5,1,4,2,6,0,3}
                              Set the log level
  -q,--quiet                  Set quiet mode (print less output)
  -y,--yes                    Automatically answer yes on prompted questions
  --json                      Report all output as json
  --offline                   Force use cached repodata
  --dry-run                   Only display what would have been done
  --download-only             Only download and extract packages, do not link them into environment.
  --experimental              Enable experimental features


Prefix options:
  -r,--root-prefix TEXT       Path to the root prefix
  -p,--prefix TEXT            Path to the target prefix
  --relocate-prefix TEXT      Path to the relocation prefix
  -n,--name TEXT              Name of the target prefix

Subcommands:
  shell                       Generate shell init scripts
  create                      Create new environment
  install                     Install packages in active environment
  update                      Update packages in active environment
  self-update                 Update micromamba
  repoquery                   Find and analyze packages in active environment or channels
  remove                      Remove packages from active environment
  list                        List packages in active environment
  package                     Extract a package or bundle files into an archive
  clean                       Clean package cache
  config                      Configuration of micromamba
  info                        Information about micromamba
  constructor                 Commands to support using micromamba in constructor
  env                         See `mamba/micromamba env --help`
  activate                    Activate an environment
  run                         Run an executable in an environment
  ps                          Show, inspect or kill running processes
  auth                        Login or logout of a given host
  search                      Find packages in active environment or channels
                              This is equivalent to `repoquery search` command

@nikohansen
Copy link
Contributor Author

Now I get

$ mamba env create -f env.yaml
warning  libmamba 'repo.anaconda.com', a commercial channel hosted by Anaconda.com, is used.
    
warning  libmamba Please make sure you understand Anaconda Terms of Services.
    
warning  libmamba See: https://legal.anaconda.com/policies/en/
warning  libmamba 'repo.anaconda.com', a commercial channel hosted by Anaconda.com, is used.
    
warning  libmamba Please make sure you understand Anaconda Terms of Services.
    
warning  libmamba See: https://legal.anaconda.com/policies/en/
warning  libmamba 'repo.anaconda.com', a commercial channel hosted by Anaconda.com, is used.
    
warning  libmamba Please make sure you understand Anaconda Terms of Services.
    
warning  libmamba See: https://legal.anaconda.com/policies/en/
warning  libmamba 'repo.anaconda.com', a commercial channel hosted by Anaconda.com, is used.
    
warning  libmamba Please make sure you understand Anaconda Terms of Services.
    
warning  libmamba See: https://legal.anaconda.com/policies/en/
[+] 0.0s
zsh: abort      mamba env create -f env.yaml

@nikohansen nikohansen reopened this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant