spacether/pycalculix

Unresolved import issue in PyDev

mrosemeier opened this issue · 1 comments

Having checked-out the master branch and installed pycalculix via 'python setup.py develop' creates a working version in PyDev. However, 'jumping' via CTRL+left_mouse into the source code does not work properly. PyDev shows an 'unresolved import' at lines containing a dot in the import, i.e. in 'partmodule.py' 'from . import base_classes'.

screenshot from 2015-11-05 21 27 39

Turning all lines into imports without dot fixes the issue.
Is the 'from . import' syntax required for any reason, or can it be turned into a simple 'import'?

Note that the 'pycalculix' folder needs then to be added as source directory in PyDev project properties to PYTHONPATH.

Update: The issue was in the .pydevproject file, which only pointed to the pycalculix subfolder as source directory. Changing this to the top pycalculix folder solved the issue.

However, I would suggest to gitignore the .pydevproject and .project file since it leads often to synchronizing conflicts due to individual folder or environment namings.