Scribus

Petr Vaněk petr at yarpen.cz
Tue Nov 12 06:57:15 PST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi Stan,

I'm a (retired) Scribus developer, but I use git/binary packages of this
application.

We use(d) many stdout/stderr debugging strings so the running scribus
from the terminal can help. And yes, I can confirm that python scripts
are crashing in the python/tk interpreter (the app still runs) with
something like shown below.

Can you share your output, please?


lister:~ pvanek$ /Applications/Scribus.app/Contents/MacOS/Scribus
Path = /Applications/Scribus.app
"scpaths: bundle at /Applications/Scribus.app:"
"scpaths: doc dir=/Applications/Scribus.app/Contents/share/doc/scribus/"
"scpaths: icon dir=/Applications/Scribus.app/Contents/share/scribus/icons/"
"scpaths: font dir="
"scpaths: sample
dir=/Applications/Scribus.app/Contents/share/scribus/samples/"
"scpaths: script
dir=/Applications/Scribus.app/Contents/share/scribus/scripts/"
"scpaths: template
dir=/Applications/Scribus.app/Contents/share/scribus/templates/"
"scpaths: lib dir=/Applications/Scribus.app/Contents/lib/scribus/"
"scpaths: plugin
dir=/Applications/Scribus.app/Contents/lib/scribus/plugins/"
"scpaths: qtplugins=/Applications/Scribus.app/Contents/lib/qtplugins/"
Fontconfig error:
"/opt/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70:
non-double matrix element
Fontconfig error:
"/opt/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70:
non-double matrix element
Fontconfig warning:
"/opt/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw
unknown, expected number
Fontconfig warning: ignoring UTF-8: not a valid region tag
2013-11-12 15:52:22.214 Scribus[30518:707] -[NSApplication _setup:]:
unrecognized selector sent to instance 0x2e8faa0
2013-11-12 15:52:22.217 Scribus[30518:707] HIToolbox: ignoring exception
'NSInvalidArgumentException' that raised inside Carbon event dispatch
(
    0   CoreFoundation                      0x92114e8b __raiseError + 219
    1   libobjc.A.dylib                     0x979ad52e
objc_exception_throw + 230
    2   CoreFoundation                      0x92118afd
-[NSObject(NSObject) doesNotRecognizeSelector:] + 253
    3   CoreFoundation                      0x92060e87 ___forwarding___
+ 487
    4   CoreFoundation                      0x92060c32
_CF_forwarding_prep_0 + 50
    5   Tk                                  0x124f9b9b TkpInit + 568
    6   Tk                                  0x1246f740 Tk_Init + 1879
    7   _tkinter.so                         0x0c5c1ff1 Tcl_AppInit + 101
    8   _tkinter.so                         0x0c5bdcd5 init_tkinter + 2872
    9   Python                              0x024fdab8 PyCFunction_Call + 98
    10  Python                              0x0253ccd5
PyEval_EvalFrameEx + 7687
    11  Python                              0x0253ae5c PyEval_EvalCodeEx
+ 1709
    12  Python                              0x024ed2a9
PyFunction_SetClosure + 1002
    13  Python                              0x024bfc31 PyObject_Call + 46
    14  Python                              0x024c89d0 PyMethod_New + 1738
    15  Python                              0x024bfc31 PyObject_Call + 46
    16  Python                              0x0254060e
PyEval_CallObjectWithKeywords + 224
    17  Python                              0x024c684b PyInstance_New + 360
    18  Python                              0x024bfc31 PyObject_Call + 46
    19  Python                              0x0253cdd5
PyEval_EvalFrameEx + 7943
    20  Python                              0x02540dcd
_PyEval_SliceIndex + 869
    21  Python                              0x0253cd7c
PyEval_EvalFrameEx + 7854
    22  Python                              0x0253ae5c PyEval_EvalCodeEx
+ 1709
    23  Python                              0x0253a7aa PyEval_EvalCode + 87
    24  Python                              0x02558b5b
PyParser_ASTFromFile + 247
    25  Python                              0x02558c10 PyRun_FileExFlags
+ 152
    26  Python                              0x025372a4 _PyBuiltin_Init +
4866
    27  Python                              0x024fdab8 PyCFunction_Call + 98
    28  Python                              0x0253ccd5
PyEval_EvalFrameEx + 7687
    29  Python                              0x0253ae5c PyEval_EvalCodeEx
+ 1709
    30  Python                              0x0253a7aa PyEval_EvalCode + 87
    31  Python                              0x02558b5b
PyParser_ASTFromFile + 247
    32  Python                              0x02558d1d PyRun_StringFlags
+ 106
    33  libscriptplugin.so                  0x0d9d2ac7
_ZN12ScripterCore17slotRunScriptFileE7QStringb + 3229
    34  libscriptplugin.so                  0x0d9d3313
_ZN12ScripterCore9StdScriptE7QString + 327
    35  libscriptplugin.so                  0x0d9dfed1
_ZN12ScripterCore11qt_metacallEN11QMetaObject4CallEiPPv + 241
    36  QtCore                              0x02168f92
_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 594
    37  Scribus                             0x000322eb
_ZN9ScrAction13triggeredDataE7QString + 69
    38  Scribus                             0x00674d24
_ZN9ScrAction24triggeredToTriggeredDataEv + 478
    39  Scribus                             0x00032620
_ZN9ScrAction11qt_metacallEN11QMetaObject4CallEiPPv + 650
    40  QtCore                              0x02168f92
_ZN11QMetaObject8activateEP7QObjectPKS_iPPv + 594
    41  QtGui                               0x013525c4
_ZN7QAction9triggeredEb + 68
    42  QtGui                               0x01353c8f
_ZN7QAction8activateENS_11ActionEventE + 159
    43  QtGui                               0x01331b99
_Z22qt_mac_activate_actionP13OpaqueMenuRefjN7QAction11ActionEventEb + 153
    44  QtGui                               0x013321a9
_Z17qt_mac_menu_eventP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv + 617
    45  HIToolbox                           0x961879bb
_Z22_InvokeEventHandlerUPPP25OpaqueEventHandlerCallRefP14OpaqueEventRefPvPFlS0_S2_S3_E
+ 36
    46  HIToolbox                           0x9600f394
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec
+ 1343
    47  HIToolbox                           0x9600e780
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
+ 430
    48  HIToolbox                           0x96022655
SendEventToEventTarget + 88
    49  HIToolbox                           0x9618786a
_ZL18SendHICommandEventmPK9HICommandmmhPKvP20OpaqueEventTargetRefS5_PP14OpaqueEventRef
+ 498
    50  HIToolbox                           0x95ffe984
SendMenuCommandWithContextAndModifiers + 70
    51  HIToolbox                           0x95ffe931
SendMenuItemSelectedEvent + 268
    52  HIToolbox                           0x95ffe7b6
_ZL19FinishMenuSelectionP13SelectionDataP10MenuResultS2_ + 134
    53  HIToolbox                           0x961d3e7e
_ZL14MenuSelectCoreP8MenuData5PointdmPP13OpaqueMenuRefPt + 623
    54  HIToolbox                           0x961d4dc6 MenuSelect + 171
    55  QtGui                               0x012ef61a
_ZN19QApplicationPrivate20globalEventProcessorEP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv
+ 14042
    56  HIToolbox                           0x961879bb
_Z22_InvokeEventHandlerUPPP25OpaqueEventHandlerCallRefP14OpaqueEventRefPvPFlS0_S2_S3_E
+ 36
    57  HIToolbox                           0x9600f394
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec
+ 1343
    58  HIToolbox                           0x9600e780
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
+ 430
    59  HIToolbox                           0x96022655
SendEventToEventTarget + 88
    60  HIToolbox                           0x960425f6
_ZL29ToolboxEventDispatcherHandlerP25OpaqueEventHandlerCallRefP14OpaqueEventRefPv
+ 2188
    61  HIToolbox                           0x9600f83f
_ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCallRec
+ 2538
    62  HIToolbox                           0x9600e780
_ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRefP14HandlerCallRec
+ 430
    63  HIToolbox                           0x96022655
SendEventToEventTarget + 88
    64  QtGui                               0x01305854
_ZN19QEventDispatcherMac13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
+ 596
    65  QtCore                              0x022562a1
_ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE + 65
    66  QtCore                              0x022564dd
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 189
    67  QtCore                              0x0225880e
_ZN16QCoreApplication4execEv + 174
    68  Scribus                             0x00992ed5 _Z7mainAppiPPc + 113
    69  Scribus                             0x00992f30 main + 24
    70  Scribus                             0x00007f7b _start + 209
    71  Scribus                             0x00007ea9 start + 41
)


On 11/12/13 3:43 PM, Stan Sanderson wrote:
> OK, I uninstalled scribus, then port install scribes +python27
>
> After installing, script behavior is unchanged. Calendar and Font
scripts hang, Color chart script works as it previously did.
>
> Suggestions much appreciated!
>
>
> On Nov 12, 2013, at 3:04 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
>
>> So, you haven’t installed scribus with python support. Try adding one
of the python variants.
>>
>>
>>
>>
>> On Nov 11, 2013, at 19:22, Stan Sanderson <stansand at gmail.com> wrote:
>>
>>> ~ $ port installed scribus
>>> The following ports are currently installed:
>>>  scribus @1.4.3_0 (active)
>>>
>>> ~ $ port variants scribus
>>> scribus has the variants:
>>>   debug: Enable debug binaries
>>>   podofo: Use podofo
>>>   python26: Add python 2.6 interface
>>>     * conflicts with python27
>>>   python27: Add python 2.7 interface
>>>     * conflicts with python26
>>>   universal: Build for multiple architectures
>>>
>>>
>>> On Nov 11, 2013, at 3:55 PM, Eric Gallager <egall at gwmail.gwu.edu> wrote:
>>>
>>>> What variants do you have Scribus installed with? You can do `port
installed scribus` to find out. `port variants scribus` shows which
python variants it has available.
>>>>
>>>>
>>>>
>>>> On Mon, Nov 11, 2013 at 4:06 PM, Stan Sanderson
<stansand at gmail.com> wrote:
>>>>> I have installed Scribus and the application itself works as
expected. However, Scribus has built-in python scripting. Two scripts, a
calendar wizard and a script to provide font samples, simply hang if
invoked. Another script providing color samples and information, appears
to run as expected.
>>>>>
>>>>> As far as I know, the python pieces are in place, also installed
through MacPorts. I have tried the same version of Scribus on my iMac
using Win XP Pro (using Boot Camp), and the scripts work correctly.
>>>>>
>>>>> I know nothing about python scripting, such as setting breakpoints
or turning on logging.
>>>>>
>>>>> Question: has anyone been successful in running these Scribus scripts?
>>
>>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/macports-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSgkHLAAoJEC8yRjM4uE2tN34H/0g9xosJfWEfSpdeYvQzt7rY
89li545P9OvqDQ+iazo0OktKEZGpHXXWdMVZA0KJizj+5L2+Xfal0Btokcc5+KBU
tNjg22ybXNqBKUdQ8DIj2lZTauyvoBBUCqtq888M+2m9rsslTx1TtH/PSevfcKEk
NV1HsWlWuPW0WkEntEZmcpNsLN24A0uYrAvXEL1IvW3b4hv2LvJS9pmh0U0pDjHL
G8dKH95uQRDTJ2br6md6J6fM9BzN8Zdcw/Qviu7Cyq81p/Omt6mhn7K8kL7mGcCn
q5dwg5/x5JT1j1oElTCWW/HccMwPygsNZyxuq6lsAcJ7S02Jn6A9Li2ky8UtgdU=
=+bag
-----END PGP SIGNATURE-----



More information about the macports-users mailing list