Jump to content

Recommended Posts

Posted · Fluidd Stage for Cura

Hello.

      I just buy a Elegoo Neptune 4 Max and the programs offered are Ultimaker Cura and Orca Slicer. I've try both and Cura was, for me, way better slicer and interface than Orca. However, fluidd web interface was integrated in orca, no need to open a browser. After installing Moonraker Connection plugins, which work very well. I decide to investigate to create a plugins. I've lot experience in programming ASM/C++/DirectX, but less in Python. Then after 2 hours, I've got a begin of a plugins and a working version on python3. At the end of the day, I still not manage to get thru. There is what I've done and have....

 

1. Inside Cura Folder, I made a clone of MonitorStage plugins

2. After renaming and editing file, I got i fluidd stage. Not yet complete, but a base.
Fluidd.thumb.jpg.926aeb30b156a27d2e134b7178afdee7.jpg

3. Other side, I've install Python 3.13 and PyQt6.
4. I've create a program who load fluidd web Interface.

import sys

from PyQt6.QtCore import QUrl
from PyQt6.QtWidgets import QApplication
from PyQt6.QtWebEngineWidgets import QWebEngineView

if __name__ == "__main__":
    app = QApplication(sys.argv)
    webview = QWebEngineView()
    webview.load(QUrl("http://192.168.1.69"))
    webview.show()
  
  

webinterface.thumb.png.602870020f194808aaa41f9a0f14694e.png

5. My problem.... Plugins crash on
   

from PyQt6.QtWebEngineWidgets import QWebEngineView

 

I've try to copy some .dll and .pyd but nothing.

Does Someone have Idea? I fell have 2 part of rope and can't tie it together.

FluiddStage.zip

  • Link to post
    Share on other sites

    Posted · Fluidd Stage for Cura

    Cura comes with a python installation of its own, so normal users of Cura don't need to install Python, Qt, etc. Installing Python and Qt on your system in addition to Cura will not affect Cura; Cura will still be using its own Python and Qt installation, and that does not include QWebEngineWidgets.

     

    You can try to copy the files required for QWebEingineWidgets into your Cura installation, but you must match the exact version of Cura and Qt that Cura ships with. AFAIK, Cura 5.9 uses Python 3.10.4. You cannot mix that version of Python with files from an additional Python 3.13 installation. Same for Qt 6; I think Cura 5.9 uses Qt 6.6.0

  • Link to post
    Share on other sites

    Posted · Fluidd Stage for Cura

    Similar, not the same, and it would require OP to provide versions of the dll and pyd files for each platform AND for each supported Cura version, or only ever support one version of Cura. Have fun with that.

  • Link to post
    Share on other sites

    Posted (edited) · Fluidd Stage for Cura

    FluiddStage.zipThanks for the replay,

     And sorry for the delay. I always love test some theory  before respond.

    Ahoeben was right.. Before his post, PyQt6 folder (python3 vs cura) dosent pass copy/windif/checksum test. That's mean don't override the folder, cura gonna crash.

    After reinstall Python 3.10.4. and switch PyQt6 6.8 to 6.6, nothing still not work. But I realize that sub-package didn't install properly.
     

    pip index versions
    pip                 22.0.4
    PyQt6               6.6.0
    PyQt6-Qt6           6.8.1
    PyQt6_sip           13.9.1
    PyQt6-WebEngine     6.6.0
    PyQt6-WebEngine-Qt6 6.8.1
    setuptools          58.1.0

    In this case, my python version stop to work and plugins version have no change... still crash on import. Re do everything, but this time i install sub package before

    pip install PyQt6-Qt6==6.6.0
    pip install PyQt6-WebEngine-Qt6==6.6.0
    pip install PyQt6_sip==13.6.0
    pip install PyQt6==6.6.0
    pip install PyQt6-WebEngine==6.6.0

    This time python test version work and also PyQt6 Folder Python was same that PyQt6 Cura. You can Override, File difference was more file for Python version and checksum for existing file have 0 byte difference.

     

    Now with that, It's sadly only allow to not crash the FluiddStage.py if you insert

    from PyQt6.QtCore import QUrl
    from PyQt6.QtWebEngineWidgets import QWebEngineView

    Once you try to webview directly into the python or qml file, the plugins crash. Also i remark once i import in qml i have crash. Only import in main plugins work. 

    I the great schematic of live, i think it's screw, maybe specially because my lack of knowledge with python.

     

    Oh I not also replace PyQt6 folder, I have recopy PyQt6/bin dll file into cura root. Nothing work.

     

    Thanks.

    FluiddStage.zip

    Edited by Fleuve
  • 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.9 stable released!
        Here comes Cura 5.9 and in this stable release we have lots of material and printer profiles for UltiMaker printers, including the newly released Sketch Sprint. Additionally, scarf seams have been introduced alongside even more print settings and improvements.  Check out the rest of this article to find out the details on all of that and more
          • Like
        • 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
          • Heart
          • Thanks
          • Like
        • 7 replies
    ×
    ×
    • Create New...