schupin wrote: ↑
Fri Apr 24, 2020 11:13 am
It look like there is a problem on line 56 :
- can you check there is 4 "space character" before "sys.setdefaultencoding"
- did you install the macro with the addon manager ?
- which version number of the macro is writen on line 22 ?
Hi Shupin, nice to hear you.
I've checked the code. There are exactly four spaces before the "sys.setdefaultencoding" and the version on macro at line 22 is '0.4.2'.
I've dowloaded the macro using the addon manager and I've exploded the icons zip file in the same folder of the macro, in their own folder.
This are some other error I've see into the report:
Code: Select all
C:\Program Files\FreeCAD 0.18\bin\lib\site-packages\matplotlib\__init__.py:908: MatplotlibDeprecationWarning: The backend.qt4 rcParam was deprecated in version 2.2. In order to force the use of a specific Qt binding, either import that binding first, or set the QT_API environment variable.
<unknown exception traceback><class 'SyntaxError'>: ("(unicode error) 'utf-8' codec can't decode byte 0xb3 in position 27: invalid start byte", ('C:/Users/Gianluca/AppData/Roaming/FreeCAD/Macro/CenterOfMass.FCMacro', 137, 4, None))
I've no knowledge about Qt libraries. Really I don't know if they are installed with the FreeCad or they was there before... So I'll not supriserd if the problem starts there...
Thank you for your interesting.
Information on my system follows:
Code: Select all
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Italian/Italy (it_IT)