Message5798
I'm running into the following error that doesn't show when using CPython:
Jython 2.5.1+ (trunk:7063, Jun 7 2010, 20:39:19)
[Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_20
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyamf
>>> import optparse
>>> pyamf.register_package(globals(), package='flex.messaging.io')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pyamf/__init__.py", line 1790, in register_package
classes = filter(check_attr, [get(x) for x in keys])
File "pyamf/__init__.py", line 1755, in <lambda>
get = lambda x: getattr(module, x)
AttributeError: 'stringmap' object has no attribute 'pyamf'
>>> globals()
{'pyamf': <module 'pyamf' from 'pyamf/__init__$py.class'>, '__doc__': None, 'optparse': <module 'optparse' from '/Users/thijstriemstra/Sites/projects/opensource/jython-trunk/dist/Lib/optparse$py.class'>, '__name__': '__main__'}
Python 2.6.5 (r265:79063, Mar 23 2010, 18:27:10)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyamf
>>> import optparse
>>> pyamf.register_package(globals(), package='flex.messaging.io')
{}
>>> globals()
{'__builtins__': <module '__builtin__' (built-in)>, 'pyamf': <module 'pyamf' from 'pyamf/__init__.pyc'>, '__package__': None, 'optparse': <module 'optparse' from '/usr/local/lib/python2.6/optparse.pyc'>, '__name__': '__main__', '__doc__': None} |
|
Date |
User |
Action |
Args |
2010-06-07 18:53:19 | thijs | set | recipients:
+ thijs |
2010-06-07 18:53:19 | thijs | set | messageid: <1275936799.02.0.261733547184.issue1618@psf.upfronthosting.co.za> |
2010-06-07 18:53:18 | thijs | link | issue1618 messages |
2010-06-07 18:53:16 | thijs | create | |
|