Skip to content

Gentoo bug: ModuleNotFoundError: No module named 'linuxcnc' #4717

Closed

Description

@NTULINUX
checking for the sysconfig Python package... yes
checking for Python include path... -I/usr/include/python3.14
checking for Python library path... -L/usr/lib64 -lpython3.14
checking for Python site-packages path... /usr/lib/python3.14/site-packages
checking for Python platform specific site-packages path... /usr/lib/python3.14/site-packages

...

checking for site-package location... /usr/lib/python3/dist-packages

Only LinuxCNC files are in this directory:

lcnc@localhost ~ $ ls /usr/lib/python3/dist-packages
_hal.so        common                gmoccapy         hal_glib.py         linuxcnc.so          plasmac             pyngcgui.py       raster.py           tooldb.py
_togl.so       gcode.so              gremlin.py       hershey.py          linuxcnc_util.py     pncconf             pyui              rotarydeltakins.so  touchy
axis_kinds.py  gladevcp              gremlin_view.py  lcnc_realtime.py    mtc                  popupkeyboard.py    pyvcp_widgets.py  rs274               vcpparse.py
bitfile.py     gladevcp_makepins.py  gscreen          lineardeltakins.so  multifilebuilder.py  preview_helpers.py  qt5_graphics.py   stepconf            vismach.py
bwidget.py     glnav.py              hal.py           linux_event.py      nf.py                propertywindow.py   qtvcp             tkdar.so

This is outside the search path where Python by default searches on Gentoo.

This should return: /usr/lib/python3.14/site-packages I believe but the key is not to break installs on other distros. On Gentoo specifically, this was working I believe prior to this commit: 2511cf1

I think SITEPY still needs some more work so the need to specify PYTHONPATH is no longer required.

Activity

  1. NTULINUX commented on Oct 26, 2026

    @NTULINUX
    ContributorAuthor

    #4726 closes this.

  2. added a commit that references this issue on Oct 27, 2026
    56729c5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions