Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ujust update: poetry update failed with the rapidfuzz package #1845

Closed
essicolo opened this issue Oct 28, 2024 · 1 comment
Closed

ujust update: poetry update failed with the rapidfuzz package #1845

essicolo opened this issue Oct 28, 2024 · 1 comment
Labels
brew Issues related to brew.sh integration bug Something isn't working

Comments

@essicolo
Copy link

Describe the bug

When updating with ujust update, the poetry update failed with the rapidfuzz package.

❯ ujust update

── 14:02:10 - System update ────────────────────────────────────────────────────
note: automatic updates (stage) are enabled
Pulling manifest: ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
No upgrade available.

── 14:02:11 - Distrobox ────────────────────────────────────────────────────────

── 14:02:11 - Firmware upgrades ────────────────────────────────────────────────
Metadata is up to date; use --force to refresh again.
Devices with no available firmware updates: 
 • TPM
 • Thunderbolt host controller
Devices with the latest available firmware version:
 • Micron 2200S NVMe 512GB
 • UEFI dbx
Dell Inc. XPS 13 7390
│
└─System Firmware:
  │   Device ID:          c468ffeed9f0dddff00302ba872dee5493082b7f
  │   Résumé:             UEFI System Resource Table device (updated via NVRAM)
  │   Version actuelle:   1.24.0
  │   Version minimum:    1.24.0
  │   Fournisseur:        Dell (DMI:Dell Inc.)
  │   État de mise à jour:Success
  │   GUID:               cbe49cca-492b-93e8-b0f4-f693501f271b
  │   Drapeaux de périphérique:• Périphérique interne
  │                       • Mise à jour possible
  │                       • Le système nécessite une source d'alimentation externe
  │                       • Supported on remote server
  │                       • Needs a reboot after installation
  │                       • Cryptographic hash verification is available
  │                       • Device is usable for the duration of the update
  │   Device Requests:    • Message
  │ 
  └─XPS 13 7390 System Update:
        Nouvelle version: 1.26.0
        Remote ID:        lvfs
        Release ID:       96443
        Résumé:           Firmware for the Dell XPS 13 7390
        Licence:          Propriétaire
        Taille:           16,7 Mo
        Created:          2024-07-05
        Urgence:          Critique
        Fournisseur:      Dell
        Release Flags:    • Trusted metadata
                          • Is upgrade
        Description:      
        This stable release fixes the following issues:
        
        • This release contains security updates as disclosed in the Dell Security Advisories.
        Issues:           DSA-2024-297
                          DSA-2024-243
        Somme de contrôle:f90a7a1bbbff19a81f0efe7031e3bf93e00f963a80f931eb4fd7fb403286cb59
      

── 14:02:11 - Flatpak User Packages ────────────────────────────────────────────
Looking for updates…

Nothing to do.

── 14:02:11 - Flatpak System Packages ──────────────────────────────────────────
Looking for updates…

Nothing to do.

── 14:02:11 - Brew ─────────────────────────────────────────────────────────────
==> Updating Homebrew...
Already up-to-date.

── 14:02:14 - Gnome Shell extensions ───────────────────────────────────────────
()

── 14:02:14 - pyenv ────────────────────────────────────────────────────────────

── 14:02:14 - Visual Studio Code extensions ────────────────────────────────────
No extension to update

── 14:02:18 - pip3 ─────────────────────────────────────────────────────────────
Requirement already satisfied: pip in /var/home/essi/.local/lib/python3.12/site-packages (24.3.1)

── 14:02:18 - Poetry ───────────────────────────────────────────────────────────
Updating Poetry version ...

Using version ^1.8.4 for poetry

Updating dependencies
Resolving dependencies... (1.0s)

Package operations: 0 installs, 3 updates, 0 removals

  - Updating rapidfuzz (3.10.0 -> 3.10.1): Failed

  CalledProcessError

  Command '['/home/linuxbrew/.linuxbrew/Cellar/poetry/1.8.4/libexec/bin/python', '/home/linuxbrew/.linuxbrew/Cellar/poetry/1.8.4/libexec/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-24.2-py3-none-any.whl/pip', 'uninstall', 'rapidfuzz', '-y']' returned non-zero exit status 1.

  at /home/linuxbrew/.linuxbrew/opt/[email protected]/lib/python3.13/subprocess.py:577 in run
       573│             # We don't call process.wait() as .__exit__ does that for us.
       574│             raise
       575│         retcode = process.poll()
       576│         if check and retcode:
    →  577│             raise CalledProcessError(retcode, process.args,
       578│                                      output=stdout, stderr=stderr)
       579│     return CompletedProcess(process.args, retcode, stdout, stderr)
       580│ 
       581│ 

The following error occurred when trying to handle this error:


  EnvCommandError

  Command ['/home/linuxbrew/.linuxbrew/Cellar/poetry/1.8.4/libexec/bin/python', '/home/linuxbrew/.linuxbrew/Cellar/poetry/1.8.4/libexec/lib/python3.13/site-packages/virtualenv/seed/wheels/embed/pip-24.2-py3-none-any.whl/pip', 'uninstall', 'rapidfuzz', '-y'] errored with the following return code 1
  
  Output:
  Found existing installation: RapidFuzz 3.10.0
  error: uninstall-no-record-file
  
  × Cannot uninstall RapidFuzz 3.10.0
  ╰─> The package's contents are unknown: no RECORD file was found for RapidFuzz.
  
  hint: The package was installed by brew. You should check if it can uninstall the package.
  

  at /home/linuxbrew/.linuxbrew/Cellar/poetry/1.8.4/libexec/lib/python3.13/site-packages/poetry/utils/env/base_env.py:342 in _run
      338│                 output = subprocess.check_output(
      339│                     cmd, stderr=stderr, env=env, text=True, **kwargs
      340│                 )
      341│         except CalledProcessError as e:
    → 342│             raise EnvCommandError(e)
      343│ 
      344│         return output
      345│ 
      346│     def execute(self, bin: str, *args: str, **kwargs: Any) -> int:

Cannot install rapidfuzz.

Poetry failed: 
   0: Command failed: `/home/linuxbrew/.linuxbrew/bin/poetry self update`
   1: `/home/linuxbrew/.linuxbrew/bin/poetry` failed: exit status: 1

Location:
   src/steps/generic.rs:1028
Retry? (y)es/(N)o/(s)hell/(q)uit

── 14:02:23 - Summary ──────────────────────────────────────────────────────────
System update: OK
distrobox: OK
Firmware upgrades: OK
Flatpak: OK
Brew: OK
Gnome Shell Extensions: OK
Visual Studio Code extensions: OK
pip3: OK
Poetry: FAILED
fr-CA.
(R)eboot
(S)hell
(Q)uit
error: Recipe `update` failed with exit code 1

What did you expect to happen?

Just update without error.

Output of rpm-ostree status

❯ rpm-ostree status
State: idle
AutomaticUpdates: stage; rpm-ostreed-automatic.service: last run failed
Deployments:
  ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
                   Digest: sha256:357e306de0b7426bcbb16d5abca4ce542ccd11b44908604df86a3d2a29617748
                  Version: 40.20241027.0 (2024-10-28T04:45:28Z)
                     Diff: 20 upgraded

● ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
                   Digest: sha256:7687bfb58d2ac72f28b7318c8c91189e1420c7b50db3dc245b67ddc4dda896d7
                  Version: 40.20241025.0 (2024-10-26T04:44:43Z)

  ostree-image-signed:docker://ghcr.io/ublue-os/bluefin-dx:latest
                   Digest: sha256:4869bf3855d1c06e49ce59c7365e970454c6cfbafbc30b199f87770f43001ec7
                  Version: 40.20241006.0 (2024-10-07T05:35:01Z)

~ 

Output of groups

❯ groups
essi wheel

Extra information or context

Maybe some conflict between poetry and brew...

@dosubot dosubot bot added brew Issues related to brew.sh integration bug Something isn't working labels Oct 28, 2024
@tulilirockz
Copy link
Collaborator

tulilirockz commented Nov 12, 2024

ujust update does not support this anymore since the PR that i mentioned here. Try talking to people on the Ublue discord to get some fix for this.

@tulilirockz tulilirockz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
brew Issues related to brew.sh integration bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants