hydraplatform / hydra-server

GNU Lesser General Public License v3.0
5 stars 0 forks source link

Location of spyne xml namespace has changed in Python3 release #2

Closed pmslavin closed 6 years ago

pmslavin commented 6 years ago

The refactor branch fails on startup under Python3 with...

Traceback (most recent call last):
  File "./run_server.py", line 34, in <module>
    s.run_server(port=port)
  File "/home/paul/code/Hydra_py3/hydra-server/hydra_server/__init__.py", line 252, in run_server
    spyne.const.xml_ns.DEFAULT_NS = 'soap_server.hydra_complexmodels'
AttributeError: module 'spyne.const' has no attribute 'xml_ns'

This can be fixed by changing spyne.const.xml_ns.DEFAULT_NS to spyne.const.xml.DEFAULT_NS

knoxsp commented 6 years ago

see commit 8369fc2c6598bd73f08cefb02d1fb58a5f8f28c0