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

--from-history requires conda >=4.8.0 #3

Open
zhanyuanucb opened this issue Jul 11, 2022 · 0 comments
Open

--from-history requires conda >=4.8.0 #3

zhanyuanucb opened this issue Jul 11, 2022 · 0 comments

Comments

@zhanyuanucb
Copy link
Contributor

Describe the bug
Got conda-env: error: unrecognized arguments: --from-history while running example/run_docker.sh

usage: conda-env [-h] {attach,create,export,list,remove,upload,update} ...
conda-env: error: unrecognized arguments: --from-history
ERROR: could not infer current conda environment for automatic dockerization
Traceback (most recent call last):
  File "example/../bin/pircli", line 6, in <module>
    main()
  File "/home/zhanyuan.zhang/pirlib/pirlib/cli/main.py", line 42, in main
    args.handler(args.parser, args)
  File "/home/zhanyuan.zhang/pirlib/pirlib/cli/generate.py", line 34, in _generate_handler
    package = dacite.from_dict(data_class=Package, data=yaml.safe_load(f))
  File "/home/zhanyuan.zhang/.conda/envs/pirlib/lib/python3.8/site-packages/dacite/core.py", line 59, in from_dict
    field_data = data[field.name]
TypeError: 'NoneType' object is not subscriptable
ERROR: Version in "/home/zhanyuan.zhang/pirlib/example/docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
ERROR: Version in "/home/zhanyuan.zhang/pirlib/example/docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/

To Reproduce

  1. Install conda < 4.8.0
  2. run bash example/run_docker.sh

Additional context
--from-history option is only avaliable in conda>=4.8.0

command.append("--from-history")

zhanyuanucb pushed a commit that referenced this issue Dec 7, 2022
zhanyuanucb pushed a commit that referenced this issue Mar 21, 2023
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