Notifications
Clear all

Abaqus Python upgrade/Running scripts from external IDE

1 Posts
1 Users
0 Likes
737 Views
appetite
Posts: 61
Topic starter
(@appetite)
Trusted Member
Joined: 14 years ago

Hello All,

I am developing some Python scripts for Abaqus. I run them from IEP (Interactive Editor for Python) on Python 2.7.6.

In the parts that I have to call Abaqus, however, I have to go to Abaqus-based Python (2.6) otherwise within IEP, Abaqus is not recognized, neither I can import any of its modules like OdbAccess.

I was wondering if there is a way to make my IEP and Python 2.7 as my default running Python communicating with Abaqus?

The main reasons for such thing is that first, its much more convenient to write in the editor, and second, I have imported lots of cool modules that are otherwise not available in Abaqus Python.

I thought there should be a way to tell Abaqus to use another version of Python in the other directory...I tried to copy and paste all the abaqus lib files to my Python 2.7 lib folder but I get the following error when trying to import Abaqus module from the IEP:

ImportError: Bad magic number in c:\python27\lib\abaqusConstants.pyc

Thanks a lot for your input in advance! 🙂

Topic Tags
Share: