Komodo IDE 8.5.4 does not start under Windows XP while Komodo 9 does

Hi,
Since my Komodo 8.5.3 did not startup anymore, tried Komodo 8.5.4 to check . Not better.
Removed previous version, renamed prefs folder . Rebooted my pc but no better results. Here is the error stack from pystderr in pystderr.zip. BTW start with an unicode conversion pb it seems.Traceback (most recent call last):
File “D:\Program Files\ActiveState Komodo IDE 8\lib\python\lib\logging_init_.py”, line 874, in emit
stream.write(fs % msg.encode(“UTF-8”))
UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xe9 in position 1112: ordinal not in range(128)…

Tried Komodo IDE 9 and could launch it …
Patrice

Could you attach the full pystderr.log (you mentioned it, but only included the one line)?

Please find below the log as requested:

Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\python\lib\logging\__init__.py", line 874, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1112: ordinal not in range(128)
Logged from file policy.py, line 317
[2014-08-25 19:16:03,467] [ERROR] koInitService: upgradeUserSettings
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 1104, in upgradeUserSettings
    self._upgradeUserDataDirFiles()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 971, in _upgradeUserDataDirFiles
    currUserDataDir = koDirSvc.userDataDir
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\python\lib\logging\__init__.py", line 874, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1112: ordinal not in range(128)
Logged from file policy.py, line 317
[2014-08-25 19:16:03,483] [ERROR] koInitService: installSamples
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 1155, in installSamples
    dstDir = os.path.join(koDirSvc.userDataDir, "samples")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\python\lib\logging\__init__.py", line 874, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1112: ordinal not in range(128)
Logged from file policy.py, line 317
ERROR:xpcom:Creation of class '<class 'component:koPrefs.koGlobalPrefService'>' failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\factory.py", line 57, in createInstance
    return self.klass()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1150, in __init__
    self.prefs = self.getPrefs("global")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1270, in getPrefs
    self._setupGlobalPreference(name)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1181, in _setupGlobalPreference
    defn.user_filename = os.path.join( self._koDirSvc.userDataDir, defn.user_filename)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)
[2014-08-25 19:16:03,733] [ERROR] koInitService: installSampleTools
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 1178, in installSampleTools
    getService(components.interfaces.koIPrefService).prefs
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\components.py", line 190, in getService
    return serviceManager.getServiceByContractID(self.contractid, _get_good_iid(iid))
  File "<XPCOMObject method 'getServiceByContractID'>", line 3, in getServiceByContractID
Exception: 2147500037 (NS_ERROR_FAILURE)
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\python\lib\logging\__init__.py", line 874, in emit
    stream.write(fs % msg.encode("UTF-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1112: ordinal not in range(128)
Logged from file policy.py, line 317
ERROR:xpcom:Creation of class '<class component:koTemplateService.KoTemplateService at 0x04427AB0>' failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\factory.py", line 57, in createInstance
    return self.klass()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koTemplateService.py", line 123, in __init__
    self.initializeUserTemplateTree()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koTemplateService.py", line 135, in initializeUserTemplateTree
    templatesDir = self.getUserTemplatesDir()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koTemplateService.py", line 215, in getUserTemplatesDir
    return os.path.join(self.koDirSvc.userDataDir, self.basename)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)
[2014-08-25 19:16:03,780] [ERROR] koInitService: installTemplates
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 1266, in installTemplates
    getService(components.interfaces.koITemplateService)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\components.py", line 190, in getService
    return serviceManager.getServiceByContractID(self.contractid, _get_good_iid(iid))
  File "<XPCOMObject method 'getServiceByContractID'>", line 3, in getServiceByContractID
Exception: 2147500037 (NS_ERROR_FAILURE)
[2014-08-25 19:16:03,812] [WARNING] koInitService: setPlatformErrorMode:: GetErrorMode not available on platform: XP
ERROR:xpcom:Unhandled exception calling 'G     int8 * userDataDir(out retval wstring);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 276, in _CallMethod_
    ret = func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 90, in get_userDataDir
    self._ver_minor)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 81, in _GetUserDataDirForVersion
    return os.path.join(self._userAppDataPath(),
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 62, in _userAppDataPath
    "ActiveState")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\applib.py", line 67, in user_data_dir
    path = os.path.join(_get_win_folder(csidl or "CSIDL_LOCAL_APPDATA"),
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\applib.py", line 175, in _get_win_folder_with_pywin32
    from win32com.shell import shellcon, shell
ImportError: DLL load failed: Le module spécifié est introuvable.
ERROR:xpcom:Creation of class '<class 'component:koPrefs.koGlobalPrefService'>' failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\factory.py", line 57, in createInstance
    return self.klass()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1150, in __init__
    self.prefs = self.getPrefs("global")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1270, in getPrefs
    self._setupGlobalPreference(name)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1181, in _setupGlobalPreference
    defn.user_filename = os.path.join( self._koDirSvc.userDataDir, defn.user_filename)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)
