[Solved] Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

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
PAS_Drafter
Posts: 338
Joined: Mon Aug 02, 2021 6:29 am
Location: California, USA

[Solved] Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

Post by PAS_Drafter »

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * Assembly4 0.12.3
  * Curves 0.5.4
  * ExplodedAssembly
  * fasteners 0.3.51
  * Manipulator 1.4.9
  * MOOC 2022.4.21
  * OpticsWorkbench 1.0.8
  * sheetmetal 0.2.56
  * ToolViewReverse_ToolBar
Hi, I just tried to use the Fasteners WB to bring in some nuts on a drawing, and it gave me the following error "Type must be "Shape", not NoneType". Did a quick search on it and didn't find anything. Anyone have any ideas what I might all of the sudden be doing wrong? It has worked well in the past.

TypeError.PNG
TypeError.PNG (9.15 KiB) Viewed 383 times

On a side note, it would be nice if that error messages stayed on the screen longer when you move the cursor over the part to see the error. It only stays on my screen for a second or two and I often have to do it 4 or 5 times to read the message.
Attachments
FastenersError.FCStd
(9.87 KiB) Downloaded 8 times
Last edited by PAS_Drafter on Wed Aug 17, 2022 9:41 pm, edited 1 time in total.
heron
Posts: 307
Joined: Mon Apr 20, 2020 5:32 pm

Re: Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

Post by heron »

Hello, you have outdated your fastener workbench.
Update it with Addon Manager.
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

Post by Shalmeneser »

Suppress the body ! Don't know what is the problem.
chrisb
Veteran
Posts: 53917
Joined: Tue Mar 17, 2015 9:14 am

Re: Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

Post by chrisb »

Here a recompute does the trick out of the box. So an update should indeed do the trick. 0.3.51 is my version:

Code: Select all

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.29997 (Git)
Build type: Release
Branch: master
Hash: b52967d52ac46eff7c59e74d991f3f5b298944ef
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C)
Installed mods: 
  * FC_SU
  * FeedsAndSpeeds 0.4.0
  * fcgear 1.0.0
  * fasteners 0.3.51
  * sheetmetal 0.2.56
  * ExplodedAssembly
  * Curves 0.5.4
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
PAS_Drafter
Posts: 338
Joined: Mon Aug 02, 2021 6:29 am
Location: California, USA

Re: Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

Post by PAS_Drafter »

chrisb wrote: Wed Aug 17, 2022 6:15 pm Here a recompute does the trick out of the box. So an update should indeed do the trick. 0.3.51 is my version:
Updating the Fastener Workbench did fix the problem.

However, that was the first thing I checked at the time and when I went into the Add-On Manager, it didn't say any updates were available, so I assumed I was all updated.

I had restarted FreeCAD between the time I checked the first time and and when I checked again just now, and now I had two updates available. Updated them and now we are good.

So does the Add-On manager only check for updates after a restart?
chrisb
Veteran
Posts: 53917
Joined: Tue Mar 17, 2015 9:14 am

Re: Fastener WB gives 'Type must be "Shape", not NoneType' error when importing nut

Post by chrisb »

PAS_Drafter wrote: Wed Aug 17, 2022 6:28 pm So does the Add-On manager only check for updates after a restart?
I don't think so, but there were issues with AddonManager. I have removed and reinstalled my addons, and now it works as expected.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply