Summary: | python scripting support correctly detected, but cannot find corresponding button/action at runtime | ||
---|---|---|---|
Product: | [Applications] kig | Reporter: | Maurizio Paolini <maurizio.paolini> |
Component: | general | Assignee: | David E. Narvaez <david.narvaez> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kig/7339bc50e6ced3955d6265ef22a1474bcc6adb19 | Version Fixed In: | 4.13.3 |
Description
Maurizio Paolini
2014-05-29 17:23:23 UTC
Can you post your CMake output? $ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=debugfull -- Found Qt-Version 4.8.6 (using /usr/bin/qmake-qt4) -- Found X11: /usr/lib/libX11.so -- Found KDE 4.12 include dir: /usr/include/kde4 -- Found KDE 4.12 library dir: /usr/lib/kde4/devel -- Found the KDE4 kconfig_compiler4 preprocessor: /usr/bin/kconfig_compiler4 -- Found automoc4: /usr/bin/automoc4 ----------------------------------------------------------------------------- -- The following external packages were located on your system. -- This installation will have the extra features provided by these packages. ----------------------------------------------------------------------------- * Boost.Python - Kig can optionally use Boost.Python for Python scripting ----------------------------------------------------------------------------- -- Congratulations! All external packages have been found. ----------------------------------------------------------------------------- -- Configuring done -- Generating done -- Build files have been written to: /home/paolini/Git/kig $ Git commit 7339bc50e6ced3955d6265ef22a1474bcc6adb19 by David E. Narvaez. Committed on 08/06/2014 at 04:50. Pushed by narvaez into branch 'KDE/4.13'. Restoring the KIG_ENABLE_PYTHON_SCRIPTING Definition This was missing from the new CMake code to detect Boost + Python support M +3 -0 CMakeLists.txt http://commits.kde.org/kig/7339bc50e6ced3955d6265ef22a1474bcc6adb19 Wonderful! Now python scripting is actually included! However there is still a problem: I get an error when trying to use some mathematical functions (I tried sin and exp). the error I get is NameError: global name 'exp' is not defined File "<string>", line 8 in calc Traceback ... the script is: x = arg1.value() return DoubleObject (exp (x)) <-- this is line 8 whith arg1 being a numerical string. Perhaps this has something to do with comment 9 in the bug report: https://bugzilla.redhat.com/show_bug.cgi?id=1101626 Thanks for testing and reporting, please file a new bug about this. |