Skip to content

Error from umake --version #708

@rocha

Description

@rocha

I am getting an error trying to get the tool version after updating via snap (04/01/2025):

❯ umake --version
Traceback (most recent call last):
  File "/snap/ubuntu-make/1050/bin/umake", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/snap/ubuntu-make/1050/lib/python3.12/site-packages/umake/__init__.py", line 156, in main
    cli.main(parser)
  File "/snap/ubuntu-make/1050/lib/python3.12/site-packages/umake/ui/cli/__init__.py", line 296, in main
    print(get_version())
          ^^^^^^^^^^^^^
  File "/snap/ubuntu-make/1050/lib/python3.12/site-packages/umake/settings.py", line 36, in get_version
    version = open(os.path.join(os.path.dirname(__file__), 'version'), 'r', encoding='utf-8').read().strip()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/snap/ubuntu-make/1050/lib/python3.12/site-packages/umake/version'

What snap reports:

❯ snap list                                                                                                                                                                                                               
Name                         Version                     Rev    Tracking       Publisher          Notes 
...
ubuntu-make                  master                      1050   latest/stable  didrocks           classic
...

❯ snap info ubuntu-make
name:      ubuntu-make
summary:   Setup your development environment on ubuntu easily
publisher: Didier Roche-Tolomelli (didrocks)
store-url: https://snapcraft.io/ubuntu-make
license:   unset
description: |
  Ubuntu Make provides a set of functionality to setup,
  maintain and personalize your developer environment easily. It will handle
  all dependencies, even those which aren't in Ubuntu itself, and install
  latest versions of the desired and recommended tools.
  .
  This is the latest master from ubuntu make, freshly built from
  https://github.com/ubuntu/ubuntu-make. It may contain even unreleased
  features!
commands:
  - ubuntu-make.umake
snap-id:      GFBbjr1cRDoT3KSiuwGirj83ReKSSd1J
tracking:     latest/stable
refresh-date: today at 07:52 PDT
channels:
  latest/stable:    master 2025-03-31 (1050) 30MB classic
  latest/candidate: ↑                             
  latest/beta:      ↑                             
  latest/edge:      master 2025-03-31 (1050) 30MB classic
installed:          master            (1050) 30MB classic

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