Macro update error in in builds 30305-2022-09-08-conda-Windows

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: 473
Joined: Thu Jul 04, 2019 1:22 pm
Location: Parma - Italy

Macro update error in in builds 30305-2022-09-08-conda-Windows

Post by Piero69 »

@chennes

i discover that the error in addon manager update is relative only on macro and not on WB. I try to update manually one by one the outdated WBs and works, once i tried to update the TechDrawtools macro i get the error. that's:

08:05:36 Traceback (most recent call last):
08:05:36 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_installation.py", line 857, in run
08:05:36 self.update_macro(repo)
08:05:36 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_workers_installation.py", line 874, in update_macro
08:05:36 install_succeeded, _ = repo.macro.install(cache_path)
08:05:36 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_macro.py", line 414, in install
08:05:36 success = self._copy_other_files(macro_dir, warnings)
08:05:36 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_macro.py", line 462, in _copy_other_files
08:05:36 src_file = os.path.normpath(os.path.join(base_dir, other_file))
08:05:36 NameError: name 'base_dir' is not defined
08:06:43 Traceback (most recent call last):
08:06:43 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\AddonManager.py", line 1422, in update
08:06:43 self.install(repo)
08:06:43 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\AddonManager.py", line 1394, in install
08:06:43 temp_install_succeeded, error_list = macro.install(dir)
08:06:43 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_macro.py", line 414, in install
08:06:43 success = self._copy_other_files(macro_dir, warnings)
08:06:43 File "D:\FreeCAD\FreeCAD_weekly-builds-30305-2022-09-08-conda-Windows-x86_64-py38\Mod\AddonManager\addonmanager_macro.py", line 462, in _copy_other_files
08:06:43 src_file = os.path.normpath(os.path.join(base_dir, other_file))
08:06:43 NameError: name 'base_dir' 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.30305 (Git)
Build type: Release
Branch: master
Hash: 5ffc2e10b69971e2cdcd798c4deacf44d407fd77
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.8
  * dxf_library
  * DynamicData 2.46.0
  * ExplodedAssembly
  * fasteners
  * FCGear
  * ImportNURBS
  * invgears 0.1.2
  * lattice2
  * nurbs
  * Render 2022.1.0
  * Silk -1200540144.0.0
  * symbols_library
User avatar
chennes
Veteran
Posts: 3883
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: Macro update error in in builds 30305-2022-09-08-conda-Windows

Post by chennes »

It looks like a recent refactoring broke the "other files" part of macros -- since most macros don't have any, the code isn't getting much exercise. I should be able to get that patched up today, so it will be fixed in the next Conda build.
Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
Post Reply