Ticket #321 (closed defect: invalid)
ReferenceError for Shared Object file
| Reported by: | thijs | Owned by: | nick |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4 |
| Component: | Shared Object | Version: | 0.3.1 |
| Keywords: | Cc: |
Description
When you run the attached script:
from pyamf import sol path = 'KLMTOF_History.sol' lso = sol.load(path) print lso
On the attached .sol file, it throws this error:
Traceback (most recent call last): File "test-321.py", line 4, in <module> lso = sol.load(path) File "/pyamf/trunk/pyamf/sol.py", line 163, in load name, values = decode(f.read()) File "/pyamf/trunk/pyamf/sol.py", line 83, in decode value = decoder.readElement() File "/pyamf/trunk/pyamf/__init__.py", line 486, in readElement return func() File "/pyamf/trunk/pyamf/amf0.py", line 382, in readObject self._readObject(obj) File "/pyamf/trunk/pyamf/amf0.py", line 345, in _readObject obj_attrs[key] = self.readElement() File "/pyamf/trunk/pyamf/__init__.py", line 486, in readElement return func() File "/pyamf/trunk/pyamf/amf0.py", line 392, in readReference return self.context.getObject(idx) File "/pyamf/trunk/pyamf/__init__.py", line 146, in getObject raise ReferenceError pyamf.ReferenceError
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
