Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Need help, or want to share a macro? Post here!
User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Kunda1 » Fri Aug 31, 2018 3:57 pm

Objective
A forum thread to track migration of 3rd-party FreeCAD-Addons to Py3/Qt5
Feedback kindly requested from all authors/testers of said Macros to help populate this list.

The List

Code: Select all

       Macro                                    Py3      Qt5
=============================================================                                                          
├── apothemBasedPrism.py                        Pass	 Pass
├── CartoucheFC.py                              Error     x
├── Conversion
│   └── DeepCopy.FCMacro                        Error     x
├── FCCamera.FCMacro                            Pass     Pass
├── FCRotateViewAbsolute.FCMacro		Pass     Pass
├── FEM
│   └── ExportFem.FCMacro                       x         x
├── Foto.FCMacro                                Error     x
├── GenevaWheelGUI.py                           Pass     Pass
├── makecamera2dview.py                         Error     x
├── myMacroDir
│   ├── __init__.py
│   └── myMacro.py
├── ObjectCreation
│   ├── Airfoil_Import_and_Scale.FCMacro        Error     x
│   ├── Draft_Circle_3_Points.FCMacro           Error     x
│   ├── Draft_Circle_3_Points_3D.FCMacro        Pass     Pass
│   ├── Ellipse-Center+2Points.FCMacro          Error     x
│   ├── GeodesicDome.FCMacro                    Error     x
│   ├── HalfHull.FCMacro                        Error     x
│   ├── HyperbolaCreater.FCMacro                Pass     Pass
│   ├── Macro_FCCircularText.FCMacro            Pass     Pass
│   ├── MakeCircle3Points.FCMacro               Error     x
│   ├── ParabolaCreater.FCMacro                 Pass	 Pass         
│   └── ScrewMaker.FCMacro                      Error     x
├── ParametricObjectCreation
│   └── Rectellipse.FCMacro                     Pass     Pass
├── PureGui
│   └── ViewRotation.FCMacro                    Error     x
├── Sketcher
│   └── SketcherClipView.FCMacro                x         x
├── SolidSweep.FCMacro                          Error     x
├── TechDraw
│   ├── TechDrawSymbolsLibrary.FCMacro          x         x
│   └── TechDrawViewSet.FCMacro                 x         x
│   └── LasercutterSVGExport.FCMacro            Pass      Pass
├── unfoldBox.py                                Error     x
├── unrollRuledSurface.py                       Error     x
├── Utility
│  ├── ForceRecompute.FCMacro                   Pass     Pass
│  ├── HighlightCommon.FCMacro                  Error     x
│  ├── HighlightDifference.FCMacro              Error     x
│  ├── MeasureCircle.FCMacro                    Pass     Pass
│  ├── MessageBox.FCMacro                       Pass     Pass
│  └── SelectVisible.FCMacro                    Pass     Pass
└── ExpandTreeItem.FCMacro			Pass	 Pass
Testing
Very quick way to start testing is using the 0.18dev Py3/At5 builds conveniently added by our friend @sgrogan Background
One of the objectives for 0.18 release is that it will be py3 and Qt5 compatible
This are ongoing efforts to make this happen:
issue #995: Python3 compatibility (Ongoing)
issue #2986: Port from Qt4 to Qt5 (Ongoing)
https://github.com/looooo/FreeCAD/issues/8
https://forum.freecadweb.org/viewtopic.php?f=10&t=7713 "PyCXX upgrade" (from 2014)
https://forum.freecadweb.org/viewtopic.php?f=10&t=12534 "Porting to python3" (Active thread)
https://github.com/FreeCAD/FreeCAD-addons/issues/93

Related
FC Workbench Py3/Qt5 Tracker https://forum.freecadweb.org/viewtopic.php?f=10&t=30624

Note: this post will be actively updated
Last edited by Kunda1 on Fri Jan 25, 2019 5:48 pm, edited 1 time in total.
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Kunda1 » Sun Sep 02, 2018 7:29 pm

chrisb wrote:ping
Hi @chrisb care to move this thread under the Python scripting and macros subforum ? Thanks!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
chrisb
Posts: 29035
Joined: Tue Mar 17, 2015 9:14 am

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby chrisb » Sun Sep 02, 2018 9:31 pm

Done.
A Sketcher Lecture with in-depth information is available in English, auf deutsch, en français, en español.
User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Kunda1 » Mon Sep 03, 2018 11:07 am

Thanks!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
galou_breizh
Posts: 325
Joined: Wed Sep 15, 2010 9:38 am

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby galou_breizh » Mon Sep 17, 2018 6:35 am

Kunda1 wrote:
Fri Aug 31, 2018 3:57 pm
The List
I guess the 'x' represents a non-compatible macro. Am I right? It looks that there is a lot of work to be done!

Gaël
User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Kunda1 » Mon Sep 17, 2018 12:18 pm

x represents macros that haven't been tested or are not compatible. Either one
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Kunda1 » Tue Oct 30, 2018 8:37 pm

This thread needs to get a little more love
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Syres
Posts: 819
Joined: Thu Aug 09, 2018 11:14 am

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Syres » Tue Jan 15, 2019 5:15 pm

Kunda1 wrote:
Tue Oct 30, 2018 8:37 pm
This thread needs to get a little more love
@Kunda1, I can spare some testing time in the next couple of days, any fixes must be classed as a bonus as it's not my specialist area. Is the list still as it was on 31st August 2018, if so, there's a lot to go at, something in the region of 140?!

Would some polite 'pinging' of macro authors be out of order at this stage in proceedings?
User avatar
Kunda1
Posts: 8759
Joined: Thu Jan 05, 2017 9:03 pm

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Kunda1 » Tue Jan 15, 2019 7:31 pm

Awesome! Yes please!
Syres wrote:
Tue Jan 15, 2019 5:15 pm
Would some polite 'pinging' of macro authors be out of order at this stage in proceedings?
Yes sir. If you could report your results I'll be happy to track them here!
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Syres
Posts: 819
Joined: Thu Aug 09, 2018 11:14 am

Re: Python3 and Qt5 Compatible Addon Macros (in preparation for 0.18)

Postby Syres » Wed Jan 16, 2019 2:44 pm

Kunda1 wrote:
Tue Jan 15, 2019 7:31 pm
Yes sir. If you could report your results I'll be happy to track them here!
This is today's update. @Kunda1, firstly I'm sure you're aware that The List is significantly smaller than the complete list of macros in the AddOnManager so it may appear as though I've tested quite a few, there's many more that require input.

I'm not happy with the resulting text file as I've made your neat tree appalling to read so I also attached a RTF file with some colour to hopefully assist. If you want a different format (bearing in mind I'm using Msoft Office) please let me know.

I'll continue tomorrow as promised.
Attachments
Macros_WIP.txt
(7.8 KiB) Downloaded 39 times
Macros_WIP.rtf
(52.09 KiB) Downloaded 35 times