#194 AttributeError on import

PyXB 1.2.2
closed
None
fixed
Binding model
major
PyXB 1.2.1
defect
2013-03-21
2013-03-21
tmbar
No

I sucessfully ran pyxbgen from within my (attached) xsd directory:
pyxbgen -u arelda_v3.13.2.xsd -m arelda

On import, I get the following error:

Traceback (most recent call last):
  File "foo.py", line 2, in <module>
    import arelda
  File "arelda.py", line 2892, in <module>
    class ordnerSIP (ordner):
  File "arelda.py", line 2917, in ordnerSIP
    _ElementMap = ordner._ElementMap.copy()
AttributeError: 'property' object has no attribute '_ElementMap'
1 Attachments

Discussion

  • tmbar

    tmbar - 2013-03-21

    xsd files used for generation

     
  • Peter A. Bigot

    Peter A. Bigot - 2013-03-21
    • status changed from new to closed
    • resolution set to fixed

    Thanks for the reproducing case. Patched in next branch with commit below.

    commit 48da9f31f5c70dddcfae5d449e68d0bf3952f071
    Author: Peter A. Bigot <pab@pabigot.com>
    Date:   Thu Mar 21 07:24:22 2013 -0500
    
        trac/194: AttributeError on import
    
        An XML type defined an element with the same name as the type of which it
        was an extension, occluding the superclass name with the member name.  Move
        references to the superclass above the point where this could occur.
    
    :100644 100644 4fcf443... 46840fb... M  pyxb/binding/generate.py
    :000000 100644 0000000... 7b195ee... A  tests/trac/test-trac-0194.py
    
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks