There is a similar question regarding the integration of Abaqus specific python libraries into a project hosted in PyDev/Eclipse
. But unfortunately the answers were not compatible with my problem at hand.
I am using ABAQUS
Version 6.11-2 and the Community Edition of PyCharm 3.1.3
.
The Abaqus python interpreter resides at 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 I need PyCharm to resolve in order to give it's code completion magic a go are residing here - at least that's what I believe them to be.
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 code of the script I am trying to work on.
from abaqus import *
from abaqusConstants import *
backwardCompatibility.setValues(includeDeprecated=True, reportDeprecated=False)
import sketch
import part
PyCharm marks the abaqus and abaqusConstants import with red underlining. Showing:
"Unresolved reference 'abaqus'".
Can someone explain to me how to configure the project in PyCharm so that PyCharm can resolve these imports?
Adding the mentioned Python.exe as a Project Interpreter in the Settings Dialog will lead to the following error messagebox saying 'Cannot setup a python SDK at ~path~. The SDK seems invalid'.
Regards