Skip to content

Making MSCL IMU import works across different mscl versions - #493

Merged
senthurayyappan merged 7 commits into
mainfrom
IMU_debugging
Sep 19, 2025
Merged

Making MSCL IMU import works across different mscl versions#493
senthurayyappan merged 7 commits into
mainfrom
IMU_debugging

Conversation

@VarunSatyadevShetty

Copy link
Copy Markdown
Member

The newer version of mscl does not create python bindings in "/usr/share/python3-mscl" instead it is stored in "dist-packages".
Specifically

  • Updated the import logic to first try the standard mscl import from disk-packages.
  • Fallback to the legacy /usr/share/python3-mscl path only if the import fails.
  • Added to the LOGGER.error message suggesting to check if disk-packages is in PYTHONPATH if the import fails even after the fallback.

@tkevinbest tkevinbest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on my end. I assume this has been tested for both versions.

@senthurayyappan senthurayyappan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

ModuleNotFoundError is a subclass of ImportError, so it is redundant to mention it in the except statement, but it doesn't have any side effects.

Image

@senthurayyappan
senthurayyappan merged commit ec721c6 into main Sep 19, 2025
6 checks passed
@senthurayyappan
senthurayyappan deleted the IMU_debugging branch September 19, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants