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

      • Introducing Universal Cura Projects in the UltiMaker Cura 5.7 beta
        Strap in for the first Cura release of 2024! This 5.7 beta release brings new material profiles as well as cloud printing for Method series printers, and introduces a powerful new way of sharing print settings using printer-agnostic project files! Also, if you want to download the cute dinosaur card holder featured below, it was specially designed for this release and can be found on Thingiverse! 
          • Like
        • 10 replies
      • S-Line Firmware 8.3.0 was released Nov. 20th on the "Latest" firmware branch.
        (Sorry, was out of office when this released)

        This update is for...
        All UltiMaker S series  
        New features
         
        Temperature status. During print preparation, the temperatures of the print cores and build plate will be shown on the display. This gives a better indication of the progress and remaining wait time. Save log files in paused state. It is now possible to save the printer's log files to USB if the currently active print job is paused. Previously, the Dump logs to USB option was only enabled if the printer was in idle state. Confirm print removal via Digital Factory. If the printer is connected to the Digital Factory, it is now possible to confirm the removal of a previous print job via the Digital Factory interface. This is useful in situations where the build plate is clear, but the operator forgot to select Confirm removal on the printer’s display. Visit this page for more information about this feature.
          • Like
        • 0 replies
    ×
    ×
    • Create New...