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

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!
User avatar
Roy_043
Veteran
Posts: 5231
Joined: Thu Dec 27, 2018 12:28 pm

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

Post 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.
chrisb
Veteran
Posts: 43415
Joined: Tue Mar 17, 2015 9:14 am

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

Post 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 ..."
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
Roy_043
Veteran
Posts: 5231
Joined: Thu Dec 27, 2018 12:28 pm

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

Post 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.
adrianinsaval
Veteran
Posts: 3053
Joined: Thu Apr 05, 2018 5:15 pm

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

Post 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.
Haavard
Posts: 103
Joined: Wed Feb 17, 2021 10:48 pm

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

Post 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?
adrianinsaval
Veteran
Posts: 3053
Joined: Thu Apr 05, 2018 5:15 pm

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

Post by adrianinsaval »

@Haavard full freecad info for such reports please, also knowing the special character in your username might help too
Haavard
Posts: 103
Joined: Wed Feb 17, 2021 10:48 pm

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

Post 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)
chrisb
Veteran
Posts: 43415
Joined: Tue Mar 17, 2015 9:14 am

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

Post 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.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 43415
Joined: Tue Mar 17, 2015 9:14 am

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

Post 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?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply