ColourPicker icon indicating copy to clipboard operation
ColourPicker copied to clipboard

snap: Update to use core22

Open kenvandine opened this issue 2 years ago • 1 comments

In theory this should work with the latest gnome extension and core22. Although setuptools wasn't quite doing the right thing.

kenvandine avatar Aug 07 '23 00:08 kenvandine

Unfortunately when I try this and run snapcraft, I get this error:

/root/stage/share: No such file or directory                                   
Failed to execute pack in instance. 

and I have no idea what it means? :(

the more detailed log looks like this:

2023-08-13 11:59:36.847 :: 2023-08-13 10:59:35.969 Executing action
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:35.970 execute action pick-colour-picker:Action(part_name='pick-colour-picker', step=Step.PRIME, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.268 /root/stage/share: No such file or directory
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272 Traceback (most recent call last):
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 177, in run
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     aex.execute(action, stdout=stream, stderr=stream)
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 304, in execute
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     self._executor.execute(actions, stdout=stdout, stderr=stderr)
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 128, in execute
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     self._run_action(act, stdout=stdout, stderr=stderr)
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 193, in _run_action
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     handler.run_action(action, stdout=stdout, stderr=stderr)
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 172, in run_action
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     state = handler(step_info, stdout=stdout, stderr=stderr)
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 409, in _run_prime
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     contents = self._run_step(
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 493, in _run_step
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272     return step_handler.run_builtin()
2023-08-13 11:59:36.847 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 106, in run_builtin
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272     return handler()
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 195, in _builtin_prime
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272     files, dirs = migrate_files(
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/executor/migration.py", line 77, in migrate_files
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272     file_utils.create_similar_directory(
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272   File "/snap/snapcraft/9542/lib/python3.8/site-packages/craft_parts/utils/file_utils.py", line 270, in create_similar_directory
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272     stat = os.stat(source, follow_symlinks=False)
2023-08-13 11:59:36.848 :: 2023-08-13 10:59:36.272 FileNotFoundError: [Errno 2] No such file or directory: '/root/stage/share'

does this mean that... it's expecting to find a share directory somewhere to copy stuff into and it isn't present? Am I meant to create that or something?

stuartlangridge avatar Aug 13 '23 11:08 stuartlangridge