View Issue Details

IDProjectCategoryView StatusLast Update
0015026ScribusScripterpublic2017-10-26 20:23
ReporterRapido Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Platformx86, x64OSUbuntuOS Version16.04.03 LTS
Product Version1.4.6 
Target VersionFixed in Version 
Summary0015026: Update CalendarWizard script
DescriptionThere is a new script similar of CalendarWizard.
This is an advanced script and it allows all user to make their own model easily.

Link to sources : https://github.com/Rapiiidooo/Calendar-Wizard
TagsNo tags attached.
PatchNo

Activities

Rapido

2017-10-24 08:42

reporter  

CalendarWizard2.tgz (228,225 bytes)

gpittman

2017-10-24 13:04

developer   ~0044573

I'll check this out. We could certainly use an updated CalendarWizard. If it seems to be worthwhile, I'll probably add it to svn as a second version and see what feedback we get.

utnik

2017-10-24 18:04

updater   ~0044574

as this script uses tkinter, i think it won't work on macOS. (see https://bugs.scribus.net/view.php?id=12627#c34189)

gpittman

2017-10-24 18:33

developer   ~0044575

This seems to suffer from what Martin Zaske was just experiencing with his own script, that there is a big problem when you are trying to load files from a script. When I try to run it, it fails since it can't find croix.png, and since it uses all these SLA file "models", it's probably going to have trouble finding them as well. It's therefore even more complicated than the original CalendarWizard.
You might get a wiki account and make a wiki page about your script, so you can explain how it works and how to use it.

Rapido

2017-10-25 09:50

reporter   ~0044578

utnlk : Aïe aïe ... I didn't know this issue ... Is it on every macOS version ?
I'll have a check if I could change dependancies of tkinter to Qt ...

gpittman : In the git hub source page, there is a README with an explanation of this script, how it works, uses, and create model. (There is also a Doxyfile for scripter dev)
Which OS are you ? Because I never had this fails ... Did Martin Zaske found how to get around the problem or still working on it ?

And about the wiki, I tried to get an account but I'm still waiting for the response of wiki_account@scribus.info.
Anyway, yes I know I have to explain it on wiki and I will :-)

gpittman

2017-10-26 13:45

developer   ~0044594

I'm using Fedora 26.
I download the tgz file, gunzip it, extract it, then run the script:

Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 2170, in <module>
    main()
  File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 2161, in main
    TkCalendar(root).pack(side="top", fill="both", expand=True)
  File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 2149, in __init__
    self.make_frames()
  File "/home/gregp/Downloads/CalendarWizard2/CalendarWizard2.py", line 1956, in make_frames
    self.photo_frame3 = PhotoImage(file="./img/croix.png")
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 3372, in __init__
    Image.__init__(self, 'photo', name, cnf, master, **kw)
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 3326, in __init__
    self.tk.call(('image', 'create', imgtype, name,) + options)
TclError: couldn't open "./img/croix.png": no such file or directory

You've taken a 678-line original CalendarWizard.py and turned it into a 2170-line script, much more complicated. If anything, we'd like to get away from tkinter. As I look at the script, I don't know why it needs this croix.png file anyway, since it seems to only be used when there is no image in a frame, and Scribus already creates an X in an empty frame. Especially considering all these auxiliary files, I think it's better to use in ones own personal directory and not in the Scribus scripts directory, which many users will have a hard time finding if/when they want to create their own models.

Rapido

2017-10-26 19:12

reporter   ~0044598

Actually, I was wondering myself if this image was really usefull ... (And this is just to make it "beautiful")
It is absolutly not necessary. Then I removed it from the script and the source.

Can you please just try this new source and send me the traceback if you are getting an error ?

Rapido

2017-10-26 19:14

reporter   ~0044599

Sorry about double note.

Calendar-Wizard.tgz (277,689 bytes)

gpittman

2017-10-26 19:44

developer   ~0044600

Now I can get it to begin, but there is some issue with adding models. I get the open file dialog, click a choice, and it says, "No such file ./models/whatever.sla" even though they seem to be there and I can open them in a text editor...

I wonder why you're using a tk file dialog and not an in-built Scripter one...
Are you trying to open the file at that point or just select the name for opening later?

Rapido

2017-10-26 20:23

reporter   ~0044601

I am openning them at this point just to get in the KEYWORD of each .sla => there is the "type" of calendar specified. The script can then sort them in the right category of listbox...

It's really annoying if you can not open the model ... because the main script idea is based to parse the model

Issue History

Date Modified Username Field Change
2017-10-24 08:42 Rapido New Issue
2017-10-24 08:42 Rapido File Added: CalendarWizard2.tgz
2017-10-24 13:04 gpittman Note Added: 0044573
2017-10-24 18:04 utnik Note Added: 0044574
2017-10-24 18:33 gpittman Note Added: 0044575
2017-10-25 09:50 Rapido Note Added: 0044578
2017-10-26 13:45 gpittman Note Added: 0044594
2017-10-26 19:12 Rapido File Added: Calendar-Wizard.tgz
2017-10-26 19:12 Rapido Note Added: 0044598
2017-10-26 19:12 Rapido File Deleted: Calendar-Wizard.tgz
2017-10-26 19:14 Rapido File Added: Calendar-Wizard.tgz
2017-10-26 19:14 Rapido Note Added: 0044599
2017-10-26 19:44 gpittman Note Added: 0044600
2017-10-26 20:23 Rapido Note Added: 0044601