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

--- Comment #3 from k...@karsten-merkle.de ---
@Sven
no just added it to the project settings Definitions.
But using it like PYTHONPATH=/home/user/kdevelop/FreeCAD/build/lib:$PYTHONPATH
kdevelop does it add.

@Francis
actually FreeCAD.so comes from C++ Code, but yes I see:
Processing module FreeCAD
Generating documentation for class Axis
Traceback (most recent call last):
  File "/usr/share/kdevpythonsupport/scripts/introspect.py", line 528, in
<module>
    dumper.dump()
  File "/usr/share/kdevpythonsupport/scripts/introspect.py", line 375, in dump
    dumper.dump()
  File "/usr/share/kdevpythonsupport/scripts/introspect.py", line 497, in dump
    dumper.dump()
  File "/usr/share/kdevpythonsupport/scripts/introspect.py", line 412, in dump
    arguments = inspect.getfullargspec(self.function)
AttributeError: 'module' object has no attribute 'getfullargspec'

...getfullargspec that's hard to come by with python2. 
Introspection with inspect.signature could be done in python2 over
https://github.com/aliles/funcsigs 

So if in FunctionDumper.dump signature(self.function) would be used instead
getfullargspec(self.function), it could become python2 compatible (at least
here). See also https://www.python.org/dev/peps/pep-0362/

Might help to use kdevelop to convert FreeCAD (and other still python2
projects) to python3

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

Reply via email to