简体   繁体   中英

Disruption in running ABAQUS python script from command prompt

I am having problem running an ABAQUS python script from DOS prompt after installing VPython. It seems the system and environment variables have been disrupted. I usually type the following command in DOS prompt to execute the python script without the graphical unit interface (GUI):

abaqus cae noGUI=myFile.py 

I am attaching a figure containing the following error message:

Error Message

'abaqus' is not recognized as an internal or external command.<br>
operable program or batch file.

I am using ABAQUS 6.10. Can somebody help me to get the settings, right?

I thank everyone for their participation. After the brief discussions, the problem has been solved using the procedure explained in detail in the following paragraphs.

On installation of some programs the system variables may get changed. Some changes, not due to the fault of the user, may be undesirable for other installed programs, like ABAQUS, as in this particular problem. In this problem, after the installation of VPython (for some other purpose) the system variables under the variable name "PATH" got changed. This caused the following error while calling the python script with ABAQUS (using the command abaqus cae noGUI=<script-file-name>.py ) from the MS-DOS prompt:

'abaqus' is not recognized as an internal or external command.
operable program or batch file.

Therefore, the variable values for ABAQUS program needed to be re-entered. The following steps were taken:

  1. Right-click " My Computer " and click on " Properties ".
  2. On the left-hand side of the task pane, click on " Advanced System Settings ".
  3. Under the " Advanced " tab, at the bottom, click on " Environment Variables ".
  4. Under the list of " System Variables ", click and edit the variable with name " PATH ".
  5. In the input box, in the " Variable Value " add the following: D:\\SIMULIA\\Abaqus\\Commands; (Ensure that the written value is preceded and followed by a semi-colon if there are already other values existing in the " Variable Value " box)

Please note the extension to the "Commands" can vary in different computers depending on the destination folder of ABAQUS installation. So one must be cautious in entering the exact folder path. You can also enter echo %PATH% in the dos prompt and check to see the " Variable Value " present under the variable name " PATH "

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM