• AVR Freaks

Hot!MPLAB Harmony Configurator v3 database setup error

Author
Deenayd
Super Member
  • Total Posts : 905
  • Reward points : 0
  • Joined: 2004/09/08 06:15:13
  • Location: Poland
  • Status: offline
2019/05/06 05:59:29 (permalink)
0

MPLAB Harmony Configurator v3 database setup error

Hello,
 
It's been years since I used those forums last time. I've been using smaller PICs in few projects and was happy without harmony so far.
 
Now I need to use PIC32MZ, so I've downloaded latest MPLAB X IDE (5.15), latest Harmony (v3.2.1), created new project, selected it to create database for harmony (menu: Tools / Embedded / Harmony 3 Configurator). Selected few options like location where Harmony should be installed (used harmony downloader just few minutes ago).
 
I worked for a while and I've got a misterious error:
<Log>[Error]: Exception cause: java.lang.Exception: Traceback (most recent call last):
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\site.py", line 585, in <module>
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\site.py", line 567, in main
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\site.py", line 300, in addusersitepackages
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\site.py", line 289, in getusersitepackages
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\sysconfig.py", line 416, in get_path
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\sysconfig.py", line 407, in get_paths
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\sysconfig.py", line 180, in _expand_vars
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\sysconfig.py", line 154, in _subst_vars
  File "S:\Mplab\HarmonyFramework\mhc\jython.jar\Lib\sysconfig.py", line 154, in _subst_vars
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 10: ordinal not in range(128)

 
It looks like an error with an unicode character. I have double checked and:
- my project path doesn't contain any non-English characters
- path where harmony is installed doesn't contain any non-English characters
 
Unicode character 0142 is an "ł" and this character is... in my name.
 
Oh, my user's folder in Windows is:
C:\Users\Sławomir and it has "ł" as 11th character (at position 10 if numbered from zero).
 
So: How to tell harmony to *stop* using Windows's user folder (if it can't use non-English characters)?

Slawek Piotrowski
Rejestracja Czasu Pracy Ewidencja Czasu Pracy
#1

3 Replies Related Threads

    nigelwright7557
    Super Member
    • Total Posts : 284
    • Reward points : 0
    • Joined: 2006/11/06 08:15:51
    • Location: 0
    • Status: offline
    Re: MPLAB Harmony Configurator v3 database setup error 2019/05/06 06:12:33 (permalink)
    0
    I just let harmony download to the default location.
     
    #2
    Deenayd
    Super Member
    • Total Posts : 905
    • Reward points : 0
    • Joined: 2004/09/08 06:15:13
    • Location: Poland
    • Status: offline
    Re: MPLAB Harmony Configurator v3 database setup error 2019/05/07 06:42:23 (permalink)
    0
    Unfortunatelly using default harmony (and project's) folder causes problems even earlier:
    - choose project: harmony 3 project
    - framework path - default (inside user's profile folder that contains letter "ł")
    - project settings / name and location - default, folder called "test"
    - device family should be selectable, it has empty combo box, target device has empty combo box too.
     
    I have assumed framework has problems with "ł" so I have created decicated folder outside my user's profile. This folder has only standard English letters (S:\Mplab). It used to work with MPLAB X IDE every time, until I have tried Harmony 3. It looks like Harmony 3 Configurator wants to use my user's profile folder for something - even if I choose another folders for both framework and project...

    Slawek Piotrowski
    Rejestracja Czasu Pracy Ewidencja Czasu Pracy
    #3
    Deenayd
    Super Member
    • Total Posts : 905
    • Reward points : 0
    • Joined: 2004/09/08 06:15:13
    • Location: Poland
    • Status: offline
    Re: MPLAB Harmony Configurator v3 database setup error 2019/05/08 00:01:23 (permalink)
    0
    I have decided it's quicker for me to rename user's profile folder to a name that doesn't contain non-english characters than to wait for a fix...
     
    It looks like Harmony configurator v3 works now so yes, it surely was a problem with non-english characters in user's profile folder name.
     
    Obviously I have created a symbolic link from old name to new one - just in case any application stored original folder's name somewhere.

    Slawek Piotrowski
    Rejestracja Czasu Pracy Ewidencja Czasu Pracy
    #4
    Jump to:
    © 2019 APG vNext Commercial Version 4.5