Atom topic feed | site map | contact | login | Protection des données personnelles | Powered by FluxBB | réalisation artaban
You are not logged in.
Pages: 1
Hello everyone,
Until recently, I was using Salome-Meca to prepare the input file and the .med mesh file. These files were then taken to /bin in the Code_Aster installation directory where they were run using as_run.
Code_Aster was installed in Linux that ran as a subsystem on a windows machine. This method was working until very recently when I installed OpenFOAM in Linux.
Now, when I try to run a study using as_run it shows the following error:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ufi-pc8/Aster/lib/python3.8/site-packages/asrun/main.py", line 36, in <module>
from asrun.run import AsterRun
File "/home/ufi-pc8/Aster/lib/python3.8/site-packages/asrun/run.py", line 801
print(form % dinfo, file=ferr)
^
SyntaxError: invalid syntax
I strongly believe this is due to installing OpenFOAM 1812, which runs on Python 2.7. Does anyone have suggestions on how I can fix this issue or if this really is the issue?
With Thanks and Regards
Yash
Offline
hello
which command are you typing in the terminal?
please give the full path
with which code_aster version?
jean pierre aubry
Last edited by jeanpierreaubry (2023-03-15 11:48:02)
consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/
Offline
hello
which command are you typing in the terminal?
please give the full path
with which code_aster version?jean pierre aubry
I am using this command: as_run --quick --copy_all_results input.comm mesh.mmed
The path I am typing this command in is the installation directory of Code_Aster in which as_run is located
This is version 14.4
Thanking you
Yash
Offline
i have never done it with these arguments
i all the time use a .export file as single argument
which allows me a finer control upon the results, type of files and directory
alos alows more file as input in a much simpler way
this said i do not know where your trouble may come from
may be a Python version as 14.4 is quite old and runs with Python 2.7 as far as i remember
Last edited by jeanpierreaubry (2023-03-16 14:27:14)
consider reading my book
freely available here https://framabook.org/beginning-with-code_aster/
Offline
may be a Python version as 14.4 is quite old and runs with Python 2.7 as far as i remember
I think so too, I have been trying a new installation. Let's see how it goes.
Thanks for your reply.
Offline
Can you try
alias python=/usr/bin/ python3
(remove space before python3)
before running as_run
Offline
Can you try
alias python=/usr/bin/ python3 (remove space before python3)
before running as_run
Hi, sorry about this but I completely uninstalled that installation and decided to get a fresh installation.
Thanks for your response!!
Offline
Pages: 1