Skip to content

sdkcraft shadows system Python #291

Open

Description

@saviq-work
name: sdk-py
version: '0.1'
summary: Python test
description: Python test
platforms:
  [email protected]:amd64:

parts:
  my-part:
    plugin: nil
    build-packages:
    - python3-pil
    override-build: |
      python3 -c "import PIL"
$ sdkcraft build --debug --verbose
Starting sdkcraft, version 0.0.post1.dev1+ga7b62e681
Logging execution to '/home/michal/.local/state/sdkcraft/log/sdkcraft-20261001-230734.043034.log'
Launching managed ubuntu 26.04 instance... 
Starting sdkcraft, version 0.0.post1.dev1+ga7b62e681
Logging execution to '/tmp/sdkcraft.log'
Initializing lifecycle
Installing build-packages
Skipping pull for my-part (already ran)
Building my-part
:: + python3 -c 'import PIL'
:: Traceback (most recent call last):
::   File "<string>", line 1, in <module>
:: ModuleNotFoundError: No module named 'PIL'
'override-build' in part 'my-part' failed with code 1.
Detailed information: 
:: + python3 -c 'import PIL'
:: Traceback (most recent call last):
::   File "<string>", line 1, in <module>
:: ModuleNotFoundError: No module named 'PIL'
Recommended resolution: Review the scriptlet and make sure it's correct.
For more information, check out: https://ubuntu.com/workshop/docs/reference/plugins/
Full execution log: '/tmp/sdkcraft.log'
Launching shell on build environment...

sdkcraft-sdk-py-ubuntu-2604-amd64-37883 ../project# python3 -c 'import PIL'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'PIL'

sdkcraft-sdk-py-ubuntu-2604-amd64-37883 ../project# /usr/bin/python3 -c 'import PIL'

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions