[Ironpython-users] Differences with pyc-compiled assemblies?

Nicholas Devenish misnomer at gmail.com
Sun Nov 11 21:45:57 CET 2012


I'm seeing weird differences between importing plain packages and adding references to the compiled versions. Specifically, between importing sqlalchemy (0.7.9, from tarball, also 0.8.0b1) as a directory structure and as compiled, the uncompiled version works perfectly, whereas the compiled version appears to have standard library issues:

(in SQLAlchemy-ver/lib/ in the source tarball, and on msys bash)
$ find 'sqlalchemy' -name "*.py" > sqlalchemy.list
$ pyc /out:SQLAlchemy @sqlalchemy.list
$ ipy
IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.17929 (32-bit)
Type "help", "copyright", "credits" or "license" for more information.
>>> import clr
>>> clr.AddReferenceToFileAndPath("SQLAlchemy.dll")
>>> import sqlalchemy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sqlalchemy\__init__.py", line 52, in <module>
  File "sqlalchemy\types", line 27, in <module>
  File "sqlalchemy\schema", line 2670, in <module>
  File "sqlalchemy\schema", line 2706, in DDLElement
  File "sqlalchemy\util\deprecations", line 45, in decorate
  File "sqlalchemy\util\deprecations", line 116, in _decorate_with_warning
  File "sqlalchemy\util\langhelpers", line 41, in decorate
  File "c:\Program Files\IronPython 2.7\Lib\inspect.py", line 814, in getargspec
  File "c:\Program Files\IronPython 2.7\Lib\inspect.py", line 758, in getargs
IndexError: index out of range: 2

Does anyone have any idea how I can track this down?

Thanks,

Nick

(Additionally, with 0.8.0b1 there is a failure to local import, but fixing that to import .langhelpers leads to the same error as above)


More information about the Ironpython-users mailing list