Hi,
I am trying to import datalad in python but I get the below error.
my Python version is 3.7.9 and datalad version is 0.14.0
any help would be greatly appreciated
Erorr
"
RuntimeError Traceback (most recent call last)
in
9 import matplotlib.gridspec as gridspec
10 from nilearn.plotting import plot_stat_map
—> 11 import datalad.api as dl
12 import warnings
13
~.conda\envs\naturalistic\lib\site-packages\datalad_init_.py in
45
46 from .config import ConfigManager
—> 47 cfg = ConfigManager()
48
49 from .log import lgr
~.conda\envs\naturalistic\lib\site-packages\datalad\config.py in init(self, dataset, overrides, source)
272 self._runner = GitWitlessRunner(**run_kwargs)
273
→ 274 self.reload(force=True)
275
276 if not ConfigManager._checked_git_identity:
~.conda\envs\naturalistic\lib\site-packages\datalad\config.py in reload(self, force)
325 while to_run:
326 store_id, runargs = to_run.popitem()
→ 327 self._stores[store_id] = self._reload(runargs)
328
329 # always update the merged representation, even if we did not reload
~.conda\envs\naturalistic\lib\site-packages\datalad\config.py in _reload(self, run_args)
357 protocol=StdOutErrCapture,
358 # always expect git-config to output utf-8
→ 359 encoding=‘utf-8’,
360 )
361 store = {}
~.conda\envs\naturalistic\lib\site-packages\datalad\config.py in _run(self, args, where, reload, **kwargs)
715 if ‘-l’ in args:
716 # we are just reading, no need to reload, no need to lock
→ 717 out = self._runner.run(self._config_cmd + args, **kwargs)
718 return out[‘stdout’], out[‘stderr’]
719
~.conda\envs\naturalistic\lib\site-packages\datalad\cmd.py in run(self, cmd, protocol, stdin, cwd, env, **kwargs)
386 protocol_kwargs=kwargs,
387 cwd=cwd,
→ 388 env=env,
389 )
390 )
~.conda\envs\naturalistic\lib\asyncio\base_events.py in run_until_complete(self, future)
561 “”"
562 self._check_closed()
→ 563 self._check_runnung()
564
565 new_task = not futures.isfuture(future)
~.conda\envs\naturalistic\lib\asyncio\base_events.py in _check_runnung(self)
524 if events._get_running_loop() is not None:
525 raise RuntimeError(
→ 526 ‘Cannot run the event loop while another loop is running’)
527
528 def run_forever(self):
RuntimeError: Cannot run the event loop while another loop is running
"