Acceso denegado a Python en módulo FEM para solvers

Este foro es para preguntas y debates en Español
Forum rules
reglas del foro e información útil

IMPORTANTE: Por favor leer antes de solicitar ayuda
Post Reply
User avatar
nifernandezf
Posts: 1
Joined: Mon Apr 23, 2018 4:10 am
Contact:

Acceso denegado a Python en módulo FEM para solvers

Post by nifernandezf »

Buenas noches: Actualmente estoy tratando de expandir la base de software FEA a Linux y me interesa utilizar FreeCAD. Me he encontrado con una cantidad considerable de problemas al trabajar en el módulo FEM los cuales he ido solucionando al paso, como la imposibilidad de crear mallas (solucionado con un binario de Gmsh) y la carencia de un solver (solucionado con binarios de CalculiX y Z88) pero, al momento de ejecutar la resolución, me aparece un nuevo error al iniciarse el proceso de cálculos. Analizándolos, ambos parecen tener el mismo origen y está asociado al Python.

Error de CalculiX
El siguiente error sale al ocuparse el Solver CalculiX:

Code: Select all

FemConstraintForce has Edge reference shapes.
FemInputWriterCcx --> self.dir_name  -->  /home/nicolas/Desktop/FreeCAD-DEMOS/Cantilever/SolverCalculiX/
FemInputWriterCcx --> self.main_file_name  -->  FEMMeshGmsh.inp
FemInputWriterCcx --> self.file_name  -->  /home/nicolas/Desktop/FreeCAD-DEMOS/Cantilever/SolverCalculiX/FEMMeshGmsh.inp
Constraint fixed: FemConstraintFixed
  nodes will be retrieved by searching the appropriate nodes in the FEM mesh
  ReferenceShape ... Type: Face, Object name: Pad, Object label: Pad, Element name: Face6
Constraint force: FemConstraintForce
Writing time input file: 2.137775 

Exception in thread Thread-30:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/freecad-daily/Mod/Fem/femsolver/task.py", line 115, in protector
    self.run()
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/freecad-daily/Mod/Fem/femsolver/calculix/tasks.py", line 89, in run
    stderr=subprocess.PIPE)
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
Captura de la situación:
Error asociado al uso de Python
Error asociado al uso de Python
SolverCalculiX.png (173.83 KiB) Viewed 938 times

Error de CalculiXccxTools
El siguiente error sale al ocuparse el Solver CalculiXccxTools:

Code: Select all

FemConstraintForce has Edge reference shapes.
FemToolsCCx.setup_working_dir()  -->  self.working_dir = /tmp/
[Errno 13] Permission deniedFemConstraintForce has Edge reference shapes.
SolidMaterial has empty References.
FemConstraintForce has Edge reference shapes.
FemToolsCCx.setup_working_dir()  -->  self.working_dir = /tmp/
[Errno 13] Permission deniedFemConstraintForce has Edge reference shapes.
FemInputWriterCcx --> self.dir_name  -->  /tmp/
FemInputWriterCcx --> self.main_file_name  -->  FEMMeshGmsh.inp
FemInputWriterCcx --> self.file_name  -->  /tmp/FEMMeshGmsh.inp
Constraint fixed: FemConstraintFixed
Constraint force: FemConstraintForce
Writing time input file: 1.991019 
Captura de la situación:
Error asociado al uso de PySide (Ver historial en ComboView)
Error asociado al uso de PySide (Ver historial en ComboView)
CalculiXccxTools.png (152.03 KiB) Viewed 938 times

Error de z88
El siguiente error sale al ocuparse el Solver z88:

Code: Select all

FemConstraintForce has Edge reference shapes.
FemInputWriterZ88 --> self.dir_name  -->  /home/nicolas/Desktop/FreeCAD-DEMOS/Cantilever/SolverZ88/
FemInputWriterZ88 --> self.file_name  -->  /home/nicolas/Desktop/FreeCAD-DEMOS/Cantilever/SolverZ88/z88
10
{'ISFLAG': '0', 'INTORD': '4', 'INTOS': '0', 'IHFLAG': '0'}
Constraint fixed: FemConstraintFixed
  nodes will be retrieved by searching the appropriate nodes in the FEM mesh
  ReferenceShape ... Type: Face, Object name: Pad, Object label: Pad, Element name: Face6
Constraint force: FemConstraintForce
Writing time input file: 1.516299 

Exception in thread Thread-40:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/freecad-daily/Mod/Fem/femsolver/task.py", line 115, in protector
    self.run()
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/freecad-daily/Mod/Fem/femsolver/z88/tasks.py", line 92, in run
    stderr=subprocess.PIPE)
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/tmp/.mount_FreeCAGGAC5g/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied
Captura de la situación:
Error asociado al uso de Python, similar al de CalculiX
Error asociado al uso de Python, similar al de CalculiX
SolverZ88.png (169.38 KiB) Viewed 938 times

No he podido dar con una solución que me permita avanzar. He leído en foros de otros programas que esto se debe al Python que fue incorporado en la AppImage, pero no dan una solución concreta. He probado FreeCAD en Windows y no tuve ningún problema (en realidad, ninguno) por lo que solo se está presentando en GNU/Linux. Me interesa resolver este problema ya que la idea es expandirse hacia Linux, y no seguir en Windows.

Cualquier comentario, ayuda o requerimiento de mayor información será recibido con gusto. Saludos a todos.

Nicolás.

Información técnica del programa y sistema:
OS: Linux Lite 3.8
(Virtualizado sobre Windows 10 Enterprise N 2016 LTSB con VM VirtualBox 5.2.6 r120293)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13509 (Git) AppImage
Build type: None
Branch: master
Hash: 0258808ccb6ba3bd5ea9312f79cd023f1a8671b7
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Post Reply