Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon Manager utf8 issues #34

Closed
2 tasks
luzpaz opened this issue Jan 25, 2019 · 2 comments
Closed
2 tasks

Addon Manager utf8 issues #34

luzpaz opened this issue Jan 25, 2019 · 2 comments

Comments

@luzpaz
Copy link
Contributor

luzpaz commented Jan 25, 2019

  • Utility/HighlightDifference.FCMacro

Failed to install using Py3Qt5 AddOnManager with error :

Traceback (most recent call last):
  File "E:\Data\My Downloads\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\Mod\AddonManager\AddonManager.py", line 423, in install
    if install_macro(macro, self.macro_repo_dir):
  File "E:\Data\My Downloads\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\Mod\AddonManager\AddonManager.py", line 135, in install_macro
    macrofile.write(macro.code)
  File "E:\Data\My Downloads\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\bin\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2212' in position 2434: character maps to <undefined>
  • FCCamera.FCMacro
Failed to install using Py3Qt5 AddOnManager with error (looks like AddOnManager needs some more robustness handling externally stored macros) :

 File "E:\Data\My Downloads\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\Mod\AddonManager\AddonManager.py", line 423, in install
    if install_macro(macro, self.macro_repo_dir):
  File "E:\Data\My Downloads\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\Mod\AddonManager\AddonManager.py", line 135, in install_macro
    macrofile.write(macro.code)
  File "E:\Data\My Downloads\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\FreeCAD_0.18.15643_Conda_Py3QT5-WinVS2015_x64\bin\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\ufffd' in position 35753: character maps to <undefined>

Related to #8
Found by @Syres916 on the forum

@galou
Copy link
Collaborator

galou commented Feb 1, 2019

For information, Camera.FCMacro installable on

OS: Ubuntu 18.04.1 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.15713 (Git)
Build type: Release
Branch: master
Hash: 93dd00cc3953416bf46fb0a5b7b3c6397df6e4d0
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

@galou
Copy link
Collaborator

galou commented Feb 20, 2019

This is probably related to macros from the Wiki and a problem with the AddonManager, not macros from this repository.

Feel free to reopen if required.

@galou galou closed this as completed Feb 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants