Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the Tcl/Tk dependencies that are needed for script GUIs #199

Open
wants to merge 2 commits into
base: ctl
Choose a base branch
from

Conversation

probonopd
Copy link

@probonopd probonopd commented May 21, 2016

To prevent

Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "././/share/scribus/scripts/FontSample.py", line 1577, in <module>
    main_wrapper(sys.argv)
  File "././/share/scribus/scripts/FontSample.py", line 1562, in main_wrapper
    main(argv)
  File "././/share/scribus/scripts/FontSample.py", line 1551, in main
    initialisation()
  File "././/share/scribus/scripts/FontSample.py", line 1544, in initialisation
    app = setup_tk()
  File "././/share/scribus/scripts/FontSample.py", line 1512, in setup_tk
    root = Tk()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TclError: Can't find a usable init.tcl in the following directories: 
    /usr/share/tcltk/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.1/library /tcl8.6.1/library

/usr/share/tcltk/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.1, need exactly 8.6.5
version conflict for package "Tcl": have 8.6.1, need exactly 8.6.5
    while executing
"package require -exact Tcl 8.6.5"
    (file "/usr/share/tcltk/tcl8.6/init.tcl" line 19)
    invoked from within
"source /usr/share/tcltk/tcl8.6/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"

To prevent 

```Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "././/share/scribus/scripts/FontSample.py", line 1577, in <module>
    main_wrapper(sys.argv)
  File "././/share/scribus/scripts/FontSample.py", line 1562, in main_wrapper
    main(argv)
  File "././/share/scribus/scripts/FontSample.py", line 1551, in main
    initialisation()
  File "././/share/scribus/scripts/FontSample.py", line 1544, in initialisation
    app = setup_tk()
  File "././/share/scribus/scripts/FontSample.py", line 1512, in setup_tk
    root = Tk()
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1818, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
TclError: Can't find a usable init.tcl in the following directories: 
    /usr/share/tcltk/tcl8.6 /usr/lib/tcl8.6 /lib/tcl8.6 /usr/library /library /tcl8.6.1/library /tcl8.6.1/library

/usr/share/tcltk/tcl8.6/init.tcl: version conflict for package "Tcl": have 8.6.1, need exactly 8.6.5
version conflict for package "Tcl": have 8.6.1, need exactly 8.6.5
    while executing
"package require -exact Tcl 8.6.5"
    (file "/usr/share/tcltk/tcl8.6/init.tcl" line 19)
    invoked from within
"source /usr/share/tcltk/tcl8.6/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"
```
@@ -20,12 +20,17 @@ cd $HOME/$APP/
wget -q https://github.com/probonopd/AppImages/raw/master/functions.sh -O ./functions.sh
. ./functions.sh

URLS=$(apt-get install -qq --reinstall --print-uris python-tk | cut -d "'" -f 2)
wget $URLS

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you downloading the .deb file then extracting it below, why not just copy the already installed files?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently this didn't work. (It was working when I was still using sudo apt-get inside the script.) Now removing python-tk from .travis.yml, let's see if it works then

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not make much sense, why the place of the apt-get calls makes any difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants