RE: Where have all the workbenche addons gone? (please pin)

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
montyl
Posts: 19
Joined: Tue Jan 22, 2019 5:08 am

RE: Where have all the workbenche addons gone? (please pin)

Post by montyl »

All,

The broken Addon Manager seems to affect us all, stable or daily users.

If you have the report view showing, you'll see

Code: Select all

12:58:58  Traceback (most recent call last):
12:58:58    File "/usr/share/freecad-daily/Mod/AddonManager/AddonManager.py", line 261, in launch
12:58:58      last_cache_update = date.fromisoformat(last_cache_update_string)
12:58:58  AttributeError: type object 'datetime.date' has no attribute 'fromisoformat'
The last line is the issue.

Until the devs fix it, and please, be patient with them; there is a simple workaround that doesn't involve manually finding and installing workbenches you may find yourself needing.

Close FreeCAD, find your user.cfg file (Linux users will find it under $home/.config/FreeCAD/, I'm not a Windows user so I'm not sure where you'll find it) and edit one line inside of it:

Code: Select all

<FCText Name="LastCacheUpdate">2022-01-10</FCText>
to:

Code: Select all

<FCText Name="LastCacheUpdate">never</FCText>
Run FreeCAD, go into the Addon Manager, and the cache will refresh, allowing you to add any workbenches or macros you wish. As soon as you close the Addon Manager, you'll have to close FreeCAD, change the config file again, rinse and repeat... all you'll get otherwise is an error in the report view.

Monty

DEVS: You're probably aware of this, but I'll share in case it hasn't been mentioned. As I found on StackOverflow (https://stackoverflow.com/questions/602 ... misoformat), Python versions below 3.7 do not have fromisoformat. There is a backport https://pypi.org/project/backports-date ... isoformat/, but it is well beyond my abilities to know what to do with the information...
Kunda1 wrote:
ping
Kunda1, if I'm wrong, I apologize, but since you locked the above thread about this issue, I figure you're a good one to ask for this to be pinned. :)
User avatar
chennes
Veteran
Posts: 3910
Joined: Fri Dec 23, 2016 3:38 pm
Location: Norman, OK, USA
Contact:

Re: RE: Where have all the workbenche addons gone? (please pin)

Post by chennes »

Chris Hennes
Pioneer Library System
GitHub profile, LinkedIn profile, chrishennes.com
montyl
Posts: 19
Joined: Tue Jan 22, 2019 5:08 am

Re: RE: Where have all the workbenche addons gone? (please pin)

Post by montyl »

chennes wrote: Tue Jan 11, 2022 3:16 am Fixed in git commit 70d61b96241a7b54eb0fba4b993e35928ba46f80
Awesome, chennes! Should this be pinned to help minimize the number of questions?

Monty
montyl
Posts: 19
Joined: Tue Jan 22, 2019 5:08 am

Re: RE: Where have all the workbenche addons gone? (please pin)

Post by montyl »

The commit has made it into the Ubuntu 18.04.6 build, and I am happy to report that it does indeed fix the Addon Manager.

Many thanks to all, keep up the good work!

Monty

OS: Ubuntu 18.04.6 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.
Build type: Release
Branch: unknown
Hash: d5ae0777d0c72752b32cd0fb56fe8db2482e3bc3
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.5.2
Locale: English/UnitedStates (en_US)
Post Reply