Page 1 of 3

Is this stilll correct?: Don't use special characters in your windows user name

Posted: Mon Jun 27, 2022 12:21 pm
by Roy_043
On the How_to_install_additional_workbenches Wiki page it says:
Don't use special characters (for example German umlauts) in your windows user name, otherwise FreeCAD will not recognize files and folders in the macro path.
Since much of the page is obsolete I wonder if this advice is still correct.

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Mon Jun 27, 2022 2:15 pm
by chrisb
I haven't seen these issues for quite a while. On the other hand: it doesn't harm to follow this advice. As we don't know what is inside of an AddOn, I vote for keepoing at least something like "If you encounter problems ..."

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 8:04 am
by Roy_043
I would prefer not to have this text if it is not necessary, obviously. And for someone in, say, China this advice might be awkward.

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 12:41 pm
by adrianinsaval
I would do what chrib said, FreeCAD itself should no longer have this issue but some addons and possibly macros might have it, plus we know older versions of FreeCAD did have that issue so it's at least worth mentioning that IMO.

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 2:50 pm
by Haavard
This issue have been annoying me the last couple of weeks, as the addon manager does not work on W11 with special characters in the username.

I tried reinstalling Freecad, using the .7z-version, installing as admin, running as admin, nothing worked. Created a new user wo special characters, and the addon manager works as expected.

Is there an active bug/issue for this? It is most definitely a bug in my eyes, and should be listed here: Known OS specific Issues

Edit: @chennes do you know about this?

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 3:53 pm
by adrianinsaval
@Haavard full freecad info for such reports please, also knowing the special character in your username might help too

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 4:20 pm
by Haavard
Of course :oops:

Non-working username:

Code: Select all

HåvardJakobsen
Steps to reproduce:
- Install FreeCAD 0.20 release on Win 11
- Open Freecad, then open addon manager
- Install a workbench (Assy4 in this case)
- The files are downloaded and unzipped, but installation aborts with the following report:

Code: Select all

14:36:53  Failed to execute Git Python command: check installation of GitPython and/or git
14:37:13  Traceback (most recent call last):
14:37:13    File "C:\Program Files\FreeCAD 0.20\Mod\AddonManager\addonmanager_workers.py", line 1255, in finish_zip
14:37:13      self.update_metadata()
14:37:13    File "C:\Program Files\FreeCAD 0.20\Mod\AddonManager\addonmanager_workers.py", line 1268, in update_metadata
14:37:13      self.repo.load_metadata_file(package_xml)
14:37:13    File "C:\Program Files\FreeCAD 0.20\Mod\AddonManager\Addon.py", line 244, in load_metadata_file
14:37:13      metadata = FreeCAD.Metadata(file)
14:37:13  Base.XMLBaseException: Fatal error at file "", line 0, column 0
   Message: unable to open primary document entity 'C:\Users\HåvardJakobsen\AppData\Roaming\FreeCAD\Mod\Assembly4\package.xml'
After closing FC to desktop, it crashes after the splash screen when opening FC again. To fix this issue, this folder must be removed: C:\Users\USERNAME\AppData\Roaming\FreeCAD

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: Norwegian Bokmal/Norway (nb_NO)

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 6:12 pm
by chrisb
Haavard wrote: Tue Jun 28, 2022 2:50 pm Is there an active bug/issue for this? It is most definitely a bug in my eyes, and should be listed here: Known OS specific Issues
Thanks for reporting, I will add it.

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 9:19 pm
by chrisb
chrisb wrote: Tue Jun 28, 2022 6:12 pm Thanks for reporting, I will add it.
Added it to the Windows section. How about the other OSs?

Re: Is this stilll correct?: Don't use special characters in your windows user name

Posted: Tue Jun 28, 2022 9:29 pm
by wmayer