IronLanguages / main

Work for this repo has moved to https://github.com/IronLanguages/ironpython2
1.16k stars 347 forks source link

IP 2.0b4 - Package zope.interface doesn't seem to work #355

Open ironpythonbot opened 9 years ago

ironpythonbot commented 9 years ago

File "D:\IronPython2b4\lib\site-packages\zope\interface\interface.py", line 809, in _wire
File "D:\IronPython2b4\lib\site-packages\zope\interface\declarations.py", line 461, in classImplements
File "D:\IronPython2b4\lib\site-packages\zope\interface\declarations.py", line 355, in implementedByFallback
File "D:\IronPython2b4\lib\site-packages\zope\interface\declarations.py", line 355, in implementedByFallback
File "D:\IronPython2b4\lib\site-packages\zope\interface\declarations.py", line 362, in implementedByFallback
AttributeError: 'object' object has no attribute ' * implemented * '

Thanks in advance!

Work Item Details

Original CodePlex Issue: Issue 17775 Status: Active Reason Closed: Unassigned Assigned to: Unassigned Reported on: Aug 11, 2008 at 12:07 AM Reported by: wizzard0 Updated on: Feb 22, 2013 at 2:15 AM Updated by: dinov

ironpythonbot commented 9 years ago

On 2008-08-16 01:11:40 UTC, sborde commented:

We're not yet pushing on zope compatibility. If you could give us simple repros it will make it easier for us to fix the underlying issues.

ironpythonbot commented 9 years ago

On 2008-08-16 17:02:14 UTC, wizzard0 commented:

I believe that this issue is related to decorator support in IronPython. Is there any information available on this?

ironpythonbot commented 9 years ago

On 2008-08-17 02:32:42 UTC, sanxiyn commented:

AFAIK decorators are fully supported in IronPython.

ironpythonbot commented 9 years ago

On 2008-08-17 06:38:50 UTC, dinov commented:

The issue here is that we need to raise TypeError from object.foo = 'abc', not AttributeError. But zope still won't work - it requires sys.getframe(1).

ironpythonbot commented 9 years ago

On 2008-10-24 03:32:11 UTC, arkanes commented:

just importing zope.interface exercises enough of zope for a decent test case.

This specific issue is just as dinov says above - setting attributes on object raises TypeError in CPython, but AttributeError in FePy. However, zope makes considerable use of sys._getframe(1).

I'd like to see this done as it's a prereq to getting Twisted working. If anyone can provide any pointers on where I might start implementing _getframe(1), it would be appreciated.

ironpythonbot commented 9 years ago

On 2009-05-22 04:51:39 UTC, dinov commented:

sys._getframe(1) is now available w/ the -X:Frames/-X:FullFrames in 2.6 Beta 1.