Macros work on FreeCAD 16 , 17 but not on 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

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Kunda1 »

chrisb wrote: Thu Jul 25, 2019 5:05 pm The macro addons_installer is no longer needed, you should remove it manually. AddonManager is a replacement.
https://github.com/FreeCAD/FreeCAD-addons/issues/141
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
mario52
Veteran
Posts: 4698
Joined: Wed May 16, 2012 2:13 pm

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by mario52 »

hi Dany welcome
Dany wrote: Thu Jul 25, 2019 3:32 pm A very short and limited list of macros that are working fine on FC0.16 & 0.17 but won't owrk on 0.18:
* Macro_FCSpring_Helix_Variable
What's the problem at home the macro work (all version)

actual version "01.14" upgraded the "2019/05/03"

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16117 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: dbb4cc6415bac848a294f03b80f65e888d531742
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17271 (Git)
Build type: Release
Branch: master
Hash: 2d8f7ef2b47a335f99036bf328f51da1e6d015d9
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0

mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Dany
Posts: 9
Joined: Thu Jul 25, 2019 5:45 am

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Dany »

[
chrisb wrote: Thu Jul 25, 2019 5:05 pm The macro addons_installer is no longer needed, you should remove it manually. AddonManager is a replacement.
OK - thanks much. Where can I find and install the "AddonManger" (github?)?
Will I be able to still run Python2 macors on FC 0.17,0.16 and the new Python3 Macros on FC0.18 all installed on the same machien?
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Jee-Bee »

default in your FreeCAD

just open Tools>>Addon manager ;)
Dany
Posts: 9
Joined: Thu Jul 25, 2019 5:45 am

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Dany »

Jee-Bee wrote: Fri Jul 26, 2019 7:51 pm default in your FreeCAD

just open Tools>>Addon manager ;)
Dose NOT WORK :(
I installed the screw maker 1 2, it was successfuly installed in the new AppData>Roaming>Freecad>Macro but when I tried to execute it I got the following massage:

:(unicode error)'utf-8' codec can't decode byte 0xb0 in position 87: invalid start byte",("C:Useres/דני/AppData/Roaming/FreeCAD/Macro/scre_maker1_2.FCMacro',4846,-1,'"""\n)

Similar errors I get when trying to install and execute other macros.
Still stuck :(
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Jee-Bee »

I think you best can start with a fresh macro / mod folder
rename current marcro folder create a new one and download all needed macros/ workbenches again.

In the end if a macro or wb isn't ported to python3 it don't work...
Dany
Posts: 9
Joined: Thu Jul 25, 2019 5:45 am

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Dany »

Jee-Bee wrote: Sun Jul 28, 2019 6:04 am I think you best can start with a fresh macro / mod folder
rename current marcro folder create a new one and download all needed macros/ workbenches again.

In the end if a macro or wb isn't ported to python3 it don't work...
Guys -
I must be doing something wrong!
I uninstalled FC0.18 and re-installed it from fresh.
Installed macros using Tools>Addon manager:
* crank simul
* screw maker 1_2
* spring
Nothing works.
Can someone tell me what am I missing?
Thnx in advance.
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by looo »

While theoretical such user names should work, it's better to avoid special characters for the username. I guess one day this will work, but this is not tomorrow ;)
Dany
Posts: 9
Joined: Thu Jul 25, 2019 5:45 am

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Dany »

looo wrote: Mon Jul 29, 2019 5:54 am While theoretical such user names should work, it's better to avoid special characters for the username. I guess one day this will work, but this is not tomorrow ;)
Please note that the "asterisk" (*) I put in my post is NOT part of the macro.
Can someone tell me how can I tell if a macro is Python 3 compatible or not?
THNX!!
Dany
Posts: 9
Joined: Thu Jul 25, 2019 5:45 am

Re: Macros work on FreeCAD 16 , 17 but not on 18

Post by Dany »

Dany wrote: Mon Jul 29, 2019 9:20 am
looo wrote: Mon Jul 29, 2019 5:54 am While theoretical such user names should work, it's better to avoid special characters for the username. I guess one day this will work, but this is not tomorrow ;)
Please note that the "asterisk" (*) I put in my post is NOT part of the macro.
Can someone tell me how can I tell if a macro is Python 3 compatible or not?
THNX!!
I mean - NOT part of the macro name.
Post Reply