weekly-builds-30193-2022-09-01 addon manager error

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Piero69
Posts: 476
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

weekly-builds-30193-2022-09-01 addon manager error

Post by Piero69 »

@chennes @looo

the new weekly buids 30193-2022-09-01 gives an error on running the addon manager as follow:

08:57:25 Traceback (most recent call last):
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_git.py", line 284, in _synchronous_call_git
08:57:25 proc = subprocess.run(
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\bin\lib\subprocess.py", line 516, in run
08:57:25 raise CalledProcessError(retcode, process.args,
08:57:25 subprocess.CalledProcessError: Command '['C:\\Program Files\\Git\\cmd\\git.EXE', 'fetch']' returned non-zero exit status 128.
08:57:25
The above exception was the direct cause of the following exception:

08:57:25 Traceback (most recent call last):
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 314, in _update_local_git_repo
08:57:25 self.git_manager.update(macro_cache_location)
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_git.py", line 103, in update
08:57:25 self._synchronous_call_git(["fetch"])
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_git.py", line 299, in _synchronous_call_git
08:57:25 raise GitFailed(str(e)) from e
08:57:25 addonmanager_git.GitFailed: Command '['C:\\Program Files\\Git\\cmd\\git.EXE', 'fetch']' returned non-zero exit status 128.
08:57:25
During handling of the above exception, another exception occurred:

08:57:25 Traceback (most recent call last):
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 87, in run
08:57:25 self._retrieve_macros_from_git()
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 265, in _retrieve_macros_from_git
08:57:25 update_succeeded = self._update_local_git_repo()
08:57:25 File "D:\FreeCAD\FreeCAD_weekly-builds-30193-2022-09-01-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 320, in _update_local_git_repo
08:57:25 except GitFailed as e:
08:57:25 NameError: name 'GitFailed' is not defined

Code: Select all

OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of FreeCAD: 64-bit
Version: 0.21.30193 (Git)
Build type: Release
Branch: master
Hash: a8cb4e744483ce2c4b0770b948105a766330a4b2
Python 3.8.13, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: Italian/Italy (it_IT)
Installed mods: 
  * A2plus 0.4.54b
  * Assembly3 0.11.3
  * Assembly4 0.11.8
  * Behave-Dark-Colors 0.1.1
  * BOLTSFC
  * CurvedShapes 1.0.4
  * Curves 0.5.6
  * dxf_library
  * DynamicData 2.46.0
  * ExplodedAssembly
  * fasteners
  * FCGear
  * ImportNURBS
  * invgears 0.1.2
  * lattice2
  * nurbs
  * Render 2022.1.0
  * Silk -1216596464.0.0
  * symbols_library
User avatar
chennes
Veteran
Posts: 3906
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: weekly-builds-30193-2022-09-01 addon manager error

Post by chennes »

Thanks - I can reproduce locally, so it's nothing to do with the build itself, this one's on me. I'll try to investigate later today.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Piero69
Posts: 476
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

Re: weekly-builds-30193-2022-09-01 addon manager error

Post by Piero69 »

@chennes

this morning i unzipped the new build 30265-2022-09-04 but the error on addmanager keeps existing.

the permission error (win32 error) line in Italian says "impossible to run file. File is used from another process"


07:27:01 3.532005 <asm3.main> init_gui.py(14): no solver backend found
07:29:07 An error occurred updating macros from GitHub, trying clean checkout...:
Command '['C:\\Program Files\\Git\\cmd\\git.EXE', 'fetch']' returned non-zero exit status 128.
07:29:07 C:\Users\Zeiss\AppData\Local\Temp\FreeCAD\Cache\AddonManager\Macros
07:29:07 Attempting to do a clean checkout...
07:29:07 Traceback (most recent call last):
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_git.py", line 287, in _synchronous_call_git
07:29:07 proc = subprocess.run(
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\bin\lib\subprocess.py", line 516, in run
07:29:07 raise CalledProcessError(retcode, process.args,
07:29:07 subprocess.CalledProcessError: Command '['C:\\Program Files\\Git\\cmd\\git.EXE', 'fetch']' returned non-zero exit status 128.
07:29:07
The above exception was the direct cause of the following exception:

07:29:07 Traceback (most recent call last):
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 314, in _update_local_git_repo
07:29:07 self.git_manager.update(macro_cache_location)
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_git.py", line 102, in update
07:29:07 self._synchronous_call_git(["fetch"])
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_git.py", line 302, in _synchronous_call_git
07:29:07 raise GitFailed(str(e)) from e
07:29:07 addonmanager_git.GitFailed: Command '['C:\\Program Files\\Git\\cmd\\git.EXE', 'fetch']' returned non-zero exit status 128.
07:29:07
During handling of the above exception, another exception occurred:

07:29:07 Traceback (most recent call last):
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\bin\lib\shutil.py", line 620, in _rmtree_unsafe
07:29:07 os.rmdir(path)
07:29:07 PermissionError: [WinError 32] Impossibile accedere al file. Il file è utilizzato da un altro processo: 'C:\\Users\\Zeiss\\AppData\\Local\\Temp\\FreeCAD\\Cache\\AddonManager\\Macros'
07:29:07
During handling of the above exception, another exception occurred:

07:29:07 Traceback (most recent call last):
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 87, in run
07:29:07 self._retrieve_macros_from_git()
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 265, in _retrieve_macros_from_git
07:29:07 update_succeeded = self._update_local_git_repo()
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 334, in _update_local_git_repo
07:29:07 shutil.rmtree(macro_cache_location, onerror=self._remove_readonly)
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\bin\lib\shutil.py", line 740, in rmtree
07:29:07 return _rmtree_unsafe(path, onerror)
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\bin\lib\shutil.py", line 622, in _rmtree_unsafe
07:29:07 onerror(os.rmdir, path, sys.exc_info())
07:29:07 File "D:\FreeCAD\FreeCAD_weekly-builds-30265-2022-09-04-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_startup.py", line 411, in _remove_readonly
07:29:07 func(path)
07:29:07 PermissionError: [WinError 32] Impossibile accedere al file. Il file è utilizzato da un altro processo: 'C:\\Users\\Zeiss\\AppData\\Local\\Temp\\FreeCAD\\Cache\\AddonManager\\Macros'
User avatar
chennes
Veteran
Posts: 3906
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: weekly-builds-30193-2022-09-01 addon manager error

Post by chennes »

We appear to be getting closer to the underlying error here: the macro cache folder is in use. I’ll try to take a look later today.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply