sketch does not start

Bug #5347 reported by GerhardGaußling
32
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Medium
Unassigned
skencil (Ubuntu)
Fix Released
High
MOTU

Bug Description

Subject: sketch
Package: sketch
Version: 0.6.15-1ubuntu2
Severity: grave
Justification: renders package unusable

*** Please type your report below this line ***

$ sketch
Traceback (most recent call last):
  File "/usr/bin/sketch", line 34, in ?
    Sketch.main.main()
  File "/usr/lib/sketch-0.6.15/Sketch/Base/main.py", line 148, in main
    run_script = options.run_script)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 184, in __init__
    geometry = geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 103, in __init__
    self.init_tk(screen_name, geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 213, in init_tk
    geometry = geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 108, in init_tk
    className = self.tk_class_name)
  File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)TypeError: function takes at most 4 arguments (8 given)

This error also appears in i386 chroot.

Regards

Gerhard Gaußling

-- System Information:
Debian Release: testing/unstable
  APT prefers breezy-updates
  APT policy: (500, 'breezy-updates'), (500, 'breezy-security'), (500, 'breezy')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-10-amd64-generic
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages sketch depends on:
ii libc6 2.3.5-1ubuntu12 GNU C Library: Shared libraries an
ii libx11-6 1:6.2.1+cvs.20050722-8 X11 client-side library
ii libxext6 1:6.4.3-3 X11 miscellaneous extension librar
ii python-imaging 1.1.5-4 Python Imaging Library
ii python-tk 2.4.2-0ubuntu2 Tkinter - Writing Tk applications
ii python2.4 2.4.2-1 An interactive high-level object-o
ii tcl8.4 8.4.9-1 Tcl (the Tool Command Language) v8
ii tk8.4 8.4.9-1build1 Tk toolkit for Tcl and X11, v8.4 -

sketch recommends no packages.

-- debconf-show failed
                                                                                        31,1 Ende

Changed in reportbug:
assignee: nobody → ggrubbish
Changed in sketch:
assignee: ggrubbish → nobody
Changed in sketch:
assignee: nobody → motu
Revision history for this message
Sitsofe Wheeler (sitsofe) wrote : I can reproduce this too

I have reproduced this on Breezy. I have sketch installed due to it being a dependency of Inkscape.

The error looks like it's similar to https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1025599&group_id=5470 , which appears to be down to the wrong function being called (apparently skencil redefines it to have less paramaters and that is the version seen).

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote : Apologies for the double post

I had some sort of hang the first time round...

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

I don't know how to get sketch to work, but if you download skencil from skencil.org and apt-get python2.3-4suite
, it will work. sketch does not work with python 2.4.

I don't know how to manage 2.4/2.3 with update-alternatives, or if it just works when install python2.3-4suite. I did not test sketch of ubuntu. I installed skencil from skencil.org.

Maybe it suffice to solve the problem by apt-get python2.3-4suite. That would be a dependency bug in sketch.

regards

Gerhard

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote :

No, sketch from breezy does not run even if python 2.3 is installed or not:
$ sketch
Traceback (most recent call last):
  File "/usr/bin/sketch", line 34, in ?
    Sketch.main.main()
  File "/usr/lib/sketch-0.6.15/Sketch/Base/main.py", line 148, in main
    run_script = options.run_script)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 184, in __init__
    geometry = geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 103, in __init__
    self.init_tk(screen_name, geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 213, in init_tk
    geometry = geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 108, in init_tk
    className = self.tk_class_name)
  File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TypeError: function takes at most 4 arguments (8 given)
(i386_chroot)gerhard@ubuntu:~$ dpkg -l *py* |grep ^ii
ii python 2.4.1-0ubuntu2 An interactive high-level object-oriented la
ii python-4suite- 0.99cvs2004100 Common files used by 4Suite packages
ii python-imaging 1.1.4-3ubuntu2 Python Imaging Library
ii python-minimal 2.4.1-0ubuntu2 A minimal subset of the Python language (def
ii python-tk 2.4.1-0ubuntu2 Tkinter - Writing Tk applications with Pytho
ii python2.3 2.3.5-2 An interactive high-level object-oriented la
ii python2.3-4sui 0.99cvs2004100 An open-source platform for XML and RDF proc
ii python2.3-dev 2.3.5-2 Header files and a static library for Python
ii python2.3-xml 0.8.4-1ubuntu1 XML tools for Python (2.3.x)
ii python2.4 2.4.1-0 An interactive high-level object-oriented la
ii python2.4-imag 1.1.4-3ubuntu2 Python Imaging Library
ii python2.4-mini 2.4.1-0 A minimal subset of the Python language (ver
ii python2.4-tk 2.4.1-0 Tkinter - Writing Tk applications with Pytho
ii xdpyinfo 7.0-1 X display information

regards

Gerhard

FYI: skencil from skencil.org works.

Revision history for this message
GerhardGaußling (ggrubbish-web) wrote : Re: [Bug 5347] sketch does not start

Am Dienstag 06 Dezember 2005 09:56 schrieb Daniel Holbach:
> Public bug report changed:
> https://launchpad.net/malone/bugs/5347
>
> Task: ubuntu
> Status: New => Rejected
Just curious: Is this bug rejected, because it's an upstream issue?
Is there a way to get sketch/skencil to work in breezy?

Regards

Gerhard Gaußling

Revision history for this message
Fabien Ninoles (fabien+ubuntu) wrote :

Starting back with the debian sarge package, I upload a new version to my web site, versioned to use python2.3. It looks to work mostly, although I didn't test it carefully.

Source code and i386 binary package available at http://www.tzone.org/~fabien/oss/sketch/

Revision history for this message
Luis Mondesi (lemsx1) wrote :

same problem still on dapper:

$> sketch

Traceback (most recent call last):

  File "/usr/bin/sketch", line 34, in ?

    Sketch.main.main()

  File "/usr/lib/sketch-0.6.15/Sketch/Base/main.py", line 148, in main

    run_script = options.run_script)

  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 184, in __init__

    geometry = geometry)

  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 103, in __init__

    self.init_tk(screen_name, geometry)

  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 213, in init_tk

    geometry = geometry)

  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 108, in init_tk

    className = self.tk_class_name)

  File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__

    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)

TypeError: function takes at most 4 arguments (8 given)

Revision history for this message
Bernhard Reiter (bernhard-intevation) wrote : New upstream: Skencil (Re: sketch does not start) [solved]

Version 0.6.17 can run with Python 2.4.
Sketch was renamed to Skencil.

See http://www.skencil.org/

I tried to report this to ubuntu-users in April 2005,
but it seems my message was not accepted by the moderators
and never made it through.

There is a new debian package in testing and in backports.
It would be easy to build for ubuntu:

Get e.g. the following files (or newer) from Debian:
skencil_0.6.17-3.dsc
skencil_0.6.17-3.diff.gz
skencil_0.6.17.orig.tar.gz

dpkg-source -x skencil_0.6.17-3.dsc
cd in the directory and use
dpkg-buildpackage -us -uc -rfakeroot

Changed in sketch:
status: Unconfirmed → Confirmed
Revision history for this message
Glyphobet (glyphobet) wrote :

As of May 17, this bug still exists:

Sketch will not run. Looks like maybe the tkinter library interface
has changed.

$ sketch
Traceback (most recent call last):
  File "/usr/bin/sketch", line 34, in ?
    Sketch.main.main()
  File "/usr/lib/sketch-0.6.15/Sketch/Base/main.py", line 148, in main
    run_script = options.run_script)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 184, in __init__
    geometry = geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 103, in __init__
    self.init_tk(screen_name, geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 213, in init_tk
    geometry = geometry)
  File "/usr/lib/sketch-0.6.15/Sketch/UI/skapp.py", line 108, in init_tk
    className = self.tk_class_name)
  File "/usr/lib/python2.4/lib-tk/Tkinter.py", line 1569, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive,
+wantobjects, useTk, sync, use)
TypeError: function takes at most 4 arguments (8 given)

Revision history for this message
Rocco Stanzione (trappist) wrote :

Sketch runs fine for me in Edgy. Is this still an issue?

Changed in sketch:
status: Confirmed → Needs Info
Revision history for this message
Ubuntu User (anotherubuntuuser) wrote :

It looks like this is a problem with Tkinter.py. The self.tk instruction on line 1569 is sending 8 arguments (screenName, baseName, className, interactive, wantobjects, useTk, sync, and use) when tk expects only 4 arguments max.

Not sure what the fix is, but I bet this isn't a sketch issue alone.

I installed the python2.3-tk and checked the Tkinter.py file. the self.tk instruction is different:

python2.4-tk:
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)

python2.3-tk:
self.tk = _tkinter.create(screenName, baseName, className)

I wonder if there is some sort of mismatch in the backend. It looks like 2.4 added features, but perhaps the backend .so module doesn't match up. Just a guess.

Jim Jones

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Sketch starts just fine on Edgy for me. Can this bug be closed?

Áron Sisak (asisak)
Changed in sketch:
status: Needs Info → Fix Released
Revision history for this message
Sascha Silbe (sascha-ubuntu-launchpad) wrote :

As reported in a dupe to this one (bug #81388), this is still an issue on dapper (Long Time Support version).

Changed in skencil:
status: Fix Released → Unconfirmed
Revision history for this message
Ubuntu User (anotherubuntuuser) wrote : Re: [Bug 5347] Re: sketch does not start

So is this going to be fixed in Dapper which is Long Term Support after all?

On 1/25/07, Vassilis Pandis <email address hidden> wrote:
>
> ** Changed in: skencil (Ubuntu)
> Status: Fix Released => Unconfirmed
>
> --
> sketch does not start
> https://launchpad.net/bugs/5347
>

Revision history for this message
Ubuntu User (anotherubuntuuser) wrote :

As this still affects Dapper, I don't think this bug should be rejected or closed. Dapper is under the Long Term Support auspices after all.

What's the solution to this one guys?

I just updated my Dapper install and sketch still does not work.

Revision history for this message
Vassilis Pandis (pandisv) wrote :

Jim, I reopened the bug. Please be patient - the open bugs currently are about 21K, and as you might imagine, the developers are much less.

Revision history for this message
Ubuntu User (anotherubuntuuser) wrote :

I understand. I just wanted to voice concern that it was being closed. If
it is opened and unfixed, at least it is on the list to be fixed.

Thanks

Jim

Revision history for this message
William Grant (wgrant) wrote :

Fixed in Feisty. Please don't reopen this task.

Changed in skencil:
status: Unconfirmed → Fix Released
Revision history for this message
Ubuntu User (anotherubuntuuser) wrote :

It doesn't matter if it is fixed in Feisty. It doesn't work in Dapper aka
Long Term Support and it hasn't worked in Dapper since its release. The fix
needs to be backported to Dapper as it is under 3 years of support updates
on the desktop.

On 3/17/07, William Grant <email address hidden> wrote:
>
> Fixed in Feisty. Please don't reopen this task.
>
> ** Changed in: skencil (Ubuntu)
> Status: Unconfirmed => Fix Released
>
> --
> sketch does not start
> https://launchpad.net/bugs/5347
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.