https://bugs.kde.org/show_bug.cgi?id=382401

            Bug ID: 382401
           Summary: Documentation of binary modules fails
           Product: kdev-python
           Version: 5.1.1
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Documentation data
          Assignee: m...@svenbrauch.de
          Reporter: k...@karsten-merkle.de
  Target Milestone: ---

Binary module will not be found by introspection.py
Setting in project configuration include/import, neither adding a PYTHONPATH,
containing the directory, to the definitions results in:

Traceback (most recent call last):
  File "/usr/share/kdevpythonsupport/scripts/introspect.py", line 524, in
<module>
    dumper = ModuleDumper(importlib.import_module(sys.argv[-1]))
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
ImportError: No module named FreeCAD

While bash commandline gives:

user@ws1 ~/test $ PYTHONPATH=/home/user/kdevelop/FreeCAD/build/lib:$PYTHONPATH
python2.7
Python 2.7.12 (default, May 20 2017, 00:58:59) 
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import FreeCAD
FreeCAD 0.17, Libs: 0.17R11570 (Git)
Fasteners workbench Loaded
>>> quit()

In this case the binary C++ module FreeCAD.so resident in
/home/user/kdevelop/FreeCAD/build/lib can be imported by python2.7, but is not
found by kdevelop

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to