InvalidGitRepositoryError during update on lab pc
I'm trying to use axii on a lab pc (pc092). During the update step, I get an InvalidGitRepositoryError
. I tried to find out during which module this happens with --no-parallel
, but it didn't seem to help. The same thing happens on dev and on main. Here is the complete output:
╭─hegemann@i61pc092 ~/armarx-setup/armarx_setup ‹dev›
╰─$ axii update --no-parallel
Welcome to Axii
▟ ▙
▜ ▛
▜ ▙
▜ ▙ ▟ ▛
▜ ▙ ▟ ▛
▜ ▙ ▟ ▛
▜ ▙ ▟ ▛
▜ ▙ ▟ ▛
▜ ▙ ▟ ▛ ▙▟ ▛
▜ ▙▟ ▛▜ ▛
▟ ▛▜ ▙ ▜ ▛
▟ ▛ ▜_▙ ▜▛
▜ ▛
Load workspace '/common/homes/staff/hegemann/repos' ...
Set 'ARMARX_WORKSPACE=/common/homes/staff/hegemann/repos'
Set 'ARMARX_USER_CONFIG_DIR=/common/homes/staff/hegemann/repos/armarx_config'
Global config:
Module(name='global module', general=None, system=None, update=None, prepare=Prepare(ctx=Context(...),
cmake=CMake(ctx=Context(...), project_name='global module', project_dir=None, definitions={'CMAKE_BUILD_TYPE':
'RelWithDebInfo'}, generator={}), run=None), build=Build(ctx=Context(...), cmake=CMake(ctx=Context(...),
env={'CMAKE_BUILD_PARALLEL_LEVEL': '4'}), run=None), install=None, required_modules={}, features={}, path='global
module')
Workspace loaded.
Build module graph ... Done.
Update module armarx/ArmarXCore ...
Already up to date.
Update module simox ...
Already up to date.
Update module tools/git/2.35.1 ...
Nothing to do.
Update module tools/cmake/3.21 ...
Nothing to do.
Update module armarx/ArmarXGui ...
Already up to date.
Update module armarx/RobotAPI ...
Already up to date.
Update module deps/soem ...
Already up to date.
Update module deps/mongocxx ...
Skipped update because repository is on tag 'r3.2.1'.
Update module dmp ...
Already up to date.
Update module mmm/core ...
Already up to date.
Update module mmm/tools ...
Already up to date.
Update module semantic-object-relations ...
Already up to date.
Update module armarx/MemoryX ...
Already up to date.
Updating modules ...
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Module ┃ Status – ┃ Summary ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ armarx/ArmarXCore │ Succeeded │ Up to date on branch 'master'. │
│ simox │ Succeeded │ Up to date on branch 'master'. │
│ tools/git/2.35.1 │ Succeeded │ Nothing to do. │
│ tools/cmake/3.21 │ Succeeded │ Nothing to do. │
│ armarx/ArmarXGui │ Succeeded │ Up to date on branch 'master'. │
│ armarx/RobotAPI │ Succeeded │ Up to date on branch 'master'. │
│ deps/soem │ Succeeded │ Up to date on branch 'debian'. │
│ deps/mongocxx │ Succeeded │ Nothing to do. │
│ dmp │ Succeeded │ Up to date on branch 'master'. │
│ mmm/core │ Succeeded │ Up to date on branch 'master'. │
│ mmm/tools │ Succeeded │ Up to date on branch 'master'. │
│ semantic-object-relations │ Succeeded │ Up to date on branch 'master'. │
│ armarx/MemoryX │ Succeeded │ Up to date on branch 'master'. │
│ deps/ivt/ivt │ Running . │ │
│ deps/opencv-3/main │ Succeeded │ Nothing to do. │
│ deps/opencv-3/contrib │ Running . │ │
│ deps/ogre │ Pending │ │
│ armarx/VisionX │ Pending │ │
│ armarx/RobotComponents │ Pending │ │
│ armarx/RobotSkillTemplates │ Pending │ │
│ armarx/ArmarXSimulation │ Pending │ │
│ armarx/Spoac │ Pending │ │
│ armarx/SpeechX │ Pending │ │
│ armarx/skills/control │ Pending │ │
│ armarx/skills/navigation │ Pending │ │
│ deps/ceres │ Pending │ │
│ deps/range-v3 │ Pending │ │
│ armarx/skills/manipulation │ Pending │ │
│ armarx/skills/view_selection │ Pending │ │
│ armarx/skills/localization_and_mapping │ Pending │ │
│ armarx/skills/kinesthetic_learning │ Pending │ │
│ armarx_integration/robots/armar6/rt │ Pending │ │
│ armarx_integration/devices/ethercat │ Pending │ │
│ armarx/python3-armarx │ Pending │ │
└────────────────────────────────────────┴──────────────┴──────────────────────────────────────────┘
Traceback (most recent call last):
File "/common/homes/staff/hegemann/armarx-setup/axii", line 7, in <module>
cli()
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/click/core.py", line 1134, in __call__
return self.main(*args, **kwargs)
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/click/core.py", line 1059, in main
rv = self.invoke(ctx)
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/click/core.py", line 1665, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/click/core.py", line 1401, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/click/core.py", line 767, in invoke
return __callback(*args, **kwargs)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/cli/__init__.py", line 174, in update
workspace.load_and_apply(lambda ws: ws.update(**kwargs))
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/cli/workspace.py", line 38, in load_and_apply
return None if ws is None else func(ws)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/cli/__init__.py", line 174, in <lambda>
workspace.load_and_apply(lambda ws: ws.update(**kwargs))
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/workspace/workspace.py", line 426, in update
self.update_parallel(max_workers=32 if parallel else 1)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/workspace/workspace.py", line 519, in update_parallel
future.result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 425, in result
return self.__get_result()
File "/usr/lib/python3.6/concurrent/futures/_base.py", line 384, in __get_result
raise self._exception
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/workspace/workspace.py", line 480, in job
raise e
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/workspace/workspace.py", line 460, in job
summary, output = m.update(capture_output=True, quiet=True)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/module/context.py", line 69, in __call__
r = hook(*args, **kwargs)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/module/update.py", line 30, in __call__
return self.pull(**kwargs)
File "/common/homes/staff/hegemann/armarx-setup/armarx_setup/core/module/update.py", line 74, in pull
repo = git.Repo(self.ctx.path)
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/git/repo/base.py", line 220, in __init__
self.working_dir = self._working_tree_dir or self.common_dir # type: Optional[PathLike]
File "/common/homes/staff/hegemann/armarx-setup/.venv/lib/python3.6/site-packages/git/repo/base.py", line 303, in common_dir
raise InvalidGitRepositoryError()
git.exc.InvalidGitRepositoryError
Does someone have an idea how to debug this?
Edited by Patrick Hegemann