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

No such file or directory: 'archived/envs' on running "migrate-env" #1279

Closed
karthikeyan5 opened this issue Mar 13, 2022 · 0 comments
Closed
Assignees
Labels

Comments

@karthikeyan5
Copy link

Issue: Bug report

Bench version: 5.7.6

Getting the following Error on Running: bench migrate-env python3.8

Traceback (most recent call last):
  File "/home/frappe/.local/bin/bench", line 8, in <module>
    sys.exit(cli())
  File "/home/frappe/.local/lib/python3.6/site-packages/bench/cli.py", line 121, in cli
    raise e
  File "/home/frappe/.local/lib/python3.6/site-packages/bench/cli.py", line 111, in cli
    bench_command()
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.local/lib/python3.6/site-packages/bench/commands/utils.py", line 175, in migrate_env
    migrate_env(python=python, backup=backup)
  File "/home/frappe/.local/lib/python3.6/site-packages/bench/utils/bench.py", line 172, in migrate_env
    os.mkdir(parch)
FileNotFoundError: [Errno 2] No such file or directory: '/home/frappe/v13-bench/archived/envs'

Possible Solution 📑
This can be temporarily fixed by creating the directory: /archived/envs in your bench folder.

@gavindsouza gavindsouza self-assigned this Mar 17, 2022
gavindsouza added a commit to Aradhya-Tripathi/bench that referenced this issue Mar 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants