SystemError: An exception was thrown by the type initializer for CodecsInfo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dlr-languages (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
(on Ubuntu 10.04 LTS, ironpython 2.6~beta2-2)
Almost anything I try to do in IronPython gives this error. e.g.
$ ipy
IronPython 2.6 Beta 2 DEBUG (2.6.0.20) on .NET 2.0.50727.1433
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.
Traceback (most recent call last):
File "/usr/lib/
fs = fs.decode(
SystemError: An exception was thrown by the type initializer for CodecsInfo
With debugging (MONO_LOG_
>>> logging.
Mono-INFO: Assembly Loader probing location: '/usr/lib/
Mono-INFO: Image addref I18N 0x7f697c6a0e70 -> /usr/lib/
Mono-INFO: Assembly I18N 0x7f697c6a0e70 added to domain ipy.exe, ref_count=1
Mono-INFO: AOT failed to load AOT module /usr/lib/
Mono-INFO: Assembly Loader loaded assembly from location: '/usr/lib/
Mono-INFO: Config attempting to parse: '/usr/lib/
Mono-INFO: Config attempting to parse: '/etc/mono/
Mono-INFO: Config attempting to parse: '/home/
Mono-INFO: Assembly Ref addref I18N 0x7f697c6a0e70 -> mscorlib 0xd497d0: 15
Mono-INFO: Assembly Loader probing location: '/usr/lib/
Mono-INFO: Assembly Loader probing location: '/usr/lib/
Mono-INFO: Assembly Loader probing location: '/usr/lib/
Mono-INFO: Assembly Loader probing location: '/usr/lib/
Mono-INFO: Assembly Loader probing location: '/usr/lib/
Mono-INFO: AOT failed to load AOT module /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
fs = fs.decode(
SystemError: An exception was thrown by the type initializer for CodecsInfo
Thanks,
I fixed this by installing the mono library: libmono-i18n2.0-cil
Looks like that package should be added as a dependency of the ironpython package.