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

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

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

Post by Kunda1 »

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.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

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

Post by Kunda1 »

chrisb wrote:ping
Hi @chrisb care to move this thread under the Python scripting and macros subforum ? Thanks!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
chrisb
Veteran
Posts: 53919
Joined: Tue Mar 17, 2015 9:14 am

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

Post by chrisb »

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

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

Post by Kunda1 »

Thanks!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
galou_breizh
Posts: 436
Joined: Wed Sep 15, 2010 9:38 am

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

Post by galou_breizh »

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
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

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

Post by Kunda1 »

x represents macros that haven't been tested or are not compatible. Either one
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

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

Post by Kunda1 »

This thread needs to get a little more love
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

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

Post by Syres »

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
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

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

Post by Kunda1 »

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!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Syres
Veteran
Posts: 2893
Joined: Thu Aug 09, 2018 11:14 am

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

Post by Syres »

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 74 times
Macros_WIP.rtf
(52.09 KiB) Downloaded 68 times
Post Reply