Upgraded to 2.9...LCNC fails on startup - no module named tkinter
01 May 2020 17:19 #166345
by Henk
Hi
After upgrading from 2.7.15 to master using buildbot i get an error when launching a previous config. I am aware that there are .ini and .hal changes but expected the auto updating script to take care of that.
Instead, it fails with the error below
I launched a sim with no problems.
Any advice would be appreciated.
Henk
After upgrading from 2.7.15 to master using buildbot i get an error when launching a previous config. I am aware that there are .ini and .hal changes but expected the auto updating script to take care of that.
Instead, it fails with the error below
I launched a sim with no problems.
Any advice would be appreciated.
Henk
Error report created by /usr/lib/tcltk/linuxcnc/show_errors.tcl:
Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.0-pre0-1865-g5397271f1
Machine configuration directory is '/home/linuxcnc/linuxcnc/configs/sodick'
Machine configuration file is 'sodick320.ini'
INIFILE=/home/linuxcnc/linuxcnc/configs/sodick/sodick320.ini
VERSION=
update script failed in an unexpected way.
Debug file information:
Can not find -sec EMC -var VERSION -num 1
Traceback (most recent call last):
File "/usr/bin/update_ini", line 11, in <module>
from tkinter import *
ImportError: No module named tkinter
-----------------------------------------------------------------------
Info report created by linuxcnc_info:
The file: /tmp/linuxcnc_info.txt
can be posted to a forum or a web site like:
http://pastebin.com
in order to provide information about the linuxcnc
system and configuration.
Date: Fri May 1 19:14:54 SAST 2020
UTC Date: Fri May 1 17:14:54 UTC 2020
this program: /usr/bin/linuxcnc_info
uptime: 19:14:54 up 7:36, 1 user, load average: 0.09, 0.21, 0.18
lsb_release -sa: Debian Debian GNU/Linux 9.12 (stretch) 9.12 stretch
which linuxcnc: /usr/bin/linuxcnc
pwd: /home/linuxcnc
USER: linuxcnc
LOGNAME: linuxcnc
HOME: /home/linuxcnc
EDITOR:
VISUAL:
LANGUAGE: en_ZA:en
TERM: dumb
COLORTERM:
DISPLAY: :0.0
DESKTOP: lightdm-xsession
display size: 1366x768 pixels (361x203 millimeters)
PATH: /usr/bin:/home/linuxcnc/linuxcnc/configs/sodick/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
uname items:
nodename -n: debian
kernel-name -s: Linux
kernel-vers -v: #1 SMP PREEMPT RT Debian 4.9.110-3+deb9u5 (2018-09-30)
machine -m: i686
processor -p: unknown
platform -i: unknown
oper system -o: GNU/Linux
/proc items:
cmdline: BOOT_IMAGE=/boot/vmlinuz-4.9.0-8-rt-686-pae root=/dev/sda1 ro quiet
model name: Intel(R) Core(TM)2 Duo CPU E6400 @ 2.13GHz
cores: 2
cpu MHz: 2133.000
parport: 0000-0000 : parport0 0000-0000 : parport0
serial: 0000-0000 : serial 0000-0000 : serial 0000-0000 : serial 0000-0000 : serial
Versions:
gcc: gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
python: Python 2.7.13
git: not_in_PATH
git commit: NA
tcl: 8.6
tk: 8.6
glade: not_in_PATH
glade-gtk2: not_in_PATH
linuxcnc_var all:
LINUXCNCVERSION: 2.9.0-pre0-1865-g5397271f1
LINUXCNC_AUX_GLADEVCP: /usr/share/linuxcnc/aux_gladevcp
LINUXCNC_AUX_EXAMPLES: /usr/share/linuxcnc/aux_examples
REALTIME: /etc/init.d/realtime
RTS: uspace
HALLIB_DIR: /usr/share/linuxcnc/hallib
dpkg -l '*linuxcnc*':
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-============================-============-=====================================================================
un linuxcnc <none> <none> (no description available)
un linuxcnc-doc <none> <none> (no description available)
ii linuxcnc-doc-en 1:2.9.0~pre0.1865.g5397271f1 all motion controller for CNC machines and robots (English documentation)
un linuxcnc-sim <none> <none> (no description available)
ii linuxcnc-uspace 1:2.9.0~pre0.1865.g5397271f1 i386 motion controller for CNC machines and robots
Please Log in or Create an account to join the conversation.
02 May 2020 08:22 #166391
by bbsr_5a
Replied by bbsr_5a on topic Upgraded to 2.9...LCNC fails on startup - no module named tkinter
sudo apt-get install python3-tk
Please Log in or Create an account to join the conversation.
02 May 2020 16:13 #166415
by Henk
Replied by Henk on topic Upgraded to 2.9...LCNC fails on startup - no module named tkinter
Hi. Done that and I get the same error.
Also ran apt-get update afterwards.
Is there a guide that explains what to change so I can edit the configs manually ?
Also ran apt-get update afterwards.
Is there a guide that explains what to change so I can edit the configs manually ?
Please Log in or Create an account to join the conversation.
04 May 2020 16:53 #166638
by Henk
Replied by Henk on topic Upgraded to 2.9...LCNC fails on startup - no module named tkinter
I managed to get this working by editing the config files . It was only the Joint/Axis changes that was required.
Henk
Henk
Please Log in or Create an account to join the conversation.
17 May 2020 08:07 #168032
by Korbi
Replied by Korbi on topic Upgraded to 2.9...LCNC fails on startup - no module named tkinter
Iam faced with the same problem.
could you please explain witch changes you do?
could you please explain witch changes you do?
Please Log in or Create an account to join the conversation.
17 May 2020 13:36 #168061
by Henk
Replied by Henk on topic Upgraded to 2.9...LCNC fails on startup - no module named tkinter
Hi
Basically it is just the joints/Axis changes in the .in and .hal files as well as the spindle changes.
What I did is generate a new pncconf for a basic machine and compared the axis and spindle sections to my old files and edited them to be the same as the new examples. Most of the changes can be done fairly quickly with find/replace.
Make sure you don't overwrite your config files when you run pncconf by giving it a new name. Also make backups of your old config just in case.
Henk
Basically it is just the joints/Axis changes in the .in and .hal files as well as the spindle changes.
What I did is generate a new pncconf for a basic machine and compared the axis and spindle sections to my old files and edited them to be the same as the new examples. Most of the changes can be done fairly quickly with find/replace.
Make sure you don't overwrite your config files when you run pncconf by giving it a new name. Also make backups of your old config just in case.
Henk
Please Log in or Create an account to join the conversation.
- Aldenflorio
- Offline
- Platinum Member
Less
More
- Posts: 389
- Thank you received: 15
08 Jun 2020 19:18 - 08 Jun 2020 19:36 #170671
by Aldenflorio
Replied by Aldenflorio on topic Upgraded to 2.9...LCNC fails on startup - no module named tkinter
Hello, I also have this problem. I read your explanation on how to fix it. I’m not really knowledgeable in this subject. How exactly to I do that without messing stuff up?
Last edit: 08 Jun 2020 19:36 by Aldenflorio.
Please Log in or Create an account to join the conversation.
Time to create page: 0.169 seconds