PNCconf encountered an error

More
10 Sep 2023 01:10 #280362 by MCSeifert
I am new with Linuxcnc and I am attempting to use a Mesa 7i96s board to run a CNC. I am using Linuxcnc version 2.9 with Debian 12 Bookworm on an RPi 4B. I am attempting to create the ini and hal file with PNCconf but once I finish filling out each of the steps and press "Done" I receive the error below.


PNCconf encountered an error. The following information may be useful in troubleshooting:

LinuxCNC Version: Master (2.9)

Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/pnccof/pages.py", line 126, in on_button_fwd_clicked
  self()
 File "/usr/lib/python3/dist-packages/pnccof/pages.py", line 1610, in finished_finish
  self.a.build_config()
 File "/usr/bin/pncconf", line 335, in build_config
  self.HAL.write_halfile(base)
 File "/usr/lib/python3/dist-packages/pnccof/build_HAL.py", line 373, in write_halfile
  self.connect_output(file)
 File "/usr/lib/python3/dist-packages/pnccof/build_HAL.py", line 1804, in connect_output
  p = self.d
~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/lib/python3/dist-packages/pnccof/data.py", line 1085, in__getitem__
  return getattr(self, item)
        ^^^^^^^^^^^^^^^^^^^
AttributeError: 'Data' object has no attribute 'mesa0sserrial0_8pin0'

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

More
10 Sep 2023 18:51 #280422 by cmorley
can you give details of what you selected on the mesa page? did you add a sserial card?

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

More
10 Sep 2023 22:40 #280438 by MCSeifert
I have attached screen shots of what I did on the Mesa Card page. I did not add a sserial card just X Z and spindle information.  

Attachment not found

 

Attachment not found

 

Attachment not found

 

Attachment not found

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

More
10 Sep 2023 22:43 #280439 by MCSeifert
I did not attach files apparently 
 


Attachments:

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

More
11 Sep 2023 05:40 #280453 by cmorley
Strangely the first screen shows 9 channels of sserial - I think that should be only 8.
In my system i can't set it to 9 at all.

Try setting it to 8

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

More
11 Sep 2023 06:34 #280456 by MCSeifert
I set the value to 8 but I received the same error at the end.


Attachments:

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

More
11 Sep 2023 11:38 #280470 by rodw
Replied by rodw on topic PNCconf encountered an error
The pi is a bit funny with some of this stuff. Master branch (2.10) may be a better option for it. We've been working on an image with 2.10.
2.10 has a new hal driver for the pi
Could you please download this image forum.linuxcnc.org/9-installing-linuxcnc...cnc?start=310#280426
and see if the problem goes away?
user: cnc
password: cnc

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

More
11 Sep 2023 20:48 #280495 by MCSeifert
I installed the new OS and found that I couldn't connect to the internet. Was this an intentional part of the installation or am I having problems on my end? I went back to my previous OS (on a different SD card) and still had I telnet there.

I attempted to use PNCconf and create the ini and hal files. When I got to the X Motor page and tried to calculate the scale I received this error.

PNCconf encountered an error. The following information may be useful in troubleshooting:

LinuxCNC Version: Master (2.9)

Traceback (most recent call last):
 File "/usr/lib/python3/dist-packages/pncconf/pages.py", line 1323, in on_xcalculatescale_clicked
  def on_xcalculatescale_clicked(self, *args): self.a.calculate_('x')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/bin/pncconf", line 4724, in calculate_scale
  self.widgets[axis+"stepscale"].set_value(get("calcmotor_scale"))
                                           ^^^^^^^^^^^^^^^^^^^^^
 File "/usr/bin/pncconf", line4676, in get
  Def get(n): return get_value(self.widgets[n])
                         ^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/bin/pncconf", line 78, in get_value
  locale.setlocale(locale.LC_NUMERIC, oldlocale)
 File "/usr/lib/python3.11/locale.py", line 626, in setlocale
  return _setlocale(category, locale)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
locale.error: unsupported locale setting



Then when I went to go back to the previous page by pressing "Back" I received this error.



PNCconf encountered an error. The following information may be useful in troubleshooting:
LinuxCNC Version: Master (2.9)
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/pncconf/pages.py", line 146, in on_button_back_clicked
  self()
 File "/usr/bin/python3/dist-packages/pncconf/pages.py", line 1321, in x_motor_finish
  self.a.axis_done('x')
 File "/usr/bin/pncconf", line 4498, in axis_done
  get_text("homepos")
 File "/usr/bin/pncconf", line 4431, in get_text
  def get_text(n): d[axis + n] = get_value(w[axis + n])
                                      ^^^^^^^^^^^^^^^^^^^^^
 File "/usr/bin/pncconf", line 78, in get_value
  locale.setlocale(locale.py.LC_NUMERIC, oldlocale)
 File "/usr/lib/python3.11/locale.py", line 626, in setlocale
  return _setlocale(category,, locale)
           ^^^^^^^^^^^^^^^^^
locale.Error: unsupported locale setting



At this point I get locked in these errors and have to close PNCconf and start over.

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

More
11 Sep 2023 21:00 #280498 by tommylight

locale.Error: unsupported locale setting

What language and what locale setting are you using?

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

More
11 Sep 2023 21:02 #280499 by MCSeifert
Also I get an error at the start about hostmot2.

Some older cards require firmware.
You have no hostmot2 firmware downloaded in folder:
/lib/firmware/hm2/
PNCconf will use it's internal firmware data samples so you can continue. You could also try the discovery option if your card is connected and doesn't require firmware to be loaded at runtime.
Discovery option requires the advanced options checked on this page.


I think it's worth noting that I do not have a "hm2" folder in my firmware directory. I am also not familiar with what hostmot2 is and how instal what it's looking for.

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

Moderators: cmorley
Time to create page: 0.164 seconds
Powered by Kunena Forum