The steps done:
source ~/frappe-bench/env/bin/activate # to activate the environment with Python 3.14.2
pip install -e apps/crm
at first I got this:
INFO: Fetching upstream for crm
$ git remote set-branches upstream ‘*’
$ git fetch --all --quiet
fatal: bad object refs/remotes/upstream/copilot/sub-pr-1565
error: https://github.com/frappe/crm.git did not send all necessary objects
Downloaded the files from github and put them in the /apps/crm folder then run again pip install -e apps/crm did give
Successfully installed crm-2.0.0.dev0
Because the folder /apps/crm/frappe-ui is empty I added the files from github ( GitHub - frappe/frappe-ui at e239181ef6a22efcfa7dc3466ff9c8899daa5bba )
into the frappe-ui folder
Next step
bench switch-to-branch version-16 crm --upgrade
give:
bench switch-to-branch version-16 crm --upgrade
ERROR: /opt/nexterp/frappe-bench/apps/crm
Traceback (most recent call last):
File “/opt/nexterp/frappe-bench/env/bin/bench”, line 7, in
sys.exit(cli())
~~~^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/bench/cli.py”, line 132, in cli
bench_command()
~~~~~~~~~~~~~^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 1485, in call
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 1406, in main
rv = self.invoke(ctx)
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 1873, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 1269, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/click/core.py”, line 824, in invoke
return callback(*args, **kwargs)
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/bench/commands/update.py”, line 93, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/bench/utils/app.py”, line 113, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/bench/utils/app.py”, line 69, in switch_branch
repo = git.Repo(app_dir)
File “/opt/nexterp/frappe-bench/env/lib/python3.14/site-packages/git/repo/base.py”, line 288, in init
raise InvalidGitRepositoryError(epath)
git.exc.InvalidGitRepositoryError: /opt/nexterp/frappe-bench/apps/crm
Someone can help me to solve this problem?