I created a new environment in a machine that served many successful runs with vak and tweetynet.
This time I got an error when running vak prep on the tutorial data.
I tried creating the environment in two ways:
- conda create --name tweety-env python=3.8 vak -c pytorch -c conda-forge
- conda create --name tweety-env vak -c conda-forge
I then installed tweetynet:
conda install tweetynet -c conda-forge
The error I get is that the package ‘protobuf’ is of the wrong version.
It is a requirement in vak.
@nicholdav, Can this be changed? Or, does it need changing in pypi or conda-forge?
(tweety-env) yardenc@USGPUbeast:/media/yardenc/New Volume/YardenBirds/BF/gy6or6$ vak prep gy6or6_train.toml
Traceback (most recent call last):
File “/home/yardenc/miniconda3/envs/tweety-env/bin/vak”, line 10, in
sys.exit(main())
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/main.py”, line 45, in main
cli.cli(command=args.command, config_file=args.configfile)
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/cli/cli.py”, line 30, in cli
COMMAND_FUNCTION_MAPcommand
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/cli/prep.py”, line 87, in prep
purpose = purpose_from_toml(config_toml, toml_path)
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/cli/prep.py”, line 27, in purpose_from_toml
are_sections_valid(config_toml, toml_path=toml_path)
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/config/validators.py”, line 94, in are_sections_valid
MODEL_NAMES = [model_name for model_name, model_builder in models.find()]
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/config/validators.py”, line 94, in
MODEL_NAMES = [model_name for model_name, model_builder in models.find()]
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/vak/models/models.py”, line 32, in find
yield entrypoint.name, entrypoint.load()
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/pkg_resources/init.py”, line 2470, in load
self.require(*args, **kwargs)
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/pkg_resources/init.py”, line 2493, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File “/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages/pkg_resources/init.py”, line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (protobuf 4.21.9 (/home/yardenc/miniconda3/envs/tweety-env/lib/python3.8/site-packages), Requirement.parse(‘protobuf<=3.20.1’), {‘vak’})
In option 2 it’s the same error, just a different version of python (3.10)