Skip to content

Conversation

@kenvandine
Copy link
Contributor

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

@stuartlangridge
Copy link
Owner

stuartlangridge commented Aug 13, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants