Jump to content
Ultimaker Community of 3D Printing Experts

Cura Post Processing Plugin Import Erros


Sporech
 Share

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 · Cura Post Processing Plugin Import Erros

    Yeah my computer has an M1 processor, I can try and re-install for the correct architecture, should it be for a particular version of Intel processor?

     

  • 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
     Share

    • Our picks

      • New here? Get ahead with a free onboarding course
        Hi,
         
        Often getting started is the most difficult part of any process. A good start sets you up for success and saves you time and energy that could be spent elsewhere. That is why we have a onboarding course ready for
        Ultimaker S5 Pro Bundle, Ultimaker S5, Ultimaker S3 Ultimaker 2+ Connect.   
        They're ready for you on the Ultimaker Academy platform. All you need to do to gain access is to register your product to gain free access. 
        Ready? Register your product here in just 60 seconds.
          • Like
        • 11 replies
    ×
    ×
    • Create New...