Jump to content

Cura Post Processing Plugin Import Erros


Sporech

Recommended Posts

Posted · Cura Post Processing Plugin Import Erros

Hi All,

 

I'm writing a post processing plugin for Cura, and am trying to import Matplotlib, however this isn't working. I get an import error which says it can't locate the module, even though python should be able to locate it just fine.

 

Has anyone else had this issue?

 

Thanks

  • Link to post
    Share on other sites

    Posted · Cura Post Processing Plugin Import Erros

    Cura comes with its own Python files. You can not "import" modules that you installed on your system, only modules that are in the Python environment that comes with Cura. If you just want to use this postprocessing script for your local install of Cura, it may be possible to add the appropriate files for the Matplotlib module to the libs folder inside the folder where you installed Cura. You will have to use the Matplotlib files for Python 3.8.10.

  • Link to post
    Share on other sites

    Posted · Cura Post Processing Plugin Import Erros

    Hi, thank you for clarifying. I've installed Matplotlib for Python3.8 and copied the folder across to my Cura installation, however there are some compatibility issues with the library. 

    image.thumb.png.786c2224040a6dada807343ca016cd76.png

    I'm struggling to troubleshoot this problem, is there a problem with dependencies?

  • Link to post
    Share on other sites

    Posted · Cura Post Processing Plugin Import Erros

    Do you have an M1 processor? If so, the files you copied may be for ARM processors, while the Python installation that comes with Cura is for Intel processors.

  • Link to post
    Share on other sites

    Posted (edited) · Cura Post Processing Plugin Import Erros

    AFAIK, Python for macOS knows only one Intel architecture. But it is important that you use version 3.8.10.

     

    Get the "Intel" installer, not the "Universal2" installer.

    Edited by ahoeben
  • Link to post
    Share on other sites

    Posted · Cura Post Processing Plugin Import Erros

    Should 3.8 work or does it need to be 3.8.10? And can you elaborate on getting the Intel installer?

  • Link to post
    Share on other sites

    Posted · Cura Post Processing Plugin Import Erros

    Yes, it needs to be 3.8.10.

     

    Go to https://www.python.org/downloads/macos/

    Scroll down to Python 3.8.10 - May 3, 2021

    Download macOS 64-bit Intel installer

  • Link to post
    Share on other sites

    Posted · Cura Post Processing Plugin Import Erros

    Thanks that worked!

    • Like 1
    Link to post
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    • Our picks

      • UltiMaker Cura 5.8 Stable released 🎉
        In the Cura 5.8 stable release, everyone can now tune their Z seams to look better than ever. Method series users get access to new material profiles, and the base Method model now has a printer profile, meaning the whole Method series is now supported in Cura!
        • 5 replies
      • Introducing the UltiMaker Factor 4
        We are happy to announce the next evolution in the UltiMaker 3D printer lineup: the UltiMaker Factor 4 industrial-grade 3D printer, designed to take manufacturing to new levels of efficiency and reliability. Factor 4 is an end-to-end 3D printing solution for light industrial applications
          • Thanks
          • Like
        • 3 replies
    ×
    ×
    • Create New...