View Issue Details

IDProjectCategoryView StatusLast Update
0013039ScribusGeneralpublic2015-10-19 06:44
Reportereilygre Assigned Topsmedley  
PriorityhighSeverityblockReproducibilityalways
Status closedResolutionfixed 
Platformos2OSecSOS Version2.2 B
Product Version1.4.5 
Fixed in Version1.4.6.svn 
Summary0013039: Error at startup prevents using script
DescriptionWhen starting Scribus 1.4.4 the following error messages are displayed:

Traceback (most recent call last):
  File "<string>", line 6, in <module>
ImportError: No module named cStringIO

This (at least) prevent me from using scripts. I can continue using Scribus 1.4.4, but not scripts.
Steps To ReproduceStart Scribus again
Additional InformationThe messages came after installing Python 27
TagsNo tags attached.
PatchNo

Relationships

related to 0009330 closedcbradney Active Startup Script not visible in Preferences and fails silently in GUI & CLI 
related to 0013376 closedcbradney Python error cleared too early 

Activities

Kunda

2015-04-30 21:17

updater   ~0035001

Hey eilygre, can you reproduce on any other OS ?
DId you set a script to be loaded on Startup ?

Kunda

2015-05-04 21:47

updater   ~0035019

Pinging OP

eilygre

2015-05-06 08:58

reporter   ~0035050

1. I have not had time to try yet. I just installed win8 instead of Vista and in Vista everything seems to be OK.

2. No.

eilygre

2015-06-01 14:44

reporter   ~0035302

Scripting works in Win8.
By seeking for cScriptIO I find cScriptIO.h
There are no cScriptIO.py or *.pyc or *.pyo

I don't set any script to be loaded on Startup, just starts Scribus. My intention was to use CalendarWizard. If I try to I get the message:

Error retrieving error message content after script exeption!
Exception was:
KeyError: '_errorMSG'

Kunda

2015-08-09 12:57

updater   ~0035978

added to 1.4.6 so it doesn't get lost. Not sure devs want to fix due to the release of 1.5.

jurajF

2015-09-27 14:36

reporter   ~0036417

From reported error:

Traceback (most recent call last):
  File "<string>", line 6, in <module>
ImportError: No module named cStringIO

I deduce that cStringIO module is not present in used python.

As this module has been removed in python3 (see
file:///usr/share/doc/python3.4-doc/html/whatsnew/3.0.html) and error
is confirmed only for one OS I strongly suspect that scribus executable
is linked to python3 instead of python2.

On unix this can be verified with command:

ldd /usr/bin/scribus | grep python

I do not know how to check what libraries are linked to executable on ecS.

Kunda

2015-09-28 18:24

updater   ~0036427

eilygre, can you test the patch on ecS and also possibly address Juraj above ? Thanks!

Kunda

2015-09-30 15:36

updater   ~0036455

OP, please respond

eilygre

2015-10-02 08:45

reporter   ~0036467

Last edited: 2015-10-02 22:55

I have tried to find out what you sent me and got help from my son who is a Linux expert.
I could not find the link file:///usr/share.... that jurajF mentions in his respond. That is because that is a file in HIS computer, not mine. And I do not have Pyton3.4, only Python2.7.
The patch 0001-Python-error-cleared-too-early.patch from issue 0013376 is to be used by someone that compiles Scribus. I don't and I can't. Paul Smedley is the person that handles most of the unix ports to eCS.
Glad the issue is solved and and I am eager to get it working here as well.

psmedley

2015-10-07 09:17

developer   ~0036531

http://smedley.id.au/tmp/scribus-1.4.5-os2-20151007.zip contains the patch linked to above and for me at least, doesn't give any python errors.

Kunda

2015-10-07 19:45

updater   ~0036534

Thanks psmedley!!
Elygre, please test and give feedback ASAP since the 1.4.6 release is upon us.

eilygre

2015-10-09 11:37

reporter   ~0036572

Sorry, no change.
Same message for the last psmedley version (1.4.5) as for (1.4.4).
There is a pop-up window saying Script error (Skriptfeil) and an "OK" button, but the window is so small that it is impossible to see any explanation if there is any. Running Scribus from a Command prompt while directing the output to a text file gives the same error messages as in the description above.

Running python.exe gives this output. Does it say anything?
>>> help()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "f:\Program_Files\python\python27\Lib/site.py", line 454, in __call__
    import pydoc
  File "f:/Program_Files/python/python27/Lib/pydoc.py", line 55, in <module>
    import sys, imp, os, re, types, inspect, __builtin__, pkgutil, warnings
  File "f:/Program_Files/python/python27/Lib/inspect.py", line 41, in <module>
    from operator import attrgetter
ImportError: No module named operator
>>>

jurajF

2015-10-09 12:21

reporter   ~0036573

> Running python.exe gives this output. Does it say anything?

With note in description that issue started after installing python2.7
and the fact that sole python (without scribus) does not run properly I
would guess that your python is not installed properly. Try uninstall it
(an any older version of python if there where any) and reinstall
python. Only if your python is running properly from command line than
we can sort any issue with scribus (if there is any). But since psmedley
report it working OK I would strongly recommend to check your python
installation.

eilygre

2015-10-10 22:10

reporter   ~0036603

Thank you. After uninstalling and reinstalling Python the error messages are gone.
Sorry for the trouble I made.

Kunda

2015-10-10 22:33

updater   ~0036604

eilygre, no probs. Appreciate the participation. Thanks Juraj and Psmedly as well for stepping up.
*high five*

Issue History

Date Modified Username Field Change
2015-04-28 12:30 eilygre New Issue
2015-04-28 23:17 Kunda Relationship added related to 0009330
2015-04-30 21:17 Kunda Note Added: 0035001
2015-05-04 21:47 Kunda Note Added: 0035019
2015-05-06 08:58 eilygre Note Added: 0035050
2015-06-01 14:44 eilygre Note Added: 0035302
2015-08-09 12:57 Kunda Note Added: 0035978
2015-08-09 12:57 Kunda Target Version => 1.4.6
2015-09-27 14:36 jurajF Note Added: 0036417
2015-09-28 18:20 Kunda Relationship added related to 0013376
2015-09-28 18:24 Kunda Note Added: 0036427
2015-09-30 15:36 Kunda Note Added: 0036455
2015-10-02 08:45 eilygre Note Added: 0036467
2015-10-02 22:55 Kunda Note Edited: 0036467
2015-10-07 09:17 psmedley Note Added: 0036531
2015-10-07 19:45 Kunda Note Added: 0036534
2015-10-09 11:37 eilygre Note Added: 0036572
2015-10-09 12:21 jurajF Note Added: 0036573
2015-10-10 22:10 eilygre Note Added: 0036603
2015-10-10 22:33 Kunda Note Added: 0036604
2015-10-10 22:33 Kunda Status new => closed
2015-10-10 22:33 Kunda Assigned To => psmedley
2015-10-10 22:33 Kunda Resolution open => fixed
2015-10-10 22:33 Kunda Fixed in Version => 1.4.6
2015-10-19 06:40 Kunda Target Version 1.4.6 => 1.4.6.svn
2015-10-19 06:44 Kunda Fixed in Version 1.4.6 => 1.4.6.svn
2015-10-19 06:44 Kunda Target Version 1.4.6.svn =>