Calculix error.

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
akeyokey
Posts: 27
Joined: Fri Feb 17, 2017 6:13 pm

Calculix error.

Post by akeyokey »

I hesitate to post here or in the fem forum.
So I have this error when i want to start "Run CalculiX"

Code: Select all

Using CalculiX binary path from FEM preferences: /home/kakiz/Téléchargements/CalculiX/ccx_2.10/src/
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FEM preferences working dir is not set, the solver working directory is used.
Dir '' doesn't exist and cannot be created.
Dir '/tmp' will be used instead.
FemTools.setup_working_dir()  -->  self.working_dir = /tmp
FemInputWriterCcx --> self.dir_name  -->  /tmp
FemInputWriterCcx --> self.main_file_name  -->  Plane_mesh.inp
FemInputWriterCcx --> self.file_name  -->  /tmp/Plane_mesh.inp
('  ReferenceShape : ', 'Edge', ', ', 'Plane', ', ', u'Plane', ' --> ', 'Edge1')
Writing time input file: 0.004642 

runCalculix
[color=#FF0000]Traceback (most recent call last):
  File "/usr/local/FreeCAD17/build/Mod/Fem/PyGui/_TaskPanelFemSolverCalculix.py", line 238, in runCalculix
    self.femConsoleMessage("CalculiX binary: {}".format(self.CalculixBinary))
  File "/usr/local/FreeCAD17/build/Mod/Fem/PyGui/_TaskPanelFemSolverCalculix.py", line 105, in femConsoleMessage
    format(time.time() - self.Start, color, message.encode('utf-8', 'replace'))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 30: ordinal not in range(128)[/color]
What am i doing wrong?
I'm using Fedora 25.

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10473 (Git)
Build type: Unknown
Branch: master
Hash: 78b986a2657b7de79b6e350a2535dc0fbfe3f1cf
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
akeyokey
Posts: 27
Joined: Fri Feb 17, 2017 6:13 pm

Re: Calculix error.

Post by akeyokey »

I think the error is about the path of my CCX;
.../Téléchargements/...

Then i change the location of ccx 2.11

I get a new error :

Code: Select all

runCalculix
run CalculiX at: /usr/local/CalculiX/ccx_2.11/src/ with: /tmp/Plane_mesh
Error() PySide.QtCore.QProcess.ProcessError.FailedToStart
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: Calculix error.

Post by UR_ »

Hello akeyokey,
i am a windows guy, but i think, if you can find ccx.exe in this source folder, you are in trouble.
runCalculix
run CalculiX at: /usr/local/CalculiX/ccx_2.11/src/ with: /tmp/Plane_mesh
Error() PySide.QtCore.QProcess.ProcessError.FailedToStart
Please use this button and navigate to ccx.exe
pref-dialog-fem.png
pref-dialog-fem.png (58.26 KiB) Viewed 6421 times
akeyokey
Posts: 27
Joined: Fri Feb 17, 2017 6:13 pm

Re: Calculix error.

Post by akeyokey »

in src folder i have the ccx linux executable file. So it's normal i think.
Attachments
Capture du 2017-03-12 19-11-27.png
Capture du 2017-03-12 19-11-27.png (19.83 KiB) Viewed 6414 times
akeyokey
Posts: 27
Joined: Fri Feb 17, 2017 6:13 pm

Re: Calculix error.

Post by akeyokey »

Please use this button and navigate to ccx.exe
Ok i correct this path but i get this when i click " write inp file"

Code: Select all

  FEM: wrong ccx binaryTraceback (most recent call last):
  File "/home/kakiz/Documents/FreeCAD/build/Mod/Fem/PyGui/_TaskPanelFemSolverCalculix.py", line 186, in write_input_file_handler
    if self.check_prerequisites_helper():
  File "/home/kakiz/Documents/FreeCAD/build/Mod/Fem/PyGui/_TaskPanelFemSolverCalculix.py", line 208, in check_prerequisites_helper
    fea = FemToolsCcx.FemToolsCcx(None, self.solver_object)
  File "/home/kakiz/Documents/FreeCAD/build/Mod/Fem/FemToolsCcx.py", line 82, in __init__
    self.setup_ccx()
  File "/home/kakiz/Documents/FreeCAD/build/Mod/Fem/FemToolsCcx.py", line 173, in setup_ccx
    raise Exception(error_message)
Exception: FEM: CalculiX ccx '/home/kakiz/Documents/CalculiX/ccx_2.11/src/ccx_2.11' output '' doesn't contain expected phrase 'CalculiX'. Please use ccx 2.6 or newer
UR_
Veteran
Posts: 1354
Joined: Tue Jan 03, 2017 8:42 pm

Re: Calculix error.

Post by UR_ »

Hello akeyokey,
some minutes ago i stumbled into this thread

https://forum.freecadweb.org/viewtopic.php?f=18&t=21218

fandaL advised you to read this:
http://www.dhondt.de/ccx_2.11.README.INSTALL

i think important part is the red one :o
*****************************************************************************

B. IF YOU WOULD LIKE TO RUN THE EXECUTABLE YOU COPIED FROM THE
HOMEPAGE (ccx_2.11.tar.bz2):

1. copy ccx_2.11.tar.bz2 to /usr/local. Bunzip2 and untar the
executable; the file ccx_2.11 is
generated and put into /usr/local/CalculiX/ccx_2.11/src. Move
the executable to /usr/local/bin.


2. to run examples, get ccx_2.11.test.tar.bz2 from the homepage
and follow the instructions under A.

3. to get the documentation, get ccx_2.11.ps.tar.bz2 and
ccx_2.11.htm.tar.bz2, copy them to /usr/local and bunzip2 and
untar them. Alternatively, create the documentation from the tex
original ccx_2.11.doc.tar.bz2 and proceed as explained under A.

******************************************************************************
akeyokey
Posts: 27
Joined: Fri Feb 17, 2017 6:13 pm

Re: Calculix error.

Post by akeyokey »

Ok I miss this step, sorry.

but i get this error again :

Code: Select all

0.0: Check dependencies...
1.4: Write completed.
0.0: CalculiX binary: /usr/local/bin/
0.0: Run CalculiX...
0.0: Starting CalculiX...
0.0: CalculiX stopped.
0.0: CalculiX execute error: PySide.QtCore.QProcess.ProcessError.FailedToStart
The executable ccx is in this folder : /usr/local/bin/
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Calculix error.

Post by bernd »

would you post the output of the following two shell commands:

Code: Select all

which ccx

Code: Select all

ccx
For me it is:

Code: Select all

$ which ccx
/usr/bin/ccx
$ 
$ 
$ ccx
Usage: CalculiX.exe -i jobname
For you it should be:

Code: Select all

$ which ccx
/usr/local/bin/ccx
$ 
$ 
$ ccx
Usage: CalculiX.exe -i jobname
akeyokey
Posts: 27
Joined: Fri Feb 17, 2017 6:13 pm

Re: Calculix error.

Post by akeyokey »

I solved my problem, I recompile correctly SPOOLES and ARPACK. And correct the path.
Thanks You everybody.
Post Reply