error in get ccx version

About the development of the FEM module/workbench.

Moderator: bernd

User avatar
bernd
Posts: 8242
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

error in get ccx version

Postby bernd » Wed Mar 06, 2019 8:48 am

code:

Code: Select all

doc = FreeCAD.open(FreeCAD.ConfigGet("AppHomePath") + 'data/examples/FemCalculixCantilever3D.FCStd')
from femtools.ccxtools import FemToolsCcx as ccx
fea = ccx()
fea.get_ccx_version()
error:

Code: Select all

Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Fem/femtools/ccxtools.py", line 651, in get_ccx_version
    startupinfo=startup_info)
  File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Keine Berechtigung: '

on:
OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16057 (Git)
Build type: Unknown
Branch: bhbdev201
Hash: 6f96213cc310b9e0e41799b5f56990f1c14fccfe
Python version: 3.7.2+
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)


and:
fea.get_ccx_version()
OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16054 (Git)
Build type: Unknown
Branch: master
Hash: 55160676d3fd5631b7791a108243ef7f580546f3
Python version: 2.7.16rc1
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)

and
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16028 (Git)
Build type: Release
Branch: master
Hash: 9079de7516eca945587e18f6076ec74eb7bd043c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)

and:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16028 (Git)
Build type: Release
Branch: master
Hash: 9079de7516eca945587e18f6076ec74eb7bd043c
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: German/Switzerland (de_CH)
User avatar
bernd
Posts: 8242
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: error in get ccx version

Postby bernd » Wed Mar 06, 2019 8:58 am

but I am on the road and can not have a look at this ATM ...
User avatar
bernd
Posts: 8242
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: error in get ccx version

Postby bernd » Wed Mar 06, 2019 11:12 am

User avatar
bernd
Posts: 8242
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: error in get ccx version

Postby bernd » Wed Mar 06, 2019 11:17 am

https://github.com/FreeCAD/FreeCAD/pull ... 57e468b41a on top of the last fixes it for Python 3 too.

:D