You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
copier copy https://github.com/Tecnativa/doodba-copier-template.git myFolder throw me the next error during invoke after-update:
for dummy in generator:
File "/Users/user/.local/pipx/venvs/invoke/lib/python3.10/site-packages/invoke/vendor/yaml3/constructor.py", line 398, in construct_yaml_map
value = self.construct_mapping(node)
File "/Users/user/.local/pipx/venvs/invoke/lib/python3.10/site-packages/invoke/vendor/yaml3/constructor.py", line 204, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/Users/user/.local/pipx/venvs/invoke/lib/python3.10/site-packages/invoke/vendor/yaml3/constructor.py", line 126, in construct_mapping
if not isinstance(key, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'
Traceback (most recent call last):
File "/Users/user/.local/bin/copier", line 8, in <module>
sys.exit(CopierApp.run())
File "/Users/user/.local/pipx/venvs/copier/lib/python3.10/site-packages/plumbum/cli/application.py", line 629, in run
inst, retcode = subapp.run(argv, exit=False)
File "/Users/user/.local/pipx/venvs/copier/lib/python3.10/site-packages/plumbum/cli/application.py", line 624, in run
retcode = inst.main(*tailargs)
File "/Users/user/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/cli.py", line 70, in _wrapper
return method(*args, **kwargs)
File "/Users/user/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/cli.py", line 297, in main
).run_copy()
File "/Users/user/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/main.py", line 586, in run_copy
self._execute_tasks(
File "/Users/user/.local/pipx/venvs/copier/lib/python3.10/site-packages/copier/main.py", line 186, in _execute_tasks
subprocess.run(task_cmd, shell=use_shell, check=True, env=local.env)
File "/opt/homebrew/Cellar/[email protected]/3.10.2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 524, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'invoke after-update' returned non-zero exit status 1.
The error is AttributeError: module 'collections' has no attribute 'Hashable'. I found something related with this error years before but it seems to be fix in the new versions of pyyaml.
I am using MacOS with
python 3.10
pyyaml 6.0 (I downgrade pyyaml to 5.3.1 but it not solved the problem ) .
The problem seems to be related with the python version > 3.8 but I am not sure.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
copier copy https://github.com/Tecnativa/doodba-copier-template.git myFolder
throw me the next error duringinvoke after-update
:The error is
AttributeError: module 'collections' has no attribute 'Hashable'
. I found something related with this error years before but it seems to be fix in the new versions ofpyyaml
.I am using MacOS with
python 3.10
pyyaml 6.0
(I downgrade pyyaml to5.3.1
but it not solved the problem ) .The problem seems to be related with the python version
> 3.8
but I am not sure.Anyone can help?
Beta Was this translation helpful? Give feedback.
All reactions