Path WB error on FC start (Arch related)

Having trouble installing or compiling FreeCAD? Get help here.
User avatar
easyw-fc
Posts: 2613
Joined: Thu Jul 09, 2015 9:34 am

Path WB error on FC start (Arch related)

Postby easyw-fc » Wed Aug 21, 2019 6:05 am

FreeCAD daily (today) on Linux:
OS: Linux Mint 19.2 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

Switch to Path WB
Path WB not found
Path WB not found

[Errno 2] No such file or directory: '/usr/share/freecad-daily/Mod/Arch/Presets/ifc_contexts_IFC4.json'
Traceback (most recent call last):
File "<string>", line 73, in Initialize
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobCmd.py", line 27, in <module>
import PathScripts.PathJob as PathJob
File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 25, in <module>
import ArchPanel
File "/usr/share/freecad-daily/Mod/Arch/ArchPanel.py", line 24, in <module>
import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands,math, Part, ArchNesting
File "/usr/share/freecad-daily/Mod/Arch/ArchComponent.py", line 28, in <module>
import FreeCAD,Draft,ArchCommands,math,sys,json,os,ArchIFC,ArchIFCSchema
File "/usr/share/freecad-daily/Mod/Arch/ArchIFC.py", line 11, in <module>
import ArchIFCSchema
File "/usr/share/freecad-daily/Mod/Arch/ArchIFCSchema.py", line 7, in <module>
"ifc_contexts_" + IfcVersion + ".json")) as f:
User avatar
easyw-fc
Posts: 2613
Joined: Thu Jul 09, 2015 9:34 am

Re: Path WB error on FC start (Arch related)

Postby easyw-fc » Wed Aug 21, 2019 4:27 pm

ok, it seems it should be fixed
https://forum.freecadweb.org/viewtopic. ... 86#p327865
I'll wait the next builds
Syres
Posts: 317
Joined: Thu Aug 09, 2018 11:14 am

Re: Path WB error on FC start (Arch related)

Postby Syres » Wed Aug 21, 2019 6:03 pm

easyw-fc wrote:
Wed Aug 21, 2019 4:27 pm
ok, it seems it should be fixed
https://forum.freecadweb.org/viewtopic. ... 86#p327865
I'll wait the next builds
I hope I'm wrong but I would have thought that https://github.com/FreeCAD/FreeCAD/tree ... ch/Presets and https://salsa.debian.org/science-team/f ... ch/Presets folders should match. If I am correct, then I would have thought a Merge Request for the JSON files would be required. The original PR https://github.com/FreeCAD/FreeCAD/pull/2259 had a Merge Request for the new Python files https://salsa.debian.org/science-team/f ... s/15/diffs
Erich Schulz
Posts: 139
Joined: Tue May 07, 2019 10:50 pm
Location: Brisbane, Australia

Re: Path WB error on FC start (Arch related)

Postby Erich Schulz » Fri Sep 13, 2019 11:41 pm

This still seems to be a problem.

I just updated to latest daily and can no longer activate the path WB:

Code: Select all

[Errno 2] No such file or directory: '/usr/share/freecad-daily/Mod/Arch/Presets/ifc_contexts_IFC4.json'
Traceback (most recent call last):
  File "<string>", line 73, in Initialize
  File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJobCmd.py", line 27, in <module>
    import PathScripts.PathJob as PathJob
  File "/usr/share/freecad-daily/Mod/Path/PathScripts/PathJob.py", line 25, in <module>
    import ArchPanel
  File "/usr/share/freecad-daily/Mod/Arch/ArchPanel.py", line 24, in <module>
    import FreeCAD,Draft,ArchComponent,DraftVecUtils,ArchCommands,math, Part, ArchNesting
  File "/usr/share/freecad-daily/Mod/Arch/ArchComponent.py", line 28, in <module>
    import FreeCAD,Draft,ArchCommands,math,sys,json,os,ArchIFC,ArchIFCSchema
  File "/usr/share/freecad-daily/Mod/Arch/ArchIFC.py", line 11, in <module>
    import ArchIFCSchema
  File "/usr/share/freecad-daily/Mod/Arch/ArchIFCSchema.py", line 7, in <module>
    "ifc_contexts_" + IfcVersion + ".json")) as f:

I am on the 13/9/2019 21:10:32 build:

Code: Select all

OS: Ubuntu 18.04.3 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Python version: 3.6.8
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
The issue has been raised in the draft/arch/bim sub-board: https://forum.freecadweb.org/viewtopic. ... 87#p334087