NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.22k stars 14.22k forks source link

FreeCAD cannot install its dependencies on startup #357182

Open jimmythedog opened 16 hours ago

jimmythedog commented 16 hours ago

Describe the bug

FreeCAD(1.0.0RC2) executes ~/.local/share/FreeCAD/Mod/InventorLoader/.InitGui.py on startup that attempts to install required dependencies if they're not already installed; this fails with:

07:41:02  During initialization the error "[Errno 2] No such file or directory: '"/run/current-system/sw/bin/python" -m pip install "/home/kgibbs/.local/share/FreeCAD/Mod/InventorLoader/./libs/olefile-0.46.zip"'" occurred in /home/kgibbs/.local/share/FreeCAD/Mod/InventorLoader/./InitGui.py

Steps To Reproduce

Steps to reproduce the behavior:

  1. Start FreeCAD
  2. Observe the errors in the Report view FreeCAD gui panel

Expected behavior

There should be no errors on startup

Screenshots

Additional context

All files mentioned in the error message appear to exist:

$ file /run/current-system/sw/bin/python
/run/current-system/sw/bin/python: symbolic link to /nix/store/8q1dhgdbpsss30hd9zc1m92d1bgbfwnl-python3-3.12.7-env/bin/python

$ file /home/kgibbs/.local/share/FreeCAD/Mod/InventorLoader/./libs/olefile-0.46.zip
/home/kgibbs/.local/share/FreeCAD/Mod/InventorLoader/./libs/olefile-0.46.zip: Zip archive data, at least v2.0 to extract, compression method=deflate

$ file /home/kgibbs/.local/share/FreeCAD/Mod/InventorLoader/./InitGui.py
/home/kgibbs/.local/share/FreeCAD/Mod/InventorLoader/./InitGui.py: ASCII text, with CRLF line terminators

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.61, NixOS, 25.05 (Warbler), 25.05beta708622.5e4fbfb6b3de`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - channels(kgibbs): `""`
 - channels(root): `"nixos, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

srounce commented 6 hours ago

Hi @jimmythedog I've not run into this issue. What are the permissions of your ~/.local/share/FreeCAD directory and its subdirs?

jimmythedog commented 5 hours ago

Hi @srounce , thanks for the reply