panelui error

More
05 Jul 2020 20:22 #173688 by roland
panelui error was created by roland
Hi,

I would like to use panelui. linuxcnc.org/docs/devel/html/gui/panelui.html
But already the start of the demo fails.

What am I doing wrong?

Linuxcnc 2.9, Debian 9

Roland


File Attachment:

File Name: linuxcnc.report.txt
File Size:6 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
05 Jul 2020 20:49 #173689 by cmorley
Replied by cmorley on topic panelui error
The sim works from a RIP development environment.
I'll test an installed version soon.

Chris

Please Log in or Create an account to join the conversation.

More
06 Jul 2020 05:07 #173708 by cmorley
Replied by cmorley on topic panelui error
I tried on debian and it worked for me...
Can you tell me more about your system and how did you get linuxcnc on it?

Please Log in or Create an account to join the conversation.

More
06 Jul 2020 08:11 #173726 by tommylight
Replied by tommylight on topic panelui error
From the error report:
ImportError: No module named pyui
Twice.
It should be in :
cnc@shop:~$ whereis pyui
pyui: /usr/bin/pyui
It is not a stand alone package, so i do not know what to install to get it.

Please Log in or Create an account to join the conversation.

More
06 Jul 2020 08:19 - 06 Jul 2020 08:20 #173730 by roland
Replied by roland on topic panelui error
i have installed debian stretch using this iso:
cdimage.debian.org/cdimage/archive/9.12.....0-amd64-netinst.iso

I installed LinuxCNC following these instructions:
buildbot.linuxcnc.org/

These are the sources:
deb buildbot.linuxcnc.org/ stretch master-rtpreempt
deb-src buildbot.linuxcnc.org/ stretch master-rtpreempt

sudo apt-get install linuxcnc-uspace
sudo apt-get install linuxcnc-uspace-dev

Everything ist up-to-date


I tested it on two machines:
One is a virtual machine (VirtualBox). See linuxcnc.error in first post.
The other on is my real machine. Same result. See linuxcnc.error attached this post.

File Attachment:

File Name: linuxcnc.r...7-06.txt
File Size:6 KB
Attachments:
Last edit: 06 Jul 2020 08:20 by roland.

Please Log in or Create an account to join the conversation.

More
06 Jul 2020 09:01 #173737 by tommylight
Replied by tommylight on topic panelui error
That is a Python issue, not a LinuxCNC issue.
That should be packaged with something Python related
Some info here, a bit outdated, but might give a clue
ubuntuforums.org/showthread.php?t=29969&...7e806f0a4ab1d5cb9ba4

Please Log in or Create an account to join the conversation.

More
06 Jul 2020 13:21 - 06 Jul 2020 13:25 #173757 by roland
Replied by roland on topic panelui error
i tried LinuxCNC 2.8 in a virtual machine: sim starts without error.

I compared the files:
/usr/lib/python2.7/dist-packages/pyui/__init__.py and /usr/lib/python2.7/dist-packages/pyui/master.py between 2.8 and 2.9
and found some differences.

__init__.py 2.8:
from pyui import master
__init__.py 2.9:
from .pyui import master


master.py 2.8:
from pyui import widgets as WIDGETS
from pyui import commands

master.py 2.9:
from .pyui import widgets as WIDGETS
from .pyui import commands


i changed the entries .pyui to pyui and now i can start the sim in 2.9
Last edit: 06 Jul 2020 13:25 by roland.

Please Log in or Create an account to join the conversation.

More
07 Jul 2020 01:38 #173801 by cmorley
Replied by cmorley on topic panelui error
ok that's weird ! I'm glad you found a work around.

Please Log in or Create an account to join the conversation.

More
09 Jul 2020 18:37 #174117 by roland
Replied by roland on topic panelui error
Unfortunately this work around only works until the next apt-get upgrade
I hope this will be fixed in the master sometime

Please Log in or Create an account to join the conversation.

More
09 Jul 2020 23:48 #174160 by cmorley
Replied by cmorley on topic panelui error
I see the change to .pyui was made durin the python3 transition.
I'm not sure why it was done. I'll inquire.

Chris
The following user(s) said Thank You: roland

Please Log in or Create an account to join the conversation.

Time to create page: 0.393 seconds
Powered by Kunena Forum