×
Forum Header
simulation mode
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
01 Apr 2022 23:42 #239036
by andypugh
Replied by andypugh on topic simulation mode
As you spotted, the problem now seems to be a segmentation fault. Which seems unexpected.
Do you get a segfault with the Axis interface too?
Do you get a segfault with the Axis interface too?
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
02 Apr 2022 02:03 #239039
by phillc54
Replied by phillc54 on topic simulation mode
The segfault is possibly caused by python3-espeak during shut down, it is probably not the cause of your issue.
AFAIK there has been no success in getting the QTvcp based GUIs working on a Pi with python3 due to the way the python3-opengl module is built. It is posible this may have been fixed recently but not that I am aware of.
AFAIK there has been no success in getting the QTvcp based GUIs working on a Pi with python3 due to the way the python3-opengl module is built. It is posible this may have been fixed recently but not that I am aware of.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
02 Apr 2022 02:31 - 02 Apr 2022 02:42 #239041
by ajsinfotech
yes
Replied by ajsinfotech on topic simulation mode
Do you get a segfault with the Axis interface too?
yes
Last edit: 02 Apr 2022 02:42 by ajsinfotech.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
02 Apr 2022 02:34 #239042
by ajsinfotech
Replied by ajsinfotech on topic simulation mode
Hi phillc54, thanks for getting involved!
Do you mean if I point python interpreter to version 2 it could work ok?
Do you mean if I point python interpreter to version 2 it could work ok?
Please Log in or Create an account to join the conversation.
- phillc54
- Offline
- Platinum Member
Less
More
- Posts: 5698
- Thank you received: 2081
02 Apr 2022 03:00 #239045
by phillc54
Replied by phillc54 on topic simulation mode
LinuxCNC 2.9 is python3 only, for python2 you need to use LinuxCNC 2.8 but I believe the same issue also affects python-opengl which is the python2 version.
Seeing as how you get a segfault when using Axis there must be something else in play as well.
Seeing as how you get a segfault when using Axis there must be something else in play as well.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
06 Apr 2022 17:16 - 06 Apr 2022 17:31 #239456
by ajsinfotech
Replied by ajsinfotech on topic simulation mode
Hi dear,
Finally I tried to do a brand new installation version 2.9 on a RPi4.
Now when I throw this command:
I get this:
The python3-gi module seems to be already installed. Anyway, I removed and intalled it again but always the same.
I was googling about python3-gi but there is not much info about it.
Does LinuxCNC work on a RPi4?
Is there any recommended snapshot to download for RPi4?
Thanks!
Finally I tried to do a brand new installation version 2.9 on a RPi4.
Now when I throw this command:
./configure --with-realtime=uspace
I get this:
.
.
.
checking for python pango module... Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gi'
no
configure: error: Python pango module not found!
install with "sudo apt-get install python3-gi"
The python3-gi module seems to be already installed. Anyway, I removed and intalled it again but always the same.
I was googling about python3-gi but there is not much info about it.
Does LinuxCNC work on a RPi4?
Is there any recommended snapshot to download for RPi4?
Thanks!
Last edit: 06 Apr 2022 17:31 by ajsinfotech.
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
06 Apr 2022 18:41 - 06 Apr 2022 18:44 #239460
by ajsinfotech
Replied by ajsinfotech on topic simulation mode
Hi dear,
I also tried to do a brand new installation version 2.8 on a RPi4 (pointing to python2).
But when I compile, it throws the following error:
Again, the module yapps 2.2.1 seems to be installed. I tried to reinstall it but no luck.
Thanks!
I also tried to do a brand new installation version 2.8 on a RPi4 (pointing to python2).
But when I compile, it throws the following error:
.
.
.
Compiling hal/user_comps/shuttle.c
Compiling hal/user_comps/xhc-hb04.cc
Compiling hal/user_comps/sendkeys.c
Compiling hal/user_comps/vfs11_vfd/vfs11_vfd.c
Traceback (most recent call last):
File "/usr/bin/yapps2", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module>
def _initialize_master_working_set():
File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
f(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master
ws.require(__requires__)
File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/lib/python3.10/site-packages/pkg_resources/__init__.py", line 772, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'Yapps2==2.2.1' distribution was not found and is required by the application
make: *** [hal/utils/Submakefile:102: objects/hal/utils/halcompile.py] Error 1
make: *** Waiting for unfinished jobs....
Again, the module yapps 2.2.1 seems to be installed. I tried to reinstall it but no luck.
Thanks!
Last edit: 06 Apr 2022 18:44 by ajsinfotech.
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10737
- Thank you received: 3541
07 Apr 2022 08:10 #239517
by rodw
Replied by rodw on topic simulation mode
If you go back to the linuxcnc docs and look at the Developer /Building linuxcnc, there is a heading about checking build dependencies. Follow that.
Copy the dependencies from the terminal into a text editor and edit to remove stuff in brackets or include the | symbol which says remove one or the other package.
then in a terminal window type "sudo apt install " then past the text back into the command..
I have installed Debian Bullseye on a Pi4B and compiled from source..
Copy the dependencies from the terminal into a text editor and edit to remove stuff in brackets or include the | symbol which says remove one or the other package.
then in a terminal window type "sudo apt install " then past the text back into the command..
I have installed Debian Bullseye on a Pi4B and compiled from source..
Please Log in or Create an account to join the conversation.
- ajsinfotech
- Offline
- Senior Member
Less
More
- Posts: 76
- Thank you received: 1
09 Apr 2022 18:54 #239768
by ajsinfotech
Replied by ajsinfotech on topic simulation mode
Hi rodw, thanks for join us!
I always play around this 2 installing methods:
1 - Building LinuxCNC
linuxcnc.org/docs/stable/html/code/building-linuxcnc.html
2 - Building LinuxCNC Uspace
gnipsel.com/linuxcnc/uspace/index.html
Now I found this trying to run QtDragon in sim mode:
The problem is IMHO, some kind of internal or advance configuration seems not to work:
/home/pi/linuxcnc/scripts/linuxcnc: line 963: 1875 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
So, digging deep in my /home/pi/linuxcnc/scripts/linuxcnc around line 963 I have the following:
So, what is $EMCDISPLAY? Its value seems to be wrong.
What value does it need and where do I have to set it up?
Any idea is welcome!
Thanks!
I always play around this 2 installing methods:
1 - Building LinuxCNC
linuxcnc.org/docs/stable/html/code/building-linuxcnc.html
2 - Building LinuxCNC Uspace
gnipsel.com/linuxcnc/uspace/index.html
Now I found this trying to run QtDragon in sim mode:
...
/home/pi/linuxcnc/scripts/linuxcnc: line 963: 1875 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
...
The problem is IMHO, some kind of internal or advance configuration seems not to work:
/home/pi/linuxcnc/scripts/linuxcnc: line 963: 1875 Segmentation fault $EMCDISPLAY -ini "$INIFILE" $EMCDISPLAYARGS $EXTRA_ARGS
So, digging deep in my /home/pi/linuxcnc/scripts/linuxcnc around line 963 I have the following:
...
# 4.3.11. Run display in foreground
echo "Starting DISPLAY program: $EMCDISPLAY" >>$PRINT_FILE
result=0
case $EMCDISPLAY in <== *** THIS IS LINE 963 ON LINUXCNC SCRIPT ***
tklinuxcnc)
# tklinuxcnc is in the tcl directory, not the bin directory
if [ ! -x $LINUXCNC_TCL_DIR/$EMCDISPLAY.tcl ] ; then
echo "Can't execute DISPLAY program $LINUXCNC_TCL_DIR/$EMCDISPLAY.tcl $EMCDISPLAYARGS"
Cleanup
exit 1
fi
$LINUXCNC_TCL_DIR/$EMCDISPLAY.tcl -ini "$INIFILE" $EMCDISPLAYARGS
result=$?
;;
...
So, what is $EMCDISPLAY? Its value seems to be wrong.
What value does it need and where do I have to set it up?
Any idea is welcome!
Thanks!
Please Log in or Create an account to join the conversation.
- rodw
- Away
- Platinum Member
Less
More
- Posts: 10737
- Thank you received: 3541
09 Apr 2022 20:17 #239770
by rodw
Replied by rodw on topic simulation mode
I rarely play with the Pi but I think the current version of the pi operating system is based on Debian Bullseye which does not include python3
If you are using the Linuxcnc iso for the pi, you would need to go the src folder and type:
checkout 2.8
before trying to build it
Hopefully this will align the dependendencies with what you have, But you will still need to resolve them as discussed above.
If you are using the Linuxcnc iso for the pi, you would need to go the src folder and type:
checkout 2.8
before trying to build it
Hopefully this will align the dependendencies with what you have, But you will still need to resolve them as discussed above.
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds