SystemError: An exception was thrown by the type initializer for CodecsInfo

Bug #598411 reported by Thomas Leonard
14
This bug affects 3 people
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.warn("Hello")
Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 777, in emit
    fs = fs.decode(stream.encoding)
SystemError: An exception was thrown by the type initializer for CodecsInfo

With debugging (MONO_LOG_LEVEL="debug"):

>>> logging.warn("Hello")
Mono-INFO: Assembly Loader probing location: '/usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll'.
Mono-INFO: Image addref I18N 0x7f697c6a0e70 -> /usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll 0x7f697c6b9a40: 2

Mono-INFO: Assembly I18N 0x7f697c6a0e70 added to domain ipy.exe, ref_count=1

Mono-INFO: AOT failed to load AOT module /usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll.so: /usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll.so: cannot open shared object file: No such file or directory

Mono-INFO: Assembly Loader loaded assembly from location: '/usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll'.
Mono-INFO: Config attempting to parse: '/usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll.config'.
Mono-INFO: Config attempting to parse: '/etc/mono/assemblies/I18N/I18N.config'.
Mono-INFO: Config attempting to parse: '/home/talex/.mono/assemblies/I18N/I18N.config'.
Mono-INFO: Assembly Ref addref I18N 0x7f697c6a0e70 -> mscorlib 0xd497d0: 15

Mono-INFO: Assembly Loader probing location: '/usr/lib/mono/gac/I18N.Rare/2.0.0.0__0738eb9f132ed756/I18N.Rare.dll'.
Mono-INFO: Assembly Loader probing location: '/usr/lib/I18N.Rare.dll'.
Mono-INFO: Assembly Loader probing location: '/usr/lib/mono/gac/I18N.Rare/2.0.0.0__0738eb9f132ed756/I18N.Rare.exe'.
Mono-INFO: Assembly Loader probing location: '/usr/lib/I18N.Rare.exe'.
Mono-INFO: Assembly Loader probing location: '/usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll'.
Mono-INFO: AOT failed to load AOT module /usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll.so: /usr/lib/mono/gac/I18N/2.0.0.0__0738eb9f132ed756/I18N.dll.so: cannot open shared object file: No such file or directory

Traceback (most recent call last):
  File "/usr/lib/python2.6/logging/__init__.py", line 777, in emit
    fs = fs.decode(stream.encoding)
SystemError: An exception was thrown by the type initializer for CodecsInfo

Thanks,

Revision history for this message
Eric Talevich (eric-talevich) wrote :

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.

Revision history for this message
Thomas Leonard (talex5) wrote :

Thanks, that helped - my program gets a lot further now!

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dlr-languages (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.