A similar question concerns the integration of Abaqus-specific Python libraries into a project hosted in PyDev/Eclipse . But, unfortunately, the answers were not compatible with my problem.
I am using ABAQUS version 6.11-2 and Community Edition PyCharm 3.1.3 . The Abaqus Python interpreter is in the following location on my windows7 (64) machine:
C:\SIMULIA\Abaqus\6.11-2\Python\Obj\Python.exe Python 2.6.2 for Abaqus 6.11-2 (r262:71600, Jun 29 2011, 19:23:41) [MSC v.1500 64 bit (AMD64)] on win32
The libraries that I need to allow PyCharm to give free rein to code completion are here - at least the way I think.
C:\SIMULIA\Abaqus\6.11-2\Python\Lib C:\SIMULIA\Abaqus\6.11-2\Python\Lib\abaqus.pyc C:\SIMULIA\Abaqus\6.11-2\Python\Lib\abaqusConstants.pyc
Here are the first lines of script code I'm trying to work on.
from abaqus import * from abaqusConstants import * backwardCompatibility.setValues(includeDeprecated=True, reportDeprecated=False) import sketch import part
PyCharm marks the import of abaqus and abaqusConstants with a red underline. Showing:
"Unresolved reference 'abaqus'".
Can someone explain to me how to set up a project in PyCharm so that PyCharm can allow this import?
Adding the aforementioned Python.exe as a project interpreter in the Settings dialog box will result in the following error message: "Cannot install Python SDK in ~ path ~. SDK seems invalid."


Yours faithfully
python pycharm abaqus
GeorgeX
source share