I replaced the pipe character with __or__()
It should work fine now.
Code: Select all
def Initialize(self):
# load the module
self.appendToolbar("Image Scale", ["Image_Scale"])
self.appendMenu("Image Scale", ["Image_Scale"])
import ImageGui
Could someone have an insight?ImageWorkbench instance has no attribute '__Workbench__'
Tried in Ubuntu: I'm unsure with the handling, and as it didn't work as expected I canceled the scaling. That made FreeCAD crash. I will try to reproduce tomorrow - here it's 3:00 a.m.
I can reproduce the crash:
Code: Select all
Coin error in SoGroup::removeChild(): tried to remove non-existent child 0x5628f0a3fc50 (Switch)
Coin warning in SoEventCallback::removeEventCallback(): tried to remove non-existent callback function
Coin warning in SoEventCallback::removeEventCallback(): tried to remove non-existent callback function
('[Draft.todo.tasks] Unexpected error:', <type 'exceptions.TypeError'>, 'in ', <bound method SoCoordinate3.<lambda> of <bound method SoSFInt32.setValue of <bound method SoType.<lambda> of <bound method SoSFInt32.<lambda> of <bound method SoSFInt32.setValue of <bound method SoSeparator.<lambda> of <bound method OrderedDict.__setitem__ of <bound method WeakSet.__contains__ of <bound method WeakSet.add of <bound method WeakSet.add of <bound method WeakSet._commit_removals of <bound method Tokenizer.get of <bound method SubPattern.append of <bound method SubPattern.__setitem__ of <bound method SubPattern.__init__ of <bound method Tokenizer.get of <bound method SubPattern.append of <bound method Tokenizer.__next of <unbound method SubPattern.__init__>>>>>>>>>>>>>>>>>>>, '(', <pivy.coin.SoSwitch; proxy of <Swig Object of type 'SoSwitch *' at 0x7fb72b117d80> >, ')')Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x3ef20) [0x7fb76e7daf20]
#1 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1aacef) [0x7fb7704c4cef]
#2 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x16631c) [0x7fb77048031c]
#3 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x1b3) [0x7fb7704f8c53]
#4 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1645f9) [0x7fb77047e5f9]
#5 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x43) [0x7fb77036e333]
#6 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_CallObjectWithKeywords+0x47) [0x7fb7704f87a7]
#7 0x7fb74016f793 in PySide::SignalManager::callPythonMetaMethod(QMetaMethod const&, void**, _object*, bool) from /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2+0x83
#8 /usr/lib/x86_64-linux-gnu/libpyside-python2.7.so.1.2(+0x15454) [0x7fb740176454]
#9 0x7fb76f2d20c6 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x626
#10 /usr/lib/python2.7/dist-packages/PySide/QtCore.so(+0x19c9cb) [0x7fb737bc89cb]
#11 0x7fb76f2d7be3 in QObject::event(QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0xa3
#12 /usr/lib/python2.7/dist-packages/PySide/QtCore.so(+0x19c593) [0x7fb737bc8593]
#13 0x7fb76f7ea03c in QApplicationPrivate::notify_helper(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x8c
#14 0x7fb76f7f0f76 in QApplication::notify(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtGui.so.4+0x2b6
#15 0x7fb77145c678 in Gui::GUIApplication::notify(QObject*, QEvent*) from /home/user/freecad-build/lib/libFreeCADGui.so+0x88
#16 0x7fb76f2bd8ad in QCoreApplication::notifyInternal(QObject*, QEvent*) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x8d
#17 /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1bd6e0) [0x7fb76f2f06e0]
#18 /usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x1ba851) [0x7fb76f2ed851]
#19 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x2e7) [0x7fb768092287]
#20 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x4c4c0) [0x7fb7680924c0]
#21 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2c) [0x7fb76809254c]
#22 0x7fb76f2ee20e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x7e
#23 /usr/lib/x86_64-linux-gnu/libQtGui.so.4(+0x272666) [0x7fb76f897666]
#24 0x7fb76f2bc12f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x3f
#25 0x7fb76f2bc495 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x1b5
#26 0x7fb76f2c2459 in QCoreApplication::exec() from /usr/lib/x86_64-linux-gnu/libQtCore.so.4+0x99
#27 0x7fb77140e5ac in Gui::Application::runApplication() from /home/user/freecad-build/lib/libFreeCADGui.so+0x15bc
#28 bin/FreeCAD(main+0x6db) [0x5628e90eb3cb]
#29 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fb76e7bdb97]
#30 bin/FreeCAD(_start+0x2a) [0x5628e90ec57a]
@yorik, would you please have a look at?
Code: Select all
Features from ImageTools package cannot be loaded. No module named ImageTools._CommandImageScaling
I think the 'ImageTools' folder should be copied to 'FreeCAD\Mod\Image' WB folder.
Code: Select all
Unhandled unknown exception caught in GUIApplication::notify.