OK.  A bit more on this.
I can fix the toplevel.py with Exception,e: to be Exception as e:
I can fix the print statements to be instead print(...)

But now I'm seeing errors in what appear to be library programs.
[GladeVCP.QTVCP.QT_ISTAT][WARNING]  Embedded tab configuration -invalid number 
of TAB_NAMES vs TAB_LOCATION - guessing default. (qt_istat.py:446)
module 'python' skipped - import error: No module named 'pango'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 85, in 
_builder_connect_callback
    handler, args = _extract_handler_and_args(obj_or_map, handler_name)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Is there an easier way?  Like just force Python2 instead of 3?  Or does 
something else have to be updated in such a way so the libraries are compatible 
with Python3?

Thanks
John

> -----Original Message-----
> From: John Dammeyer [mailto:jo...@autoartisans.com]
> Sent: February 25, 2025 4:12 PM
> To: 'Enhanced Machine Controller (EMC)'
> Subject: Re: [Emc-users] LinuxCNC 2.9.4 can't find MESA 7i92H
> 
> Rats...
> I was celebrating too soon.
> Looks like a Python3 isssue with perhaps older Python 2 code?
> 
> To avoid the error with the missing MPG I borrowed it from the working
> system so now it's been found.  Toplevel just imports remap and remap
> imports stdglue.  I don't understand this error:
> 
> except Exception,e:
> 
> The remap is from the PSNG project for the touch probe screen.
> https://github.com/linuxcnc-probe-screen/probe-screen-ng/tree/master and
> it's last change was about 4 years ago.
> 
> Suggestions?
> Thanks
> John
> 
> 
> xhc-hb04: found XHC-HB04 device
> xhc-hb04.tcl: using std_start_pause_button
> xhc-hb04.tcl: Using existing outpin signame: spindle-vel-cmd-rps-abs
> APP: xset found: </usr/bin/xset>
> initialize: module '/home/john/linuxcnc/configs/G3616-MESA-
> 7i92/python/toplevel.py' init failed:
> Traceback (most recent call last):
> 
>   File "/home/john/linuxcnc/configs/G3616-MESA-7i92/python/toplevel.py",
> line 19, in <module>
>     import remap
> 
>   File "/home/john/linuxcnc/configs/G3616-MESA-7i92/./python/remap.py",
> line 19, in <module>
>     from stdglue import *
> 
>   File "/home/john/linuxcnc/configs/G3616-MESA-7i92/./python/stdglue.py",
> line 28
> 
>     except Exception,e:
> 
>            ^^^^^^^^^^^
> 
> SyntaxError: multiple exception types must be parenthesized
> 
> Interp ctor: can't instantiate Python plugin
> 
> John
> 
> > -----Original Message-----
> > From: Sam Sokolik [mailto:samco...@gmail.com]
> > Sent: February 25, 2025 3:10 PM
> > To: Enhanced Machine Controller (EMC)
> > Subject: Re: [Emc-users] LinuxCNC 2.9.4 can't find MESA 7i92H
> >
> > Yay!
> >
> > On Tue, Feb 25, 2025, 4:58?PM John Dammeyer
> <jo...@autoartisans.com>
> > wrote:
> >
> > > Yipee!  It's alive!  It's alive!
> > > I had forgotten to check off one box in the network dialog.  So the
> > > IP address were all correct but no one was allowed to connect.
> > > Now to move it into the mill cabinet and see if I can make hardware move.
> > > John
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: John Dammeyer [mailto:jo...@autoartisans.com]
> > > > Sent: February 25, 2025 12:29 PM
> > > > To: Enhanced Machine Controller (EMC)
> > > > Subject: [Emc-users] LinuxCNC 2.9.4 can't find MESA 7i92H
> > > >
> > > > Hi all,
> > > > From 2.9.3 an apt update and upgrade gave me 2.9.4 without issues.
> > > >
> > > > Next problem.  The MESA and Ethernet Cable work with the older
> > > > 2.8.4 Raspbery Pi4 LinuxCNC as shown in attached photo.
> > > > Move the cable over to the PC which has the same INI and HAL files
> > > > as the
> > > > 2.8 system with MESA 7i92H actually attached to a real mill.
> > > >
> > > > I know the internet works on this PC because it was used for all
> > > > the
> > > upgrade
> > > > stuff etc.  I unplugged the internet connection and rebooted the
> > > > PC with
> > > the
> > > > MESA card connected.  There is likely a simple solution to this.
> > > Something
> > > > needs to be configured somehow  but what?
> > > >
> > > > I do have another PCI Ethernet card on order that should be here
> > > tomorrow.
> > > > Then I can have both regular network and also talk to the MESA but
> > > > for
> > > now
> > > is
> > > > there a solution?
> > > >
> > > > LINUXCNC - 2.9.4
> > > > Machine configuration directory is
> > > > '/home/john/linuxcnc/configs/G3616-MESA-7i92'
> > > > Machine configuration file is 'G3616-MESA-7i92.ini.expanded'
> > > > Starting LinuxCNC...
> > > > linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
> > > > Note: Using POSIX realtime
> > > > Found file(REL): ./G3616-MESA-7i92.hal
> > > > hm2: loading Mesa HostMot2 driver version 0.15
> > > > hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
> > > > hm2_eth: ERROR: can't connect: Network is unreachable
> > > > hm2_eth: rtapi_app_main: Network is unreachable (-101)
> > > > ./G3616-MESA-7i92.hal:10: waitpid failed /usr/bin/rtapi_app
> > > > hm2_eth
> > > > ./G3616-MESA-7i92.hal:10: /usr/bin/rtapi_app exited without
> > > > becoming ready
> > > > ./G3616-MESA-7i92.hal:10: insmod for hm2_eth failed, returned -1
> > Shutting
> > > > down and cleaning up LinuxCNC...
> > > > Running HAL shutdown script
> > > > hm2: unloading
> > > > Note: Using POSIX realtime
> > > > LinuxCNC terminated with an error.  You can find more information
> > > > in the
> > > > log:
> > > >     /home/john/linuxcnc_debug.txt
> > > > and
> > > >     /home/john/linuxcnc_print.txt
> > > > as well as in the output of the shell command 'dmesg' and in the
> > > > terminal john@LinuxCNC-G3616:~$
> > > _______________________________________________
> > > Emc-users mailing list
> > > Emc-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/emc-users
> > >
> >
> > _______________________________________________
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users



_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to