[IronPython] type.__call__

Bruce Christensen t-bruch at microsoft.com
Wed Jul 12 18:31:44 CEST 2006


I can verify that importing SQLAlchemy 0.2.5 doesn't work:

C:\Ip\IronPython\External\Regress\Python24\Lib>ipy
IronPython 1.0.2383 (Beta) on .NET 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.
>>> import sys, os.path
>>> sys.path.append(os.path.realpath(os.path.join(os.path.curdir,
'site-packages
')))
>>>
>>>
>>>
>>> import sqlalchemy
Traceback (most recent call last):
  File , line 0, in <stdin>##73
  File , line 0, in __import__##4
  File
C:\Ip\IronPython\External\Regress\Python24\Lib\site-packages\sqlalchemy\
__init__.py, line 7, in Initialize
  File , line 0, in __import__##4
  File
C:\Ip\IronPython\External\Regress\Python24\Lib\site-packages\sqlalchemy\
types.py, line 14, in Initialize
  File , line 0, in __import__##4
  File
C:\Ip\IronPython\External\Regress\Python24\Lib\site-packages\sqlalchemy\
util.py, line 205, in Initialize
SystemError: Method 'GetDict' on type
'IronPython.NewTypes.System.Object_6_8_11' from assembly 'snippets1,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
' is overriding a method that has been overridden.
>>>

However, it seems like this may be a different bug than the one that
you're talking about. The one above is actually a problem related to
deriving from classes with __slots__. I've filed CodePlex bug 901 on
this
(http://www.codeplex.com/WorkItem/View.aspx?ProjectName=IronPython&WorkI
temId=901).

--Bruce

-----Original Message-----
From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Tuesday, July 11, 2006 6:07 PM
To: Discussion of IronPython
Subject: Re: [IronPython] type.__call__

Can anyone reproduce this import bug? SQLAlchemy 0.2.5 release should
do.

2006/7/11, Sanghyeon Seo <sanxiyn at gmail.com>:
> There also seems to be a strange import bug, but I couldn't reduce it.
>
> How to reproduce:
>
> import sqlalchemy
>
> Workaround. Swapping following two lines seem to "fix" this with no
ill effect:
>
> from sqlalchemy import util
> import util as mapperutil
>
> To:
>
> import util as mapperutil
> from sqlalchemy import util
>
> Seo Sanghyeon
_______________________________________________
users mailing list
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com



More information about the Ironpython-users mailing list