View Issue Details

IDProjectCategoryView StatusLast Update
0004840FEMBugpublic2022-02-06 18:55
ReporterStefanBruens Assigned Tokeithsloan52  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version0.19 
Summary0004840: parsetab.py not created as part of installation
DescriptionFreeCAD uses ply.yacc in two places:


Mod/Fem/femtools/tokrules.py:yacc.yacc()
Mod/OpenSCAD/importCSG.py:    parser = yacc.yacc(debug=0)

According to https://www.skenz.it/compilers/ply
> Since table construction is relatively expensive (especially for large grammars), the resulting parsing table is written to a file called parsetab.py. In addition, a debugging file called parser.out is created.

When FreeCAD has been installed to a write-protected (not writable by regular user) path, the parsetab.py can not be created.
Steps To ReproduceThis is e.g. visible when running the "TestFemApp" unit test:

....WARNING: Couldn't open 'parser.out'. [Errno 13] Permission denied: '/usr/lib64/FreeCAD/Mod/Fem/femtools/parser.out'
WARNING: Token 'COMMENT' defined, but not used
WARNING: There is 1 unused token
Generating LALR tables
WARNING: Couldn't create 'femtools.parsetab'. [Errno 13] Permission denied: '/usr/lib64/FreeCAD/Mod/Fem/femtools/parsetab.py'
Additional InformationThis was already mentioned in:

https://forum.freecadweb.org/viewtopic.php?style=1&p=369267#p369267
TagsNo tags attached.
FreeCAD InformationOS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.Unknown
Build type: Release
Python version: 3.8.12
Qt version: 5.15.2
Coin version: 3.1.3
OCC version: 7.5.3
Locale: English/United States (en_US)

Activities

StefanBruens

2022-02-06 17:41

reporter   ~0016364

As the relevant code is unchanged in master, this also applies to 0.20

Kunda1

2022-02-06 18:50

administrator   ~0016368

Last edited: 2022-02-06 18:55

@StefanBruens thanks. Next time please open a forum thread. my bad, there was a forum thread attached
@keithsloan52 this is openscad related. Care to weigh-in?

Edit: forum thread exists

yorik

2022-03-03 13:55

administrator   ~0017146

This ticket has been migrated to GitHub as issue 6315.

Issue History

Date Modified Username Field Change
2022-02-06 17:11 StefanBruens New Issue
2022-02-06 17:41 StefanBruens Note Added: 0016364
2022-02-06 18:50 Kunda1 Note Added: 0016368
2022-02-06 18:52 Kunda1 Note Edited: 0016368
2022-02-06 18:53 Kunda1 Steps to Reproduce Updated
2022-02-06 18:53 Kunda1 Description Updated
2022-02-06 18:54 Kunda1 Assigned To => keithsloan52
2022-02-06 18:54 Kunda1 Status new => assigned
2022-02-06 18:55 Kunda1 Note Edited: 0016368