ERROR:xpcom:Creation of class '<class 'component:koInitService.KoInitService'>' failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\factory.py", line 57, in createInstance
    return self.klass()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 295, in __init__
    self.configureDefaultEncoding()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koInitService.py", line 639, in configureDefaultEncoding
    .getService(components.interfaces.koIPrefService).prefs
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\components.py", line 190, in getService
    return serviceManager.getServiceByContractID(self.contractid, _get_good_iid(iid))
  File "<XPCOMObject method 'getServiceByContractID'>", line 3, in getServiceByContractID
Exception: 2147500037 (NS_ERROR_FAILURE)
ERROR:xpcom:Unhandled exception calling 'G     int8 * userDataDir(out retval wstring);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 276, in _CallMethod_
    ret = func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 90, in get_userDataDir
    self._ver_minor)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 81, in _GetUserDataDirForVersion
    return os.path.join(self._userAppDataPath(),
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 62, in _userAppDataPath
    "ActiveState")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\applib.py", line 67, in user_data_dir
    path = os.path.join(_get_win_folder(csidl or "CSIDL_LOCAL_APPDATA"),
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\applib.py", line 175, in _get_win_folder_with_pywin32
    from win32com.shell import shellcon, shell
ImportError: DLL load failed: Le module spécifié est introuvable.
ERROR:xpcom:Creation of class '<class 'component:koPrefs.koGlobalPrefService'>' failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\factory.py", line 57, in createInstance
    return self.klass()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1150, in __init__
    self.prefs = self.getPrefs("global")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1270, in getPrefs
    self._setupGlobalPreference(name)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1181, in _setupGlobalPreference
    defn.user_filename = os.path.join( self._koDirSvc.userDataDir, defn.user_filename)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)
ERROR:xpcom:Unhandled exception calling 'G     int8 * userDataDir(out retval wstring);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 276, in _CallMethod_
    ret = func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 90, in get_userDataDir
    self._ver_minor)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 81, in _GetUserDataDirForVersion
    return os.path.join(self._userAppDataPath(),
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koDirs.py", line 62, in _userAppDataPath
    "ActiveState")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\applib.py", line 67, in user_data_dir
    path = os.path.join(_get_win_folder(csidl or "CSIDL_LOCAL_APPDATA"),
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\komodo\applib.py", line 175, in _get_win_folder_with_pywin32
    from win32com.shell import shellcon, shell
ImportError: DLL load failed: Le module spécifié est introuvable.
ERROR:xpcom:Creation of class '<class 'component:koPrefs.koGlobalPrefService'>' failed!
Exception details follow

ERROR:xpcom:Unhandled exception calling 'int8 * createInstance(in nsISomething, in nsIID &, out retval InterfaceIs *);'
Traceback (most recent call last):
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\policy.py", line 300, in _CallMethod_
    return 0, func(*params)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\server\factory.py", line 57, in createInstance
    return self.klass()
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1150, in __init__
    self.prefs = self.getPrefs("global")
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1270, in getPrefs
    self._setupGlobalPreference(name)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\components\koPrefs.py", line 1181, in _setupGlobalPreference
    defn.user_filename = os.path.join( self._koDirSvc.userDataDir, defn.user_filename)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 396, in __getattr__
    return getattr(interface, attr)
  File "D:\Program Files\ActiveState Komodo IDE 8\lib\mozilla\python\xpcom\client\__init__.py", line 483, in __getattr__
    return NS_InvokeByIndex(self._comobj_, method_index, args)
Exception: 2147500037 (NS_ERROR_FAILURE)

Rgds

Did you try to reinstall Komodo? Did you use UTF-8 in your system or you use ASCII?

Yes I tried reinstalling it after having renamed …\LocalSetting\ActiveState directory to …\LocalSetting\ActiveState_SAVED.
Being french yes it is likely UTF-8 . At least I have accents like ‘é’ . All my python scripts have

coding: UTF-8

as a first ‘magic’.

Can you please confirm the path of the pref folder that you said you renamed? And was Komodo running while you did this?

Here is the FULL renamed path:
C:\Documents and Settings\p.turpin\Local Settings\Application Data\ActiveState_SAVED

Here is the current PATH where the pystderr comes from:
C:\Documents and Settings\p.turpin\Local Settings\Application Data\ActiveState\KomodoIDE\8.5

And NO I did not rename the folder during execution. On my PC it should not be allowed (message such as currently in use or something like that).
Rgds

Ok, I’m not sure myself what could be causing this. @toddw will have to take a look tomorrow when he’s in (national holiday here today), he’s the person in charge of those builds so will be most suited to further assist you with your problem.

I’m wondering if this is caused by a system environment variable? Can you check to see if there are any special PYTHON environment variables, or ENCODING variables defined in your environment?

Bingo ! I unset PYTHONPATH and Komodo 8.5 got started. Seems more sensitive than v9. Anyway it works…
Thank you !

Thanks for getting back to us - and I’m glad to hear you’ve found a workaround.

Komodo 8.5 is designed to ignore the user PYTHONPATH environment variable… but I guess that is failing in your case.

Good to see that Komodo 9 doesn’t suffer from the same problem.