[Bug?] Addon Manager freezes with v0.19_pre

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
aapo
Posts: 626
Joined: Mon Oct 29, 2018 6:41 pm

[Bug?] Addon Manager freezes with v0.19_pre

Post by aapo »

Screenshot_20190827_190401.png
Screenshot_20190827_190401.png (163.72 KiB) Viewed 195 times


Hi!

I'm getting a freeze in Addon Manager with v0.19_pre, if I select a workbench that has already been installed in the GUI. It seems that the conversion from unicode to ascii causes a problem:
Screenshot_20190827_185246.png
Screenshot_20190827_185246.png (30.84 KiB) Viewed 195 times

Code: Select all

Traceback (most recent call last):
  File "/home/software/FreeCAD/freecad-build/Mod/AddonManager/addonmanager_workers.py", line 394, in run
    message = "<strong style=\"background: #00B629;\">" + translate("AddonsInstaller", "This addon is already installed.") + "</strong><br>" + desc + '<br/><br/>Addon repository: <a href="' + self.repos[self.idx][1] + '">' + self.repos[self.idx][1] + '</a>'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1811: ordinal not in range(128)
The Addon Manager stops receiving any user commands, but it's possible to close the frozen Addon Manager window using the "x" in top right corner, after which FreeCAD itself continues to work normally. I have Python 2.7 and Qt 4.8, could it be that one of those is too old and chokes at unicode characters? It seems that the green highlighting somehow chokes the parser.


OS: Debian GNU/Linux bullseye/sid (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17905 (Git)
Build type: Release
Branch: master
Hash: efba264ff5456d8b02653237df6e5346ec9a76fc
Python version: 2.7.16+
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: [Bug?] Addon Manager freezes with v0.19_pre

Post by vocx »

aapo wrote: Tue Aug 27, 2019 4:09 pm

Code: Select all

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1811: ordinal not in range(128)
I have Python 2.7 and Qt 4.8, could it be that one of those is too old and chokes at unicode characters?
Yes, pretty much it's a Python 2 vs. Python 3 thing. I think most developers aren't checking compatibility with Python 2 because it's already end of life, so I think we really should push everybody to migrate to Py3/Qt5.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply