ersilia icon indicating copy to clipboard operation
ersilia copied to clipboard

🐛 Bug: Exception eosbase-bentoml-0.11.0-py37 source environment does not exist

Open donaldte opened this issue 2 years ago • 5 comments

Describe the bug.

Exception: eosbase-bentoml-0.11.0-py37 source environment does not exist

This bug pops up when I try to fetch any model. example: ersilia -v fetch eos4e41 > eos4e41.log

This a log file: eos4e41.log

Describe the steps to reproduce the behavior

  1. got to ersilia with : cd ersilia
  2. activate ersilia with: conda activate ersilia
  3. fetch a model with: ersilia -v fetch eos4e41 > eos4e41.log

Expected behavior.

When I execute this last command which allows us to fetch a model after a few minutes of installing the packages, the terminal displays this:

$ conda update -n base -c defaults conda

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://repo.anaconda.com/pkgs/main/linux-64/python-3.7.13-h12debd9_0.conda Elapsed: -

An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way.

Could not find conda environment: eosbase-bentoml-0.11.0-py37 You can list all discoverable environments with conda info --envs.

13:23:06 | INFO | Cloning base conda environment and adding model dependencies Traceback (most recent call last): File "/home/ing/anaconda3/envs/ersilia/bin/ersilia", line 33, in sys.exit(load_entry_point('ersilia', 'console_scripts', 'ersilia')()) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/click/core.py", line 1130, in call return self.main(*args, **kwargs) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/click/core.py", line 1657, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/click/core.py", line 760, in invoke return __callback(*args, **kwargs) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/bentoml/cli/click_utils.py", line 138, in wrapper return func(*args, **kwargs) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/bentoml/cli/click_utils.py", line 115, in wrapper return_value = func(*args, **kwargs) File "/home/ing/anaconda3/envs/ersilia/lib/python3.7/site-packages/bentoml/cli/click_utils.py", line 99, in wrapper return func(*args, **kwargs) File "/home/ing/wprojects/ersilia/ersilia/cli/commands/fetch.py", line 33, in fetch _fetch(mf, model_id) File "/home/ing/wprojects/ersilia/ersilia/cli/commands/fetch.py", line 12, in _fetch mf.fetch(model_id) File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/fetch.py", line 98, in fetch self._pack() File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/fetch.py", line 69, in _pack mp.pack() File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/actions/pack.py", line 63, in pack self._run() File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/actions/pack.py", line 58, in _run runner.run() File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/pack/runners.py", line 141, in run self._run() File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/pack/runners.py", line 123, in _run env = self._setup() File "/home/ing/wprojects/ersilia/ersilia/hub/fetch/pack/runners.py", line 105, in _setup self.conda.clone(base_env, env) File "/home/ing/wprojects/ersilia/ersilia/utils/conda.py", line 335, in clone raise Exception("{0} source environment does not exist".format(src_env)) Exception: eosbase-bentoml-0.11.0-py37 source environment does not exist

Screenshots.

ubuntu 22.04 LTS

Operating environment

Ubuntu 22.04 LTS

Additional context

No response

donaldte avatar Oct 17 '22 12:10 donaldte

Seems like there is a problem with your conda installation, can you run conda env list and paste the output here? (it will show all the envs available to you)

GemmaTuron avatar Oct 17 '22 13:10 GemmaTuron

@GemmaTuron After run conda env list This is the output Screenshot from 2022-10-17 14-30-22

donaldte avatar Oct 17 '22 13:10 donaldte

Thanks, you see how you don't have the eosbase environment listed there? This should have been created during ersilia's installation...

  • Update pip
  • Delete ersilia's conda environment and create it again (make sure its python=3.7)
  • Pull latest changes from ersilia's git repository (I don't see where you are clonning the Git Repo, but I assume you have the latest version clonned?)
  • and pip install ersilia again

GemmaTuron avatar Oct 17 '22 14:10 GemmaTuron

Ah okay I see Thanks so much @GemmaTuron

donaldte avatar Oct 17 '22 14:10 donaldte

Hello @donaldte

Have you been able to make progress?

Thanks!

GemmaTuron avatar Oct 21 '22 16:10 GemmaTuron

I'll close this issue due to inactivity

GemmaTuron avatar Nov 21 '22 19:11 GemmaTuron